-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined method 'sh' for VagrantPlugins CommunicatorWinRM #90
Comments
I'm seeing the same thing here:
It should be set to ':cmd' but the windows guest detection is broken def windows_guest?
@machine.config.vm.guest.eql?(:windows)
end
|
I have a machine running on a host windows and had no problems. My VagrantFile is like this:
Vagrant 1.6.3 |
I would consider It would be good to have the check be consistent between any plugins and Vagrant core. |
+1 just hit this as well. Adding below fixed the error. config.vm.guest = :windows With that said, I would wager a guess that guest :windows is an artifact left behind to avoid breaking people after vagrant started officially supporting windows (I think guest :windows essentially translates into communicator = 'winrm'. It may go away at some point. |
@vinyar Guest and Communicator seem similar, but are very different. For example, you can set the guest type to 'windows' and the communicator to 'ssh' assuming you've installed and configured an SSH server on your Windows guest. |
Thanks @sneal this also immediately fixed the omnibus issue for me for a Windows on Softlayer VM. |
This issue has been migrated from (#4249)[https://github.com/hashicorp/vagrant/issues/4249] in Vagrant core, after @sneal found it to be a bug with this plugin instead.
I got the following error when trying to provision a Windows Server 2008 R2 box with Chef Solo and vagrant-omnibus. A cursory look suggests something thought it was in *nix land and called 'sh' when it shouldn't have done.
The box I'm using is https://vagrantcloud.com/ferventcoder/win2008r2-x64-nocm. Running on Vagrant 1.6.3 / OSX 10.9 / latest Chef development kit with integrated Berkshelf.
The text was updated successfully, but these errors were encountered: