On 28/01/2022 09:10, Bertram Scharpf wrote:
Hi,

after a kernel update and a

   # emerge -av @module-rebuild

the VirtualBox modules cannot be found any more.

   # find /lib/modules/`uname -r` -name 'vbox*'
   /lib/modules/5.15.16-gentoo/misc/vboxnetflt.ko
   /lib/modules/5.15.16-gentoo/misc/vboxdrv.ko
   /lib/modules/5.15.16-gentoo/misc/vboxnetadp.ko
   # modprobe vboxdrv
   modprobe: FATAL: Module vboxdrv not found in directory 
/lib/modules/5.15.16-gentoo

What is going on here?

You've updated your kernel, and you need to rebuild the modules, WHICH DOES NOT HAPPEN BY DEFAULT.

So, set your default kernel to the currently running one, and "emerge virtualbox-modules". If that doesn't work, in my case it was I over-rode the default make options so

"EMERGE_DEFAULT_OPS = "" emerge virtualbox-modules"

and if that doesn't work, well, I'm out of ideas ...

Cheers,
Wol

Reply via email to