2016-03-02 105 views
0

我試圖爲我們的開發團隊打包現有的VirtualBox虛擬機來輕鬆分發和使用。鑑於盒子已經安裝完畢,我安裝了VirtualBox Guest Additions。流浪者永遠不會結束``

的問題是,當我打包盒,add它放浪,我跑vagrant up,一切似乎做工精細,直到它到達:

==> default: Mounting shared folders... 
    default: /vagrant => /Users/alex/vagrant/centos7 

在這一點上,它只是掛起。沒有任何問題。當checking for guest additions in VM也沒有給出任何錯誤。

另外,如果我添加任何網絡配置到我的Vagrantfile(config.vm.network "public_network")將掛在這一點上,而不是(==> default: Configuring and enabling network interfaces...

真的不知道從哪裏何去何從。預先感謝您的幫助。

+0

要麼打開GUI來檢查它掛起或以'vagrant up --debug'開始以獲取更多信息/記錄關於錯誤 –

回答

0

如果主機和虛擬機上的guest虛擬機添加版本不同,可能會發生這種情況。此時,這些文件夾可能無法安裝,但您的虛擬機應該已啓動。使用<Ctrl + C>來執行腳本,然後執行vagrant ssh。請確保在方框中安裝正確的客人添加版本並重新打包。

+0

我知道我能夠'流浪ssh'進入箱子。什麼是檢查版本的最佳方法?檢查VBoxGuestAdditions ISO版本和VirtualBox軟件版本? 編輯:我檢查了版本,我的VirtualBox和VBoxGuestAdditions ISO是相同的版本。 5.0.14。 –

+0

客戶補充安裝在/ opt中。如果不匹配,則需要掛載iso並重新安裝,並確保刪除較舊的(如果有的話)。也看看這是否有幫助。 http://stackoverflow.com/questions/22717428/vagrant-error-failed-to-mount-folders-in-linux-guest/35737634#35737634 – vipinagg

相關問題