Code Monkey home page Code Monkey logo

Comments (6)

VishnuJin avatar VishnuJin commented on September 23, 2024

I could resolve this by adding config.ssh.shell = "powershell" in the Vagrantfile
but I feel like a Info level log should display at least the file is not created as a warning

from packer-plugin-vagrant.

lbajolet-hashicorp avatar lbajolet-hashicorp commented on September 23, 2024

Hi @VishnuJin,

May I ask you to provide some information regarding this? Could you share the template you're building that exhibits this behaviour, and ideally some logs (with PACKER_LOG=1 set as environment variable) so we can investigate what causes the problem?

Without those, it'll be hard for us to pinpoint what's the cause of this problem.

Thanks in advance

from packer-plugin-vagrant.

VishnuJin avatar VishnuJin commented on September 23, 2024

@lbajolet-hashicorp I have -now updated the first comment with the log content set to 1, thanks

from packer-plugin-vagrant.

lbajolet-hashicorp avatar lbajolet-hashicorp commented on September 23, 2024

Hi @VishnuJin,

Thanks for sharing those, with this information we can progress. This does seem to be a bug with the builder, and I would suspect the post-processor might also have a similar issue. I'm not sure yet how we can fix this reliably (outside of extra config), but definitely this is something to discuss/work on.

I'll keep this issue updated.

Thanks again for the report!

from packer-plugin-vagrant.

lbajolet-hashicorp avatar lbajolet-hashicorp commented on September 23, 2024

Hi @VishnuJin,

I've just opened a PR which fixes how we handle vagrant's return codes, which should fix partly your issue, as now Packer will return the error that Vagrant points to (ssh shell unavailable on guest machine).

There still remains the problem of changing the shell for the machine being built. I'm not sure we can reliably infer it, so this is likely something that will need to be included in the template by the user.
By any chance would your PR #112 be one solution to fix that? I would believe this could make it possible to add the option to the base template you provide, but my limited knowledge of Vagrant prevents me from affirming it.

from packer-plugin-vagrant.

VishnuJin avatar VishnuJin commented on September 23, 2024

@lbajolet-hashicorp
Sorry I also have very limited knowledge on Vagrant.
But just curious , is it not possible to infer whether its on windows or other OS using config.vm.guest = :windows which im sure all base windows boxes have !

from packer-plugin-vagrant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.