2016-05-21 73 views
1

當我嘗試運行vagrant up我得到這個錯誤流浪了命令不工作

$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Box 'laravel/homestead' could not be found. Attempting to find and           install... 
    default: Box Provider: virtualbox 
    default: Box Version: >= 0.4.0 
==> default: Loading metadata for box 'laravel/homestead' 
    default: URL: https://atlas.hashicorp.com/laravel/homestead 
==> default: Adding box 'laravel/homestead' (v0.4.4) for provider: virtualbox 
    default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/ve           rsions/0.4.4/providers/virtualbox.box 
    default: 
==> default: Successfully added box 'laravel/homestead' (v0.4.4) for 'virtualbox           '! 
==> default: Importing base box 'laravel/homestead'... 
==> default: Matching MAC address for NAT networking... 
==> default: Checking if box 'laravel/homestead' is up to date... 
==> default: Setting the name of the VM: homestead-7 
==> default: Clearing any previously set network interfaces... 
There was an error while executing `VBoxManage`, a CLI used by Vagrant 
for controlling VirtualBox. The command and stderr is shown below. 

Command: ["hostonlyif", "create"] 

Stderr: 0%... 
Progress state: E_FAIL 
VBoxManage.exe: error: Failed to create the host-only adapter 
VBoxManage.exe: error: Querying NetCfgInstanceId failed (0x00000002) 
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkI           nterfaceWrap, interface IHostNetworkInterface 
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct Han           dlerArg *)" at line 71 of file VBoxManageHostonly.cpp 

OS:的Windows 10

+0

您是否嘗試過谷歌 「代碼E_FAIL(0x80004005的)」?有人說,重新安裝vbox有幫助(還有一些不是):https://www.virtualbox.org/ticket/12182 + https://forums.virtualbox.org/viewtopic.php?f=6&t=76668 – michaJlS

回答

0

下載這個補丁

Vbox Win10 Fix

issue ticket

運行該補丁,並把它留在後臺

運行然後去C:\Program Files\Oracle\VirtualBox文件夾。

VirtualBox.exe右鍵單擊,

轉到兼容性選項,然後選擇Run in compatible mode並選擇Windows 7

然後點擊確定。

重複此proccess此文件VBoxManage.exeVBoxHeadless.exe