Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908487 - app-emulation/virtualbox-7.0.8a incompatible with app-emulation/virtualbox-modules-7.0.8
Summary: app-emulation/virtualbox-7.0.8a incompatible with app-emulation/virtualbox-mo...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-14 07:44 UTC by Daiajo Tibdixious
Modified: 2023-06-16 05:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daiajo Tibdixious 2023-06-14 07:44:04 UTC
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
Comment 1 Viorel Munteanu gentoo-dev 2023-06-14 12:52:54 UTC
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
Comment 2 Daiajo Tibdixious 2023-06-14 20:37:11 UTC
# 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?
Comment 3 Viorel Munteanu gentoo-dev 2023-06-15 04:47:25 UTC
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.
Comment 4 Daiajo Tibdixious 2023-06-16 03:29:42 UTC
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.
Comment 5 Daiajo Tibdixious 2023-06-16 03:32:12 UTC
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
Comment 6 Daiajo Tibdixious 2023-06-16 04:02:02 UTC
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)
Comment 7 Daiajo Tibdixious 2023-06-16 04:05:58 UTC
It looks like my last kernel build failed at some point, so I'm running on 5.12.12 which explains things.
Comment 8 Viorel Munteanu gentoo-dev 2023-06-16 05:35:34 UTC
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.