I wanted to start a new thread because of issues with Virtualbox and 6.12.16 when I found your thread on top of the page. Just like you I have enabled PREEMPT_RT in my kernel for the first time. So I tried to check if this could be that cause. I tried 3 things:
Code: Select all
Linux daw 6.12.16-gentoo #2 SMP PREEMPT_RT Thu Mar 6 14:07:19 CET 2025 x86_64 AMD EPYC 7401P 24-Core Processor AuthenticAMD GNU/Linux
Virtualbox cannnot start the virtual machine and hangs, needs "kill -9" to even stop it.
Code: Select all
Linux daw 6.6.52-gentoo #1 SMP PREEMPT_DYNAMIC Sat Mar 1 13:07:08 CET 2025 x86_64 AMD EPYC 7401P 24-Core Processor AuthenticAMD GNU/Linux
My previous kernel, the same machine starts and works flawless.
So I recompiled my kernel and went back to "low latency desktop" PREEMPT_DYNAMIC=y. But with "make modules_install" I got this at the end:
Code: Select all
DEPMOD /lib/modules/6.12.16-gentoo
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxsf.ko needs unknown symbol rt_spin_unlock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxsf.ko needs unknown symbol rt_spin_lock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxnetflt.ko needs unknown symbol __local_bh_disable_ip
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxnetflt.ko needs unknown symbol rt_read_lock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxnetflt.ko needs unknown symbol rt_read_unlock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxvideo.ko needs unknown symbol rt_spin_unlock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxvideo.ko needs unknown symbol rt_spin_lock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxvideo.ko needs unknown symbol __mutex_rt_init
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxguest.ko needs unknown symbol rt_spin_unlock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxguest.ko needs unknown symbol rt_spin_lock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxdrv.ko needs unknown symbol rt_spin_unlock
depmod: WARNING: /lib/modules/6.12.16-gentoo/misc/vboxdrv.ko needs unknown symbol rt_spin_lock
I next emerged (as always after a kernel rebuild) @module-rebuild and virtualbox-extpack-oracle. and rebooted.
Code: Select all
Linux daw 6.12.16-gentoo #4 SMP PREEMPT_DYNAMIC Sat Mar 8 14:25:40 CET 2025 x86_64 AMD EPYC 7401P 24-Core Processor AuthenticAMD GNU/Linux
The same VM that failed to start with PREEMPT_RT does start and works again.