cyberus-technology / virtualbox-kvm

VirtualBox with KVM Backend. With our current development model, we cannot easily accept pull requests here. If you'd like to contribute, feel free to reach out to us, we are happy to find a solution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VirtualBox KVM

This repository contains an adapted version of the open source virtualization tool VirtualBox called VirtualBox KVM. VirtualBox KVM uses Linux KVM as the underlying hypervisor.

What to expect

The basic look and feel of VirtualBox KVM will be the same as with an conventional VirtualBox. The user is able to boot the same guest VMs in their existing VirtualBox configuration.

Nonetheless, there are the following benefits of using VirtualBox KVM compared to the conventional VirtualBox:

  • VirtualBox can run in parallel to QEMU/KVM
  • VirtualBox kernel driver (vboxdrv) is not required
  • Modern virtualization features supported by KVM are automatically used (e.g. APICv)
  • KVM is part of the Linux kernel and therefore always directly available with every kernel update

Due to the replacement of the underlying hypervisor, there will be differences in the guest performance. Performance differences heavily depend on the guest workload.

How to use

There are no prebuilt packages of VirtualBox KVM and it needs to be built from source. The process of building VirtualBox from source can be found on and only minor adjustments are required to build VirtualBox with KVM as a backend.

On a fresh install of Ubuntu 22.04, you can use the following command to install all prerequisites via apt:

apt install acpica-tools chrpath doxygen g++-multilib libasound2-dev libcap-dev \
        libcurl4-openssl-dev libdevmapper-dev libidl-dev libopus-dev libpam0g-dev \
        libpulse-dev libqt5opengl5-dev libqt5x11extras5-dev qttools5-dev libsdl1.2-dev libsdl-ttf2.0-dev \
        libssl-dev libvpx-dev libxcursor-dev libxinerama-dev libxml2-dev libxml2-utils \
        libxmu-dev libxrandr-dev make nasm python3-dev python2-dev qttools5-dev-tools \
        texlive texlive-fonts-extra texlive-latex-extra unzip xsltproc \
        default-jdk libstdc++5 libxslt1-dev linux-kernel-headers makeself \
        mesa-common-dev subversion yasm zlib1g-dev glslang-tools \
        libc6-dev-i386 lib32stdc++6 libtpms-dev

Newer GCC versions (>= 12) might cause build issues. The command above installs a compatible version on Ubuntu 22.04.

After having all the prerequisites installed, the build process can be condensed to the following steps:

$ ./configure --with-kvm --disable-kmods --disable-docs --disable-hardening --disable-java
$ source ./
$ kmk
$ out/linux.amd64/release/bin/VirtualBox

The noticeable difference to the official build process is the addition of --with-kvm when calling ./configure.

Known issues and limitations

  • Currently, Intel x86_64 is the only supported host platform.
    • AMD will most likely work too but is considered experimental at the moment.
  • Linux is required as a host operating system for building and running VirtualBox KVM.
  • Starting with Intel Tiger Lake (11th Gen Core processors) or newer, split lock detection must be turned off in the host system. This can be achieved using the Linux kernel command line parameter split_lock_detect=off or using the split_lock_mitigate sysctl.

How to engage

If you would like to use VirtualBox with KVM or if you have a need for custom virtualization solutions, we are happy to provide guidance and engineering services. Please reach out to us via our support form or via e-mail at

If you encounter any issues please use the provided issue template and describe your problem as detailed as possible.


VirtualBox with KVM Backend. With our current development model, we cannot easily accept pull requests here. If you'd like to contribute, feel free to reach out to us, we are happy to find a solution.



Language:C 56.9%Language:C++ 32.0%Language:Assembly 3.4%Language:Python 2.4%Language:HTML 1.7%Language:Perl 1.2%Language:Shell 0.5%Language:Makefile 0.4%Language:DTrace 0.2%Language:Rich Text Format 0.2%Language:XSLT 0.2%Language:RPGLE 0.1%Language:Meson 0.1%Language:Roff 0.1%Language:GAP 0.1%Language:Yacc 0.1%Language:PLpgSQL 0.1%Language:Batchfile 0.0%Language:Java 0.0%Language:M4 0.0%Language:ASL 0.0%Language:NSIS 0.0%Language:VBScript 0.0%Language:TeX 0.0%Language:CMake 0.0%Language:Objective-C 0.0%Language:JavaScript 0.0%Language:IDL 0.0%Language:Lex 0.0%Language:GLSL 0.0%Language:Objective-C++ 0.0%Language:PHP 0.0%Language:DIGITAL Command Language 0.0%Language:sed 0.0%Language:NASL 0.0%Language:CSS 0.0%Language:Awk 0.0%Language:LLVM 0.0%Language:Lua 0.0%Language:DenizenScript 0.0%Language:Rez 0.0%Language:ANTLR 0.0%Language:PowerShell 0.0%Language:C# 0.0%Language:Emacs Lisp 0.0%Language:eC 0.0%Language:Clean 0.0%Language:Module Management System 0.0%Language:Pawn 0.0%Language:VCL 0.0%Language:Visual Basic 6.0 0.0%Language:D 0.0%Language:SourcePawn 0.0%Language:GDB 0.0%Language:QMake 0.0%Language:HLSL 0.0%Language:SAS 0.0%Language:Visual Basic .NET 0.0%Language:Ruby 0.0%Language:Dockerfile 0.0%Language:Max 0.0%Language:Raku 0.0%