2016-09-30 85 views
1

我想通過使用VirtualBox通過Vagrant啓動虛擬機。
我得到這個錯誤,當我執行命令vagrant up(見下文)使用最新版本的虛擬盒5.1.4和Vagrant 1.7.4,因此我降級虛擬箱5.0和Vagrant 1.7.4,但它沒有幫助。
我已經安裝了vagrant插件vagrant-omnibus,vagrant-cashier和vagrant-berkshelf(版本= 4.1)。
我的操作系統是Mac OS X的埃爾卡皮坦和我嘗試運行的虛擬機是一個CentOS 6
命令輸出的最後一部分「無業遊民達」是:Vagrant + Virtual Box會話錯誤

default: Running 'pre-boot' VM customizations... 
==> default: Booting VM... 
There was an error while executing `VBoxManage`, a CLI used by Vagrant 
for controlling VirtualBox. The command and stderr is shown below. 

Command: ["startvm", "63825f6b-5189-4b66-bb7a-167c7f742c49", "--type", "headless"] 

Stderr: VBoxManage: error: The VM session was aborted 
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface Session 

我用Google搜索此錯誤並儘可能多線程建議我嘗試重新啓動VirtualBox的,但我還沒有成功..

下面我複製虛擬機日誌的最後幾行:

00:00:00.085763 APIC: Activating Local APIC 
00:00:00.085782 CPUM: SetGuestCpuIdFeature: Enabled APIC 
00:00:00.086115 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0) 
00:00:00.089080 Shared Folders service loaded 
00:00:00.094857 DrvBlock: Flushes will be ignored 
00:00:00.094868 DrvBlock: Async flushes will be passed to the disk 
00:00:00.094970 VD: VDInit finished 
00:00:00.095086 AIOMgr: Endpoint for file '/Users/daniele/VirtualBox VMs/my-vm_default_1475241914862_51348/centos-6.7-x86_64-disk1.vmdk' (flags 000c0723) created successfully 
00:00:00.098079 VD: Opening the disk took 3191386 ns 
00:00:00.098106 AHCI: LUN#0: disk, PCHS=16383/16/63, total number of sectors 83886080 
00:00:00.098115 AHCI: LUN#0: using async I/O 
00:00:00.098190 AHCI#0: Reset the HBA 
00:00:00.098353 PIIX3 ATA: LUN#0: no unit 
00:00:00.098358 PIIX3 ATA: LUN#1: no unit 
00:00:00.098376 PIIX3 ATA: LUN#2: no unit 
00:00:00.098380 PIIX3 ATA: LUN#3: no unit 
00:00:00.098398 PIIX3 ATA: Ctl#0: finished processing RESET 
00:00:00.098411 PIIX3 ATA: Ctl#1: finished processing RESET 
00:00:00.104664 NAT: Guest address guess set to 10.0.2.15 by initialization 

我跑出來的想法

回答

1

可能的解決方案1:

我故障排除了同樣的問題,但與其他Linux發行版。我發現了Mint 18的解決方法,可能也適合您。

當我進入VirtualBox並將麻煩的虛擬機的設置>網絡值設置爲'Bridged ..'或'NAT network'時,虛擬機啓動。此外,我可以從正在運行的虛擬機瀏覽/捲曲Internet。

The VirtualBox forums show that others are getting this error too.

可能的解決方案2:

在我的實驗中,舊的VirtualBox的版本沒有這個網絡問題。例如,版本5.0.24和5.0.18允許創建虛擬機,而無需手動干預。

附加信息:

值得一提的是,如果你使用的碼頭工人工具箱,它會悄悄地升級VirtualBox的就是了任何版本(例如泊塢窗工具箱1.12.2力量的VirtualBox 5.1.6)。

起初我以爲這個問題是由VirtualBox默認爲「NAT」作爲網絡選擇造成的。但這不是原因。 VirtualBox 5.0.24和5.018都使用「NAT」,它們工作正常。

+0

謝謝,我結束了使用5.0.24 – daniele