我有一個Ubuntu的virtualbox。一切工作正常,但在啓動,它的消息後,大約需要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條目。沒有成功。
任何提示?
OS /版本:
Host: OSX 10.8.5
Guest: Ubuntu 12.05
Virtualbox: 4.2
很難從眼前這個診斷。您是否嘗試過[啓用VirtualBox的GUI]在(http://docs.vagrantup.com/v2/virtualbox/configuration.html)你'Vagrantfile',所以你可以在控制檯啓動時看到它? – phs
它確實會說「這可能需要幾分鐘」,所以我不確定是否存在真正的問題 – sevenseacat