Re: Virtualbox installation

From: Christoph Kukulies <kuku_at_kukulies.org>
Date: Wed, 09 Feb 2022 13:39:31 UTC
Thanks. Your reply lead me the way. Forgot to build the kmods.

After the make install:

# pkg info -l virtualbox-ose-kmod
virtualbox-ose-kmod-6.1.32:
	/boot/modules/vboxdrv.ko
	/boot/modules/vboxnetadp.ko
	/boot/modules/vboxnetflt.ko
	/usr/local/etc/rc.d/vboxnet
	/usr/local/share/licenses/virtualbox-ose-kmod-6.1.32/GPLv2
	/usr/local/share/licenses/virtualbox-ose-kmod-6.1.32/LICENSE
	/usr/local/share/licenses/virtualbox-ose-kmod-6.1.32/catalog.mk


And after reboot:

$ kldstat
Id Refs Address                Size Name
 1   54 0xffffffff80200000  2295a98 kernel
 2    3 0xffffffff82496000    88480 vboxdrv.ko
 3    2 0xffffffff82721000     2ce0 vboxnetflt.ko
 4    2 0xffffffff82724000     9bc0 netgraph.ko
 5    1 0xffffffff8272e000     1780 ng_ether.ko
 6    1 0xffffffff82730000     3f00 vboxnetadp.ko
 7    2 0xffffffff82734000    3d260 ctl.ko
 8    1 0xffffffff82772000     6170 cfiscsi.ko
 9    1 0xffffffff82779000     c654 iscsi.ko
10    1 0xffffffff82786000     2150 acpi_wmi.ko
11    1 0xffffffff82789000     2698 intpm.ko
12    1 0xffffffff8278c000      b40 smbus.ko
13    1 0xffffffff8278d000     1860 uhid.ko
14    1 0xffffffff8278f000     2908 ums.ko
15    1 0xffffffff82792000     1a40 wmt.ko
16    1 0xffffffff82794000      acf mac_ntpd.ko
$ 
$ 


—
Christoph



> Am 09.02.2022 um 13:08 schrieb Herbert J. Skuhra <herbert@gojira.at>:
> 
> On Wed, Feb 09, 2022 at 12:37:01PM +0100, Christoph Kukulies wrote:
>> I successfully built
>> 
>> /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-5.2.32
>> 
>> I added vboxdrv_load=„YES“ in loader.conf.
>> 
>> But I don’t see any vbox signs when typing kldstat.
>> 
>> Also in my previous (12.1) vbox installation there were files
>> 
>> in
>> /boot/modules/
>> 
>> linker.hints	vboxdrv.ko	vboxguest.ko	vboxnetadp.ko	vboxnetflt.ko	vboxvfs.ko
>> 
>> which ain’t there now. /boot/modules is empty.
>> 
>> Anything I’m missing?
> 
> What exact commands did you run? In what directory? 
> 
> What's the output of:
> 
> # pkg info -l virtualbox-ose-kmod
> 
> What happens if you run:
> 
> # cd /usr/ports/emulators/virtualbox-ose-kmod
> # make clean install clean
> 
> -- 
> Herbert