On Linux Mint 22.3 („Zena“), installing or running Oracle VirtualBox can fail if newer Linux kernels clash with driver modules or if KVM causes conflicts. This guide is aimed at advanced users looking to set up VirtualBox on Linux Mint.
Prerequisites
- An installed Linux Mint 22.3 system (Cinnamon, MATE, or Xfce edition on a 64-bit architecture).
- A user account with administrative privileges (
sudo).
Step 1: Remove Existing VirtualBox Modules
If previous installation attempts or package upgrades left incomplete driver modules behind, they can trigger conflicts. Existing VirtualBox modules can be purged via the package manager:
sudo apt purge virtualbox-dkmsStep 2: Adjust GRUB Boot Parameters
To avoid virtualization conflicts, GRUB boot parameters can be adjusted, for example by setting the parameter kvm.enable_virt_at_load=0.
Step 3: Disable KVM Modules
Additionally, disabling KVM kernel modules is recommended, such as by blacklisting kvm, kvm_intel, or kvm_amd.
Step 4: Reboot the System
The operating system must be rebooted for the modified kernel and module settings to take effect.
sudo rebootVirtualBox can then be set up via the Software Manager or Oracle’s official installer package.
Conclusion
Purging legacy modules and configuring KVM parameters can get VirtualBox running smoothly on Linux Mint 22.3. As a high-performance alternative, switching directly to a KVM-based virtualization solution is also worth considering.
Sources: Forum: Computerbase.de, de.wikipedia.org, computerbase.de

