-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Timeout error during vagrant up
#682
Comments
Couple updates:
|
Have exactly the same problem with bento/centos-7.2 and bento/ubuntu-14.04, ubuntu/trusty64 is Ok) ( all on VirtualBox MacOS) It seems that the problem is that for whatever reason the network interfaces inside the VMs interfaces are not configured when VM is booted, so the ssh connection from the host times out after the default 5 mins. have not looked at it further yet, will revisit when have more time. |
Same thing with |
I had these same issues with migrating to bento/ubuntu-16.04 version 2.30 (2.29 worked for me). I am using virtualbox. Looking at the version 2.30 virtual machine, I noticed that network Adapter 1 I was able to get my Change: to: Can someone else confirm this change from 2.29 to 2.30? |
@Terrabits Yup, I can confirm this. After adding Setup:
|
See my comment on #681 (comment) and follow the link to packer. |
@rickard-von-essen, the suggestion in the link of upgrading virtualbox worked. I was running In any event, I wonder if there is value in explicitly setting For those also having this issue: Edit: Misquoted VirtualBox versions as 5.0.6 instead of the correct 5.1.6. |
Can also confirm that adding the cable=true fixes the issue for me. |
Since I use Vagrant with "virtualbox.gui = true", I could see the boot message that was stuck, and it was systemd saying: "[ *** ] A start job is running for Raise network interfaces". I have managed to workaround this (before finding this thread) by switching from the ubuntu-16.04 box to ubuntu-16.04-i386, so I guess it is a commit that didn't affect the 32 bits builds yet! |
@teresaejunior @shuhaowu try to upgrade to latest VB 5.1 |
OK, thanks! I'll upgrade VBox together with Ubuntu, when Ubuntu 16.10 is released in the next few days! |
Have seen the exact same issues here trying to use the bento/centos6-8 box, version 2.2.9 works fine, however box version 2.3.0 fails with timeout. |
Also if you want to solve this issue via just Tue Vagrantfile: |
Closing this as a duplicates #688 since that one is cleaner and with a straight answer. |
I can confirm that shuhaowu's Vagrantfile fix:
works for bento/ubuntu-16.04 (latest Vagrant, latest VB, MacOS 10.11.6). |
actually figure ran into this issue trying to us kitchen. I was able to edit my .kitchen.yml file to force the cable connection: driver: |
@Terrabits Thank you. |
On VirtualBox 5.0 the initial vagrant up would fail due to a timeout error. This was because in the VM, the network adapter was not set to cable, resulting in a exhaustive search for a DHCP server. This search was longer than the timeout set in the Vagrantfile. This commit fixes that issue, by setting the connection to cable. This is also fixed by upgrading to VirtualBox 5.1 or above. For further information take a look at [this thread on github](chef/bento#682).
My OS is Windows Ubuntu 16.04 and I have installed Oracle VM VirtualBox Manager 5.1.26 and vagrant 1.8.5 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. If you look above, you should be able to see the error(s) that Vagrant had when attempting to connect to the machine. These errors are usually good hints as to what may be wrong. If you're using a custom box, make sure that networking is properly working and you're able to connect to the machine. It is a common problem that networking isn't setup properly in these boxes. Verify that authentication configurations are also setup properly, as well. If the box appears to be booting properly, you may want to increase the timeout ("config.vm.boot_timeout") value. I even tried adding the following to the Vagrantfile |
@contactavishek It would be best to move this to its own github issue as this one is closed. You can then link back to this one. If you are on windows, check if you have the cable connected issue hashicorp/vagrant#7648 |
I'm locking to prevent further asking in a dead issue. |
When I run
vagrant up
onbento/ubuntu-14.04
orbento/centos-7.2
, I get a timeout error. Other boxes, such asubuntu/trusty64
, work fine.I'm in an nested virtualization environment.
bento/ubuntu-14.04
) running on VMware Fusion.My scenario used to work - I noticed the break when I upgraded to VMware Fusion 8.5. I'm not sure whether that's a factor or a coincidence. VT-x is enabled on the host.
Repro steps
Works as expected:
ubuntu/trusty64
SSH timeout:
bento/ubuntu-14.04
SSH timeout:
bento/centos-7.2
Versions
The text was updated successfully, but these errors were encountered: