/usr/ports/emulators/virtualbox-ose] # kldload vboxdrv kldload: an error occurred while loading the module. Please check dmesg(8) for more details. FreeBSD 11.1-STABLE #0 r332428:
root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Are you sure that your kernel and the vbox package are in sync?
pkg install vboxdrv Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 972.0kB/s 00:07 Processing entries: 0% Newer FreeBSD version for package font-arabic-misc: To ignore this error set IGNORE_OSVERSION=yes - package: 1102000 - running kernel: 1101515 Allow missmatch now?[Y/n]: y Processing entries: 100% FreeBSD repository update completed. 33415 packages processed. All repositories are up to date. pkg: No packages available to install matching 'vboxdrv' have been found in the repositories
May be linimon@FreeBSD.org said that you need to install kernel sources.
/boot/modules/vboxdrv.ko is provided by package virtualbox-ose-kmod (emulators/virtualbox-ose-kmod) Please install it first. If you hit version unmatched or other issues, please try to install it from ports. Thanks.