VBoxManage:错误:无法创建仅主机的适配器 [英] VBoxManage: error: Failed to create the host-only adapter

查看:1046
本文介绍了VBoxManage:错误:无法创建仅主机的适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在fedora 17机器上运行 vagrant 1.4和 virtual box 4.3。当我无所事事时,出现以下错误:

 使计算机默认与 virtualbox提供程序一起启动。 。


[默认]清除任何先前设置的转发端口...
[默认]清除任何先前设置的网络接口...
出现错误执行`VBoxManage`,由Vagrant
使用的CLI控制VirtualBox。命令和stderr如下所示。

命令:[ hostonlyif,创建]

Stderr:0%...
进度状态:NS_ERROR_FAILURE
VBoxManage:错误:无法创建仅主机的适配器
VBoxManage:错误:VBoxNetAdpCtl:添加新接口时出错:VBoxNetAdpCtl:/ dev / vboxnetctl的ioctl失败:设备
的ioctl不适当VBoxManage:错误:详细信息:代码NS_ERROR_FAILURE (0x80004005),组件HostNetworkInterface,接口IHostNetworkInterface
VBoxManage:错误:上下文: int handleCreate(HandlerArg *,int,int *)位于文件VBoxManageHostonly.cpp的第66行


解决方案

我今天遇到了同样的问题。原因是我在VirtualBox中运行了另一个VM。



解决方案:


  1. 打开VirtualBox并关闭每个正在运行的VM

  2. 重新启动VirtualBox



< pre class = lang-sh prettyprint-override> sudo / Library / Application Support / VirtualBox / LaunchDaemons / VirtualBoxStartup.sh重新启动

您现在应该能够运行无用了无用装填并配置了新主机。


此答案,macOS的最新版本可以阻止VirtualBox。


解决方案:



转到系统偏好设置>安全与安保隐私,然后单击允许按钮以加载Oracle(VirtualBox)。



(感谢@pazhyn & @lsimonetti 进行澄清)


I am running vagrant 1.4 and virtual box 4.3 on fedora 17 machine. When I do "vagrant up", I get this error:

Bringing machine 'default' up with 'virtualbox' provider...                                                                            


[default] Clearing any previously set forwarded ports...                                                                                                                
[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: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp

解决方案

I had the same problem today. The reason was that I had another VM running in VirtualBox.

Solution:

  1. Open VirtualBox and shut down every VM running
  2. Restart VirtualBox

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

You should now be able to run vagrant up or vagrant reload and have your new host configured.

As mentioned in this answer, recent versions of macOS can block VirtualBox.

Solution:

Go to System Preferences > Security & Privacy Then hit the "Allow" button to let Oracle (VirtualBox) load.

(thanks to @pazhyn & @lsimonetti for clarifications)

这篇关于VBoxManage:错误:无法创建仅主机的适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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