Big Sur MacOS Vagrant问题

6
我刚刚更新了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了。


这个回答解决了你的问题吗?在MacOS Big Sur升级中遇到Vagrant Up错误 - Sam
3个回答

8

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

  1. 更新您的VirtualBox
  2. 更新您的Vagrant
  3. 进入“系统偏好设置”,然后进入“隐私与安全”并在“通用”选项卡中允许权限。

1
这是解决方案。 - Sawyer
如果这不起作用,请尝试使用vagrant plugin update更新Vagrant插件(看到我做了什么吗?)之后再试一次。 :) - imprfekt

0

我也曾遇到这个问题,将我的VirtualBox升级到6.1版本后问题得到了解决。可以在这里查看相关信息。

但是当我尝试使用虚拟机v6.0时,错误仍然存在。


0

我已经更新了VirtualBox,甚至重新安装了它,但问题并没有解决。在我卸载和重新安装Virtualbox、允许权限并重启电脑后,问题得到了解决。我按照以下步骤操作:

  1. 使用官方的卸载程序卸载VirtualBox
  2. 使用VirtualBox.pkg进行干净的安装
  3. 调整Big Sur的隐私设置:系统偏好设置 > 安全性与隐私 > 点击解锁按钮
  4. 重新启动电脑

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接