virtualbox runs, can load a Windows 11 appliance, but on starting I get: RTR3InitEx faile with rc=-1912 (fRtF;ags=0x10000) (rc=-1912) The VirtualBox kernel modules do not match this versoin of VirtualBox. The installation of VirtualBox was apparently not successful. Executing 'emerge -1 virtualbox-modules' may correct this. Maek sure that your are not mixing builds of VirtualBox from different sources. where: supR3HardendedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user. -- end quote (not was typed, not pasted, my contain typos) I'm guessing that the version numbers don't match 7.0.8a vs 7.0.8
No, 7.0.8a uses the same modules as 7.0.8, the change was minor and unrelated. Please check what version you have loaded now, sometimes older kernel modules can linger inside the initramfs. dmesg | grep vbox or cat /sys/module/vbox*/version
# dmesg | grep vbox [ 5.772328] vboxdrv: loading out-of-tree module taints kernel. [ 5.773809] vboxdrv: Found 12 processor cores [ 5.789037] vboxdrv: TSC mode is Invariant, tentative frequency 3593248740 Hz [ 5.789039] vboxdrv: Successfully loaded version 6.1.24 r145767 (interface 0x00300000) [ 9.925427] Modules linked in: amdgpu(+) drm_ttm_helper ttm gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm vboxnetadp(O) vboxnetflt(O) vboxdrv(O) efivarfs # cat /sys/module/vbox*/version 6.1.24 r145767 (0x00300000) 6.1.24 r145767 ((0xA2CDe001U)) 6.1.24 r145767 ((0xA2CDe001U)) # ls -ld /usr/src/linux lrwxrwxrwx 1 root root 19 Jun 13 19:07 /usr/src/linux -> linux-6.1.31-gentoo Why is it showing 6.1.24?
That's the cause of the error, you have old modules loaded. What happens if you try to reload them? As root: rmmod vboxnetadp rmmod vboxnetflt rmmod vboxdrv modprobe vboxdrv modprobe vboxnetflt modprobe vboxnetadp Then check their versions again.
After the 3 rmmod & modprobe the versions are the same: 6.1.24 This is the first time I've installed virtualbox, I don't see how an older module could have got there.
This is a bit odd... # equery files virtualbox-modules * Searching for virtualbox-modules ... * Contents of app-emulation/virtualbox-modules-7.0.8: /etc /etc/modprobe.d /etc/modprobe.d/vboxdrv.conf /lib /lib/modules /lib/modules/6.1.31-gentoo /lib/modules/6.1.31-gentoo/misc /lib/modules/6.1.31-gentoo/misc/vboxdrv.ko /lib/modules/6.1.31-gentoo/misc/vboxnetadp.ko /lib/modules/6.1.31-gentoo/misc/vboxnetflt.ko /usr /usr/lib /usr/lib/modules-load.d /usr/lib/modules-load.d/virtualbox.conf
This is the modprobe with --verbose... # ~/bin/vbox-add insmod /lib/modules/5.12.12-gentoo/misc/vboxdrv.ko insmod /lib/modules/5.12.12-gentoo/misc/vboxnetflt.ko insmod /lib/modules/5.12.12-gentoo/misc/vboxnetadp.ko Then the version... # ~/bin/vbox-ls -r--r--r-- 1 root root 4096 Jun 16 13:59 /sys/module/vboxnetadp/version 6.1.24 r145767 ((0xA2CDe001U)) -r--r--r-- 1 root root 4096 Jun 16 13:59 /sys/module/vboxnetflt/version 6.1.24 r145767 ((0xA2CDe001U)) -r--r--r-- 1 root root 4096 Jun 16 13:59 /sys/module/vboxdrv/version 6.1.24 r145767 (0x00300000)
It looks like my last kernel build failed at some point, so I'm running on 5.12.12 which explains things.
Thank you for the follow-up, and glad you found the cause. I'll close the bug as invalid, there is not much I can do to fix this issue.