Closed grenade closed 11 years ago
When I remove the config.vm.network :public_network
line from the vagrant file and use a base image with a NAT interface (instead of bridged), this problem does not occur.
I'm having this issue as well. I tried
config.vm.network :bridged, :bridge => "en0: Wi-Fi (AirPort)"and
config.vm.network :public_networkIn order to create a bridge network. But both are hanging at that step.
Here is the last lines of the log file:
00:00:06.523812 Guest Log: vboxguest: major 0, IRQ 20, I/O port d020, MMIO at 00000000f0400000 (size 0x400000) 00:00:06.694716 NAT: IPv6 not supported 00:00:06.711721 NAT: DNS#0: 10.180.1.53 00:00:06.711737 NAT: DHCP offered IP address 10.0.2.15 00:00:06.712031 NAT: DHCP offered IP address 10.0.2.15 00:00:07.439388 NAT: DHCP offered IP address 10.0.2.15 00:00:07.439870 NAT: DHCP offered IP address 10.0.2.15
After a long period of time it passes that step. But when I type vagrant reload
it hangs at [default] Waiting for VM to boot. This can take a few minutes.
Here is the last lines of the log file:
00:00:02.652081 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0) 00:00:02.652291 Guest Log: BIOS: Boot : bseqnr=1, bootseq=0032 00:00:02.652629 Guest Log: BIOS: Booting from Hard Disk... 00:00:03.005554 Guest Log: int13_harddisk: function 02, unmapped device for ELDL=81 00:00:03.005781 Guest Log: int13_harddisk: function 00, unmapped device for ELDL=81 00:00:03.006008 Guest Log: int13_harddisk: function 02, unmapped device for ELDL=81 00:00:03.006226 Guest Log: int13_harddisk: function 00, unmapped device for ELDL=81 00:00:03.006437 Guest Log: int13_harddisk: function 02, unmapped device for ELDL=81 00:00:03.006646 Guest Log: int13_harddisk: function 00, unmapped device for ELDL=81 00:00:03.119868 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=0000000109745000 w=640 h=480 bpp=32 cbLine=0xA00, flags=0x1 00:00:03.148066 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=0000000109619000 w=640 h=480 bpp=32 cbLine=0xA00, flags=0x1
Bridged network simply don't work on some routers. Vagrant can't really detect this so you'll have to check your router. The original issue should be fixed in git.
vagrant reload
up just once is enough
like up is build reload is use
We use Vagrant to provision a custom, Fedora Core 18, VM desktop to Windows users. The VMs are used as interactive development workstations. However, for all users, vagrant up hangs on every second boot. The provisioning scripts don't get a chance to run because we don't get past the message that reads: Configuring and enabling network interfaces...
I am aware of the page at: https://github.com/mitchellh/vagrant/wiki/%60vagrant-up%60-hangs-at-%22Waiting-for-VM-to-boot.-This-can-take-a-few-minutes%22 Running the dhcp lease release makes no difference in our case and running
services network restart
fails when the machine is in this state.The tail end of the vagrant_log=debug output looks like this:
Our vagrant file looks like this