If when trying to start a vm, for example using vagrant, you get the error message that the host network adapter cannot be created:
There was an error while executing `VBoxManage`, a CLI used by Vagrant<br></br>for controlling VirtualBox. The command and stderr is shown below.<br></br><br></br>Command: ["hostonlyif", "create"]<br></br><br></br>Stderr: 0%...<br></br>Progress state: NS_ERROR_FAILURE<br></br>VBoxManage: error: Failed to create the host-only adapter<br></br>VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory<br></br>VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface<br></br>VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 94 of file VBoxManageHostonly.cpp
Make sure to first start the virtualbox GUI application. It does some extra checks, and sometimes highlights the permission problem:
In my case (OpenSuse 15.1 Leap), my user was not added to the vboxusers group. Via Yast > Users and Security .... and editing my user account it was a simple checkbox away. Remember to relog.
If that doesn't work, reloading the kernel extensions could help:
$ sudo dpkg-reconfigure virtualbox-dkms$ sudo dpkg-reconfigure virtualbox<br></br>$ sudo modprobe vboxdrv <br></br>$ sudo modprobe vboxnetadp
#opensuse #virtualbox #linux #vagrant