Work in progress
Getting networking right is always an issue. At the very least we currently (September
2023) need:
=== root@eureka (/dev/pts/26) ~ 39 -> kldload ng_ether
=== root@eureka (/dev/pts/26) ~ 40 -> kldload vboxdrv
=== root@eureka (/dev/pts/26) ~ 41 -> kldload vboxnetadp
=== root@eureka (/dev/pts/26) ~ 42 -> kldstat
Id Refs Address Size Name
...
13 1 0xffffffff82d53000 412b ng_ether.ko
14 3 0xffffffff82c35000 4e436 vboxdrv.ko
15 1 0xffffffff82c84000 3f64 vboxnetadp.ko
16 1 0xffffffff82c88000 2a02 vboxnetflt.ko
It seems that vboxnetflt gets loaded automatically.
In /boot/loader.conf , add:
ng_ether_load="YES" # For VirtualBox
vboxdrv_load="YES" # VirtualBox module
vboxnetadpdrv_load="YES" # VirtualBox module
Configure network adapters: set “Bridged Adapter”. The Name: parameter refers to the
interface on the host, not the guest. In some cases (here for example ) the guest needs to be rebooted after reloading klds.