VirtualBox and Host interface

I’ve run into this problem two times so I need to take note of the solution for further reference.

If you are trying to host a virtual machine with a public IP address and you are experiencing the
-3100 (VERR_HOSTIF_INIT_FAILED)
error message, then all you need to do is running the following command as root
tunctl -t vbox0 -u YOUR_NON_ROOT_USERNAME

vbox0 is the name of your tap interface. If you follow the almighty gentoo-wiki instructions, it will be vbox0.

My script for having everything set up on demand is

modprobe vboxdrv
chown root:vboxusers /dev/net/tun
chmod g+rw /dev/net/tun
tunctl -t vbox0 -u federico

I run it whenever I need to work with VirtualBox.

Leave a Reply