DEV Community

Musale Martin
Musale Martin

Posted on

fixing vagrant up ns_error_failure

Today I installed Vagrant on a freshly installed OS and then when I ran a spun a test box, I came across this error

bug@bug ~/vm % vagrant up                                                                                                                                                                    (env: achieve) 
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: 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 66 of file VBoxManageHostonly.cpp
Enter fullscreen mode Exit fullscreen mode

I checked around the docs for Manjaro but I din't see this highlighted when you do an installation.

You have to reload virtualbox via CLI:

bug@bug ~/vm % sudo vboxreload
Enter fullscreen mode Exit fullscreen mode

You are sorted!

Discussion (0)