可以有用,我发现了这个错误.常见的解决方案是重新安装virtualbox,但有更好的方法.
解
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
Run Code Online (Sandbox Code Playgroud)
要么
sudo /Library/StartupItems/VirtualBox/VirtualBox start
Run Code Online (Sandbox Code Playgroud)
VirtualBox 4.3+
在最新版本上,文件(/ Library/StartupItems/VirtualBox/VirtualBox)不存在,因此您需要使用以下命令:
sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
Run Code Online (Sandbox Code Playgroud)
错误
执行时出错
VBoxManage,Vagrant用于控制VirtualBox的CLI.命令和stderr如下所示:["hostonlyif","create"]Stderr:0%...进度状态:NS_ERROR_FAILURE VBoxManage:错误:无法创建仅限主机的适配器VBoxManage:错误:VBoxNetAdpCtl:添加新接口时出错:无法打开/ dev/vboxnetctl:没有此类文件或目录
VBoxManage:错误:详细信息:代码NS_ERROR_FAILURE(0x80004005),组件HostNetworkInterface,接口IHostNetworkInterface VBoxManage:错误:上下文:文件VBoxManageHostonly.cpp第68行的"int handleCreate(HandlerArg*,int,int*)"
关于错误的Vagrant Git问题:https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107
我有一个Vagrant VM设置与VirtualBox一起运行.目前在尝试使用该命令启动它之后vagrant up,我在控制台中收到以下错误:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set network interfaces...
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: VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Inappropriate ioctl for devic
VBoxManage: error: …Run Code Online (Sandbox Code Playgroud) 此错误之前已在帖子中报告过:VBoxManage:错误:无法创建仅主机适配器,并且对于新版本的 Windows/vagrant/OracleVB 不断重复发生,如下所述。如果有人为下面描述的设置确定了此问题的解决方案,请在此处分享:
"bento/ubuntu-14.04"图像我安装了 Oracle VB,然后安装了 Vagrant(都是全新安装的),然后在vagrant up我的一个工作区中以 usuas 身份运行。vagrant 下载完虚拟盒后,在尝试启动 VM 时给出以下错误输出:
C:\Users\AHL\workspace>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-14.04' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-14.04'
default: URL: https://atlas.hashicorp.com/bento/ubuntu-14.04
==> default: Adding box 'bento/ubuntu-14.04' (v2.2.9) for provider: virtualbox …Run Code Online (Sandbox Code Playgroud)