VBoxManage: error: Failed to create the host-only

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VBoxManage: error: Failed to create the host-only相关的知识,希望对你有一定的参考价值。

【问题描述】:vagrant up 失败,报错如下:
centos7$ vagrant up
Bringing machine ‘do1‘ up with ‘virtualbox‘ provider...
Bringing machine ‘do2‘ up with ‘virtualbox‘ provider...
Bringing machine ‘do3‘ up with ‘virtualbox‘ provider...
==> do1: Importing base box ‘centos/7‘...
==> do1: Matching MAC address for NAT networking...
==> do1: Checking if box ‘centos/7‘ version ‘1901.01‘ is up to date...
==> do1: Setting the name of the VM: centos7do1155309648889913563
==> do1: 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: NSERRORFAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NSERRORFAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg )" at line 94 of file VBoxManageHostonly.cpp
【排查分析】:兼容性问题
【解决方案】:下载低版本的box即可,当前最新为6.0.4,下载5.2.26即可。

以上是关于VBoxManage: error: Failed to create the host-only的主要内容,如果未能解决你的问题,请参考以下文章

VBoxManage:错误:无法创建仅主机适配器[关闭]

Docker安装使用常见错误

Vagrant VBoxManage:错误:AMD-V 不可用(VERR_SVM_NO_SVM)

Command failed with error 18 (AuthenticationFailed): ‘Authentication failed.’

pymongo.errors.OperationFailure: Authentication failed.

Error response from daemon: driver failed... Error: failed to start containers...