Folks,
I have an odd issue when executing `vagrant up` for a windows server 2012
guest using SSH as the communicator. The guest UI boots up fine but
`vagrant up` hangs and ultimately fails w/ the error:
hitman@localhost:~/tmp/cycle-vbox/tmp$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports..
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: password
INFO interface: Machine: error-exit ["Vagrant::Errors::VMBootTimeout"]
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
After this fails, i can successfully execute `vagrant ssh` to get a login
shell into the same machine. I can also ssh into it (using port 2222) using
the ssh command directly. However,
vagrant halt and vagrant reload do nothing.
`vagrant up` works when I change the communicator to winrm
here are the details of my setup
- host: mac os x 10.9.5
- virtualbox 5.0.16
- vagrant 1.8.1
- guest os windows server 2012 R2 eval
- bitvise SSH server in guest
The bitvise SSH server shows my host connected to the guest while `vagrant
up` hangs
Here are the important bits in my Vagrantfile
Vagrant.configure(2) do |config|
config.vm.guest = :windows
config.vm.box = "cycle-win2k12"
# config.vm.communicator =
"ssh"
config.vm.communicator = "winrm"
config.ssh.insert_key = false
config.ssh.username = 'vagrant'
config.ssh.password = 'vagrant'
config.vm.provision "shell", inline: 'echo hello world'
end
I realize that this is likely a virtualbox error. For that reason, I have
tried reinstalling virtualbox and rebooted, to no success. I also see no
errors in the VBox.log for my machine
Any suggestions folks have would be most appreciated.
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/eba201c0-f61a-4a4f-be39-cccbea0e1bf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.