Issue: VirtualBox kernel modules (vboxdrv) failing to build on Linux Kernel 6.14.0-37-generic

This is for discussing general topics about how to use VirtualBox.
Post Reply
User Defult
Posts: 1
Joined: 7. Feb 2026, 14:45

Issue: VirtualBox kernel modules (vboxdrv) failing to build on Linux Kernel 6.14.0-37-generic

Post by User Defult »

Environment:

OS: Linux Mint 22.3 XFCE x86_64

Kernel: 6.14.0-37-generic

Hardware: Intel i3-8100 / NVIDIA GTX 1050 (Driver 580)

VirtualBox Version: 7.0 / 7.1

Problem Description: During the installation of VirtualBox on Linux Mint 22.3 with the latest 6.14 kernel, the kernel module compilation (DKMS) fails. The system is unable to build the vboxdrv module, which prevents the application from starting.

Steps to Reproduce:

Use a system with Linux Kernel 6.14.

Run sudo apt install virtualbox-dkms or install the official .deb package.

Observe the compilation error during the DKMS trigger phase.

Current Workaround: I had to use Timeshift to revert my system to a previous state before the installation attempt to maintain system stability.

Logs/Error Snippet: vboxconfig reports that kernel headers for 6.14 are incompatible with the current VirtualBox source code.
klaus
Oracle Corporation
Posts: 2013
Joined: 10. May 2007, 14:57

Re: Issue: VirtualBox kernel modules (vboxdrv) failing to build on Linux Kernel 6.14.0-37-generic

Post by klaus »

The official VirtualBox packages from Oracle (for Mint 22.3 that's the one for Ubuntu Noble) do not use DKMS (and it's been this way for many years), so the virtualbox-dkms package hints you're using a package provided by Ubuntu most likely. That's 7.0.16 (and I don't know which 7.1 package you might be using...) and that's almost 2 years old and (unless Ubuntu made changes on their own...) was working with Linux kernels up to 6.8/6.9. Use a VirtualBox version (and package) which has the necessary changes for more recent kernels.
Post Reply