Skip to content

[Bug]: VMs fail to start with critical error on Linux hosts with Kernel 6.12+ due to KVM module conflict #141

@eugenesan

Description

@eugenesan

Version

7.2.0

Host OS Type

Linux

Host OS name + version

Ubuntu 24.04.3

Host Architecture

x86

Guest OS Type

all

Guest Architecture

x86

Guest OS name + version

all

Component

VMM

What happened?

Virtualbox should install modprobe config to avoid conflict with KVM kernel module on Linux 6.12+.
Without this config, VMs will fail to start due critical error.

Ex:
/etc/modprobe.d/virtualbox-kvm-autodisable.conf:

#
# In kernel 6.12, KVM initializes virtualization on module loading by
# default. This prevents VirtualBox VMs from starting. In order to
# avoid this, block loading kvm module by default.
# (No need to do manually execute modprobe -r kvm_xxx and so on)
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082157
#
options kvm     enable_virt_at_load=0

Note: Borrowed from Debian package.

How can we reproduce this?

  1. Install Virtualbox on Debian 13 or Ubuntu 24.04.3 (or any other Linux host with Kernel 6.12+)
  2. Create any VM
  3. Try to start

Did you upload all of your necessary log files, screenshots, etc.?

  • Yes, I've uploaded all pertinent files to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions