Host is: OS X 10.9, VirtualBox 4.3.14, Vagrant 1.6.3
Vagrantfile:
###################################################
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu-1404-server-lts"
config.ssh.username = "XXXXXXXXXXXXX"
config.ssh.private_key_path = "XXXXXXXXXXXXXX"
config.ssh.forward_x11 = true
config.vm.synced_folder "vagrant", "/vagrant"
config.vm.network "private_network", type: "dhcp", :adapter => 2
end
###################################################
Booting was very snappy until I've added the last line (the private network). Then all hell broke loose. It booted up quickly once, then all subsequent boot-ups were very slow.
If I do now "vagrant up", it's very slow. It stumbles here (screenshot taken with a Remote Desktop client):
It gets to "Starting configure virtual network devices [ OK ]", it prints out that whole line at once just fine and quick, but after that it waits for a while.
Then it prints "Waiting for network configuration..." and it waits again for a while.
Then it prints "Waiting for up to 60 more seconds for network configuration..." and it waits again for a while.
Then it says "Booting system without full network configuration" and resumes booting at normal speed.
All these waits add up and make the boot process extremely slow, maybe 3...5 minutes total.
I've commented out the private network statement in Vagrantfile, and it's still slow. I've launched the VM outside of Vagrant (direct from VBox) and it's still slow. Only eth0 is activated, but /etc/network/interfaces looks like this:
##############################################
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
#auto eth1
#iface eth1 inet dhcp
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet dhcp
post-up route del default dev $IFACE
#VAGRANT-END
##############################################
I've removed the VAGRANT section from the end and did a reboot, it was super-quick.
Powered off the VM, launched from Vagrant, again super-quick.
Powered off again, edited Vagrantfile, uncommented the line with "private_network", up the VM from Vagrant - it was super-quick ONCE. /etc/network/interfaces looked just like above, with the Vagrant part re-added at the end.
Then I did "sudo reboot" in the VM, and it was slow again, and it remains slow forever and ever after that.
All of the above is very consistent and reproducible. If I use two network interfaces, one NAT, the other host-only, booting up is quick exactly once, then it's slow forever.
I've edited /etc/default/ntpdate and removed everything from NTPSERVERS...
NTPSERVERS=""
...but it makes no difference.
Uh... please help, I guess? :)