【问题标题】:Vagrant up command not workingVagrant up 命令不起作用
【发布时间】:2016-05-21 20:23:56
【问题描述】:

当我尝试运行 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

【问题讨论】:

标签: php laravel virtualbox


【解决方案1】:

下载此补丁

Vbox Win10 Fix

issue ticket

运行此补丁并让它在后台运行

然后转到C:\Program Files\Oracle\VirtualBox文件夹。

右击VirtualBox.exe

转到兼容性选项并选择Run in compatible mode 并选择Windows 7

然后点击确定。

为此文件重复此过程VBoxManage.exe VBoxHeadless.exe

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-26
    • 2016-11-17
    • 2023-03-17
    • 1970-01-01
    • 1970-01-01
    • 2022-01-05
    相关资源
    最近更新 更多