当我尝试运行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
操作系统: Windows 10
答案 0 :(得分:0)
下载此补丁
运行此修补程序并让它在后台运行
然后转到C:\Program Files\Oracle\VirtualBox
文件夹。
右键点击VirtualBox.exe
,
转到兼容性选项并选择Run in compatible mode
并选择Windows 7
。
然后点击确定。
对此文件VBoxManage.exe
VBoxHeadless.exe