MacOS-Vagant Up失败,/dev/vboxnetctl:没有这样的文件或目录 [英] macOS - vagrant up failed, /dev/vboxnetctl: no such file or directory

查看:22
本文介绍了MacOS-Vagant Up失败,/dev/vboxnetctl:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能有用,我发现了这个错误。常见的解决方案是重新安装VirtualBox,但还有更好的方法。

解决方案

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

sudo /Library/StartupItems/VirtualBox/VirtualBox start

VirtualBox 4.3+

在最近的版本中,文件(/Library/StartupItems/VirtualBox/VirtualBox)不存在,需要使用以下命令:

sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist

错误

打印:http://d.pr/i/1Bvi

执行VBoxManage时出错,VBoxManage是Vagant用于控制VirtualBox的CLI。命令和stderr如下所示 命令:["hostonlyif","create"]

标准错误:0%.进度状态:NS_ERROR_FAILURE VBoxManage:错误: 无法创建仅主机适配器VBoxManage:错误: VBoxNetAdpCtl:添加新接口时出错:无法打开 /dev/vboxnetctl:没有这样的文件或目录

VBoxManage:错误:详细信息:代码NS_ERROR_FAILURE(0x80004005), 组件HostNetworkInterface,接口IHostNetworkInterface VBoxManage:Error:Context:"int handleCreate(HandlerArg*,int,int*)" 在文件VBoxManageHostonly.cpp的第68行

有关错误的流浪汉Git问题:https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107

推荐答案

我正在运行MacOS High Sierra 10.13.1和VirtualBox 5.2.2。

这对我有效:

  1. 授予系统首选项>;安全&;隐私>;常规下的VirtualBox权限(此请求是MacOS High Sierra的新请求)
  2. 打开终端运行:sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart

这篇关于MacOS-Vagant Up失败,/dev/vboxnetctl:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆