Varagant up命令在windows 10中显示错误

Varagant up命令在windows 10中显示错误,windows,vagrant,Windows,Vagrant,在Windows10中使用vagrant up命令时,我遇到以下错误 Stderr: 0%... Progress state: E_FAIL VBoxManage.exe: error: Failed to create the host-only adapter VBoxManage.exe: error: Operation canceled by the user VBoxManage.exe: error: Details: code E_FAIL (0x80004005), comp

在Windows10中使用vagrant up命令时,我遇到以下错误

Stderr: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Operation canceled by the user
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component VirtualBoxWrap, interface IVirtualBox
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp
A是

  • 打开VirtualBox
  • 转到文件->首选项->网络->仅主机网络
  • 手动创建一个新适配器,如下所示:
  • IPv4:192.168.2.1(在我的示例中,我的虚拟机ip是192.168.2.2,您必须使用前三部分 与您的ip地址相等,并将最后一个替换为1)

    掩码:255.255.255.0