Skip to content

Instantly share code, notes, and snippets.

@caseyw
Created March 11, 2014 17:25
Show Gist options
  • Save caseyw/9490640 to your computer and use it in GitHub Desktop.
Save caseyw/9490640 to your computer and use it in GitHub Desktop.
error hostonlyif create
I had an issue with VB/Vagrant today. Here's the error, and the fix:
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: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 68 of file VBoxManageHostonly.cpp
FIX:
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
SO post too:
http://stackoverflow.com/questions/18149546/vagrant-up-failed-dev-vboxnetctl-no-such-file-or-directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment