【问题描述】: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即可。