首页 > 解决方案 > 执行 `VBoxManage` 时出错(VBoxManage:错误:详细信息:代码 NS_ERROR_FAILURE (0x80004005),组件)

问题描述

运行时出现以下错误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

标签: vagrant

解决方案


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

sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart

推荐阅读