执行`VBoxManage` 时出错(VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component )

use*_*187 4 vagrant

运行时出现以下错误 vagrant up

执行“VBoxManage”时出错,这是 Vagrant 用于控制 VirtualBox 的 CLI。命令和标准错误如下所示。

命令:["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

小智 16

打开终端并运行blow 命令来解决您的问题。

sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
Run Code Online (Sandbox Code Playgroud)

  • 这对我有用。但在它工作之前,它一直失败并出现此错误_错误:无法加载/Library/Application Support/VirtualBox/VBoxDrv.kext_。通过系统首选项允许虚拟框修复了此错误。系统偏好设置 → 安全和隐私 → 常规 (5认同)