1.错误日志
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
2.解决
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
本文档记录了在使用Vagrant时遇到的一个错误:执行VBoxManage命令创建主机适配器时失败,错误信息显示为'NS_ERROR_FAILURE',详细日志指出'/dev/vboxnetctl'文件或目录不存在。解决方法是通过运行sudo'/Library/ApplicationSupport/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh'restart命令重启VirtualBox服务。
7056

被折叠的 条评论
为什么被折叠?



