【发布时间】:2014-01-08 18:16:59
【问题描述】:
我有一个 ubuntu 虚拟机。一切正常,除了在启动时,消息后大约需要 5 分钟或更长时间
Waiting for machine to boot. This may take a few minutes...
在它完成启动之前:
➜ 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 秒才能启动)。所以我认为这是一个导致超时或类似情况的网络配置。
但没有成功。 (我尝试了修复 Resolve it 和 workaround 2.)。
我还尝试删除我的 /etc/hosts 文件中的任何 127.0.0.1 条目。没有成功。
有什么提示吗?
操作系统/版本:
Host: OSX 10.8.5
Guest: Ubuntu 12.05
Virtualbox: 4.2
【问题讨论】:
-
仅凭此很难诊断。您是否在您的
Vagrantfile中尝试过enabling the virtualbox gui,这样您就可以在控制台启动时观看它? -
它确实说“这可能需要几分钟”,所以我不确定是否真的有问题。
标签: ubuntu-12.04 osx-mountain-lion vagrant