Oracle is integrating a KVM backend into its VirtualBox hypervisor, allowing it to use the Linux kernel's built-in virtualization features instead of its custom module. This change addresses long-standing compatibility issues with kernel updates and Secure Boot. The move could enhance performance and ease maintenance for users and distributions.
For over a decade, VirtualBox has been a popular choice for developers and hobbyists due to its straightforward interface and support across platforms like Linux, Windows, macOS, and Solaris. However, on Linux hosts, it has depended on an out-of-tree kernel module called vboxdrv, which requires recompilation with every kernel update and causes problems with Secure Boot. These issues have driven some users toward alternatives like KVM and QEMU, which are integrated directly into the Linux kernel.
The shift to a KVM backend, first noted by Phoronix, enables VirtualBox to interface with the kernel's /dev/kvm device, the same mechanism used by tools such as QEMU and Cloud Hypervisor. This allows VirtualBox to handle CPU and memory virtualization through KVM while keeping its own features for device emulation, USB passthrough, and guest additions. A community patch for this integration, developed by cyberus-technology, has existed for years, but Oracle's decision to officially upstream it marks a key evolution.
This architectural update reduces Oracle's maintenance efforts, as the company no longer needs to track unstable kernel APIs for its module. KVM's stability and Secure Boot compatibility eliminate common breakage points, making VirtualBox easier for Linux distributions to package and support. For instance, distributions like Fedora have faced challenges including VirtualBox due to kernel incompatibilities.
Performance should improve, especially for demanding workloads, by leveraging KVM's optimized paths that underpin cloud platforms from Amazon, Google, and Oracle. However, the backend is Linux-specific, so VirtualBox will maintain its existing engine on other operating systems, creating a split architecture. Oracle has not detailed a timeline for full integration or compatibility with its proprietary extension pack, which includes features like USB 3.0 and disk encryption.
Overall, this pragmatic step acknowledges KVM's dominance in Linux virtualization, potentially drawing users back to VirtualBox with fewer hassles and stronger ecosystem ties.