我刚刚将 MacOS 更新为新版本(Big Sur)。当我尝试 vagrant up 启动 vagrant 时,它显示如下错误:
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: NS_ERROR_FAILURE
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 NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
有谁知道如何解决这个问题?我已经尝试再次安装 vagrant。
最佳答案
我已经通过以下步骤解决了这个问题:
System Preference
然后 privacy& security
并允许在一般点击的权限。 关于vagrant - Big Sur MacOS Vagrant 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64852413/