我有一台基于 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。
最佳答案
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
为我工作,请参阅 https://coderwall.com/p/ydma0q
关于networking - 奇怪的 Vagrant 错误消息 : 'Unable to create a host network interface' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20418895/