vagrant up 失败,/dev/vboxnetctl: MAC Big sur M1 芯片中没有这样的文件或目录

时间:2021-06-29 14:55:25

标签: macos vagrant virtualbox macos-big-sur

尝试执行 vagrant up 时在终端中出错

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

我使用的是 mac BigSur M1 芯片。

我尝试的一些解决方案

  1. 尝试重新安装 virtualbox
  2. vagrant up failed, /dev/vboxnetctl: no such file or directory 但 BigSur 中没有任何授予权限选项。

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:-1)

我有同样的问题,VirtualBox 不太可能更新到 ARM,尽管我找到了 JohnRofrano 的 reddit 帖子,他已经弄清楚了如何在 Vagrant 中使用 docker,不确定它是否可以帮助你,但把它贴在这里。 https://www.reddit.com/r/devops/comments/n973sc/developing_on_apple_m1_silicon_with_virtual/