我有一个Ubuntu的虚拟机。除了开机后,在收到以下信息后:

等待机器启动。这可能需要几分钟时间...

它需要大约5分钟或更长时间才能完成启动:

➜ my_box vagrant reload

/Users/pinouchon/.vagrant.d/boxes/my_box/virtualbox/include/_Vagrantfile:5: warning: already initialized constant VAGRANTFILE_API_VERSION

[default] Attempting graceful shutdown of VM...

[default] Clearing any previously set forwarded ports...

[default] Creating shared folders metadata...

[default] Clearing any previously set network interfaces...

[default] Preparing network interfaces based on configuration...

[default] Forwarding ports...

[default] -- 22 => 2222 (adapter 1)

# More port forwards

[default] Booting VM...

[default] Waiting for machine to boot. This may take a few minutes...

# waits about 5 minutes at this point, then:

[default] Machine booted and ready!

[default] The guest additions on this VM do not match the installed version of

VirtualBox! In most cases this is fine, but in rare cases it can

cause things such as shared folders to not work properly. If you see

shared folder errors, please update the guest additions within the

virtual machine and reload your VM.

Guest Additions Version: 4.3.0

VirtualBox Version: 4.2

[default] Configuring and enabling network interfaces...

[default] Mounting shared folders...

[default] -- /vagrant

这个盒子以前启动很快(大约30秒)。所以我认为是一些网络配置引起了超时或类似的问题。

我尝试了这里提出的修复措施:

https://github.com/mitchellh/vagrant/wiki/%60vagrant-up%60-hangs-at-%22Waiting-for-VM-to-boot.-This-can-take-a-few-minutes%22

但没有成功。(我尝试了 Resolve it 和 workaround 2。 修复)。

我还尝试删除/etc/hosts文件中的任何127.0.0.1条目。没有成功。

有什么提示吗?

操作系统/版本:

Host: OSX 10.8.5

Guest: Ubuntu 12.05

Virtualbox: 4.2