Comments (6)
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.
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.
@lbajolet-hashicorp I have -now updated the first comment with the log content set to 1, thanks
from packer-plugin-vagrant.
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.
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.
@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)
- [vagrant-cloud post-processor] support for checksum and checksum_type when creating/updating providers HOT 2
- Vagrant builder ssh authentication error
- /etc/default/grub is overwritten during post-processor HOT 1
- Builder vagrant with libvirt: "Remote connection disconnect" error to connect to a box made from the packer-built image.
- post-processor: create disk image without a backing file
- The synced_folder option does not expand ~/ HOT 1
- error "SSH Port was not properly retrieved from SSHConfig." (fixed after running "vagrant up")
- synced_folder absolute path generated in Vagrantfile must be escaped when run on a Windows host
- Missing link in docs for the `template` parameter HOT 2
- Add support for `provider_override = "qemu"`
- Packer plugin needs an architecture parameter. Packer builder does not download boxes with explicitly set architecture. HOT 3
- No box created when using a Vagrant box as a source and no errors reported HOT 1
- Allow specifying content for vagrantfile_template HOT 3
- "Post-processor failed: unexpected EOF" vagrant post processor on libvirt image HOT 1
- Invalid Vagrantfile with local vagrant cloud repository
- Is the current plugin support Windows VM ? HOT 4
- valid box file not generated when using artifacts from 'artifice' post-processor with provider_override="hyperv"
- Vagrant-registry post-processor failure on box creation HOT 1
- Packer 1.12.0-alpha1 testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-vagrant.