Loading kernel modules for virtualbox via script

Leslie Jensen leslie at eskk.nu
Tue Dec 22 09:52:45 UTC 2009


>
>
> I have this in my crontab
>
> @reboot                                 root    /sbin/kldload
> /boot/modules/vboxnetflt.ko
>
>
>
> --
> Adam Vande More

Thanks for the answer!
The problem is that I understood that vboxnetflt.ko should be loaded 
before vboxnetadp.ko

I load vboxnetflt.ko in /boot/loader.conf and load vboxnetadp.ko 
manually after I've logged in.

I tried to load vboxnetadp.ko via crontab but Virtualbox came up with 
the error.

If I unload both modules and load them again manually, vboxnetflt.ko 
first. Then it works!

I can manage this, but I was looking for a way to do it automagically :-)

I've seen that if vboxnetadp.ko is loaded first it loads vboxnetflt.ko 
as well.

So what if the "dependency" was reversed? Then only vboxnetflt.ko had to 
be loaded and it could load vboxnetadp.ko.

/Leslie



More information about the freebsd-emulation mailing list