VBoxManage.exe: error: Failed to create the host-only adapter
作者:互联网
系统类型及软件版本
- 系统:Win10 专业版
- Vagrant:Vagrant 2.2.4
- VM VirtualBox:6.0.12
报错信息
PS E:\Develop\Vagrant\Ubuntu_ser_18_bmg> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'peru/ubuntu-18.04-server-amd64' version '20191202.01' is up to date...
==> 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: Could not find Host Interface Networking driver! Please reinstall
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
报错原因
Could not find Host Interface Networking driver! Please reinstall
意思是:找不到主机接口网络驱动程序!请重新安装
这时我突然想到之前我觉得网络连接里面的网卡太多了,在设备管理 > 网络适配器 中卸载了许多自己认为不重要的虚拟网卡,同时也把VirtualBox虚拟网卡驱动给删除了
因为驱动没有了,无法创建虚拟网卡,所以通过 vagrant up
命令启动虚拟机抛出上面的错误信息。
解决办法
- 找到
xxx\Oracle\VirtualBox\drivers\network\netadp6
目录,文件如下。
- 右击
VBoxNetAdp6.inf
文件,选择安装
3. 这时执行 vagrant up
命令,可以正常启动虚拟机了!
标签:...,exe,create,up,网卡,only,error,VBoxManage 来源: https://blog.csdn.net/github_38336924/article/details/106684453