Page 1 of 1

Virtualbox and Host-only adapter

PostPosted: Jan 7th, '24, 00:47
by johnpenguin
Since upgrading to Mageia 9, Host-only adapters don't work in Virtualbox. Setting a virtual machine to use a Host-only adapter results in error (as happens with preexisting virtual machines that used to work fine before), and the same happens when trying to create a Host-only adapter under Tools/Network, which results in the following error message:

Code: Select all
Creating Host-only Network Interface

VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: Permission denied.

Result Code: NS_ERROR_FAILURE (0X80004005)


I have tried adding user to vbox group, but the problem persists.

Re: Virtualbox and Host-only adapter

PostPosted: Jan 7th, '24, 03:28
by doktor5000
IIRC you need to create hostonly adapter once as root. So run virtualbox once as root, in settings check or create the hostonly adapter. Then exit it and you should be able to use it then.
For each reboot after that another small workaround is needed, see https://bugs.mageia.org/show_bug.cgi?id=29614 and the later comments.