无业游民命令无效 [英] Vagrant up command not working

查看:124
本文介绍了无业游民命令无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行vagrant up时,出现此错误

When i try to run vagrant up i get this error

   $ 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

推荐答案

下载此补丁

Vbox Win10修复

Vbox Win10 Fix

问题票证

运行此修补程序,并使其在后台运行

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

右键单击VirtualBox.exe

转到兼容性选项,然后选择Run in compatible mode并选择Windows 7.

Go to compatibility option and select Run in compatible mode and select Windows 7.

然后单击确定.

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

Repeat this proccess for this files VBoxManage.exe VBoxHeadless.exe

这篇关于无业游民命令无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆