Solvedbento Timeout error during vagrant up
✔️Accepted Answer
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 cable connected
was unchecked. Sure enough, I compared the box.ovf files for version 2.29 and 2.30 and the cable="true"
setting was missing in 2.30.
I was able to get my vagrant up
s to work by changing the following in (mac host) ~/.vagrant.d/boxes/bento-VAGRANTSLASH-ubuntu-16.04/2.30/virtualbox/box.ovf
:
Change:
<Adapter slot="0" enabled="true" MACAddress="080027B55B5E" type="82540EM">
to:
<Adapter slot="0" enabled="true" MACAddress="080027B55B5E" cable="true" type="82540EM">
Can someone else confirm this change from 2.29 to 2.30?
Other Answers:
Also if you want to solve this issue via just Tue Vagrantfile: vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
.
I can confirm that shuhaowu's Vagrantfile fix:
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
works for bento/ubuntu-16.04 (latest Vagrant, latest VB, MacOS 10.11.6).
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.
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:
name: vagrant
customize:
cableconnected1: "on"
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