现在,我在各种 Stack 网站和GitHub
. 但是,在尝试了他们推荐的一切之后,我的环境仍然无法正常工作,这就是我提出新问题的原因。
在升级到 之前Monteray
,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
详情:
Vagrant
版本2.2.19
VirtualBox
版本6.1
我试过的:
- 完全卸载和重新安装
Vagrant
和VirtualBox
。还授予了权限Security and Privacy
。 - 我试图强制
gui
而不是按照这里和这里的建议headless
设置v.gui = true
我。Vagrantfile
- 我已经尝试安装旧版本的
VirtualBox
,看看它是否解决了这个问题。 - 尝试安装
VirtualBox
扩展程序,重新启动我的 Mac 并运行vagrant up
,但没有任何变化。请参阅此处接受的答案以了解我的方法。
我已经没有办法尝试了。想知道是否有人有任何替代方法,因为我很难过。