Big Sur MacOS Vagrant 问题

Koi*_*thé 5 apache2 vagrant

我刚刚将 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
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?我已经尝试再次安装 vagrant。

Sok*_*nty 8

我通过以下步骤解决了这个问题:

  1. 更新您的虚拟机
  2. 更新你的流浪者
  3. 转到System Preference然后privacy& security并一般点击允许权限。