Fedora 41 kernel 6.12 error loading VMs

Discussions related to using VirtualBox on Linux hosts.
Post Reply
pepicheck
Posts: 23
Joined: 1. Jun 2023, 12:34

Fedora 41 kernel 6.12 error loading VMs

Post by pepicheck »

While installed kernel 6.12 on Fedora 41, no VM can be started:

VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
pepicheck
Posts: 23
Joined: 1. Jun 2023, 12:34

Re: Fedora 41 kernel 6.12 error loading VMs

Post by pepicheck »

While root:

$ lsmod | grep kvm

kvm_intel 446464 0
kvm 1454080 1 kvm_intel

$ modprobe -r kvm_intel

Above helped. To disable kvm_intel kernel module....

Should that be like this?
Virtebra
Posts: 16
Joined: 7. Oct 2024, 14:27
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Debian, Ubuntu, Fedora, RHEL, Oracle Linux, Centos stream, Windows, macOS

Re: Fedora 41 kernel 6.12 error loading VMs

Post by Virtebra »

Hi pepicheck,

It's a known problem since release of 7.1.4.
Kernel 6.12. in Fedora 41 is loading kvm modules (kvm_intel or kvm_amd) by default which conflicts with VirtualBox.
viewtopic.php?t=112890

See: https://www.virtualbox.org/wiki/Changelog
Introduce initial support for kernel 6.12 (NOTE: In kernel 6.12, KVM initializes virtualization on module loading by default. This prevents VirtualBox VMs from starting. In order to avoid this, either add "kvm.enable_virt_at_load=0" parameter into kernel command line or unload corresponding kvm_XXX module)
It feels like a deja vu. It was around a couple of times in the past. But I am sure it will be fixed in the future. Downgrading to 6.11 is also an option if you cannot live without kvm_* modules.
Post Reply