在 MacOs Big Sur 升级时遇到 Vagrant Up 错误

Sam*_*Sam 23 virtualbox vagrant macos-big-sur

我刚刚将我的 mac OS 从 Catalina 升级到 Big Sur。我的流浪汉以前工作正常,然后我遇到了这个问题。(流浪者版本:2.2.13)

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 95 of file VBoxManageHostonly.cpp
Run Code Online (Sandbox Code Playgroud)

当我尝试在 VirtualBox 上手动启动它时,这是返回消息:

Kernel driver not installed (rc=-1908)

Make sure the kernel module has been loaded successfully.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 
Run Code Online (Sandbox Code Playgroud)

有没有人知道如何解决这个问题?

小智 29

更新到 Big Sur 后,我遇到了同样的问题。我下载了最新版本的 Vagrant、Virtualbox 和 VirtualBox 扩展包。实际上,我不知道是否需要安装扩展包。

在 MacOS 的系统首选项中,在隐私和安全中,我必须批准来自 Oracle 的更新。

在这些步骤之后,我能够再次“流浪”。

  • Virtualbox 更新后,批准更新似乎是这个问题的解决方案。太感谢了!:) 这应该是公认的答案,因为它是最全面的答案。 (5认同)
  • 升级了 Virtual BOX 和 Vagrant 但仍然无法工作 (2认同)
  • 来自 Big Sur 的您好 - 我可以确认您必须升级 3 个东西 - Vagrant 本身、VirtualBox 和 VB 扩展包。通过安全和隐私授予权限后,还必须重新启动 macOS。完成此操作后,一切都应该恢复正常。 (2认同)

小智 11

将 VirtualBox 更新到 6.1.16 为我做到了。我没有更新 Vagrant