Strange Vagrant错误消息:'无法创建主机网络接口'

时间:2013-12-06 08:00:22

标签: networking vagrant

我有一台基于VirtualBox的Vagrant机器存在一些问题(参见Vagrant crashes depending on physical network)。现在我尝试在另一块硬件上运行它(使用OS X Mavericks),并收到以下错误消息:

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: VBoxManage: error: Unable to create a host network interface
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Host,
interface IHost, callee nsISupports
Context: "CreateHostOnlyNetworkInterface (hif.asOutParam(),
progress.asOutParam())" at line 64 of file VBoxManageHostonly.cpp

这是什么意思?

出现错误我运行

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...

......然后崩溃了。有什么想法吗?

哦,顺便说一下:它是Vagrant 1.3.5和VirtualBox 4.1.18。

2 个答案:

答案 0 :(得分:3)

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

为我工作,请参阅https://coderwall.com/p/ydma0q

答案 1 :(得分:2)

流行的答案似乎是modprobe vboxnetadp(适用于Linux)或/Library/StartupItems/VirtualBox/VirtualBox restart(适用于Mac)。

但是,我的修复是将自己添加到vboxusers组并重新登录。