Linux VBOX_NOT_FOUNDHigh

Fixing VirtualBox Driver Error in Minikube on Linux

This article explains why Minikube on Linux cannot use VirtualBox due to missing or incorrectly installed kernel drivers, and provides proven solutions—from reinstalling DKMS to switching drivers.

Updated at February 15, 2026
10-15 min
Medium
FixPedia Team
Применимо к:Minikube v1.30+VirtualBox 6.1/7.0Ubuntu 20.04/22.04/24.04Debian 11/12Linux kernel 5.4+

What a VirtualBox Driver Error in Minikube Means

A VirtualBox driver error in Minikube typically occurs when trying to start a cluster with the command minikube start --driver=virtualbox. The full error text may vary:

❌  Exiting due to DRV_NOT_FOUND: The virtualbox driver requires a working virtualbox installation.
   Please install virtualbox or use another driver.

Or more specifically:

❌  Exiting due to DRV_NOT_AVAILABLE: The driver 'virtualbox' is not available on this system.
   Reason: failed to find the virtualbox driver: exec: "VBoxManage": executable file not found in $PATH

This error means that Minikube cannot find or use the VBoxManage executable (the VirtualBox management utility) or, more commonly, cannot load the vboxdrv kernel module, which is the foundation for VirtualBox operation on Linux.

Causes

The error arises from operating system-level issues, not Minikube itself. Main causes:

  1. Missing virtualbox-dkms package. In Debian/Ubuntu-based distributions, this package is essential. It contains DKMS (Dynamic Kernel Module Support) scripts that automatically build the vboxdrv kernel module for your current Linux kernel version upon installation or update. Without it, the module is absent.
  2. Kernel module vboxdrv is not loaded. Even if the package is installed, the module may not be loaded into the current kernel. This happens automatically at boot but can break after a kernel update if DKMS failed, or after a manual VirtualBox installation without DKMS.
  3. Insufficient user permissions. To manage virtual machines via VirtualBox, the user must belong to the vboxusers group. If the user is not in this group, access to /dev/vboxdrv and other devices will be denied.
  4. Kernel and DKMS version mismatch. After a major kernel upgrade (e.g., from 5.15 to 6.2), the previously built vboxdrv module becomes incompatible. DKMS should automatically rebuild it, but this process may fail.
  5. VirtualBox is installed but VBoxManage is not in PATH. Installation from third-party repositories or manual installation may place binaries in a non-standard location (e.g., /usr/local/bin), which is not in the user's PATH environment variable.

This is the most reliable method, solving most kernel module-related issues.

  1. Completely remove the existing VirtualBox installation (if present):
    sudo apt-get purge virtualbox virtualbox-dkms
    sudo apt-get autoremove
    
  2. Install VirtualBox and DKMS from the official repository (or your distribution's repository):
    sudo apt update
    sudo apt install -y virtualbox virtualbox-dkms
    

    The virtualbox-dkms package will trigger the DKMS module build process. Pay close attention to the dpkg -i output—it may show a build error.
  3. Verify the module is loaded:
    lsmod | grep vboxdrv
    

    If the command outputs nothing, load the module manually:
    sudo modprobe vboxdrv
    
  4. Add the current user to the vboxusers group:
    sudo usermod -aG vboxusers $USER
    

    Important: Changes take effect only after logging out and back in (or rebooting). Simply opening a new terminal is not enough.
  5. Clean Minikube state and start fresh:
    minikube stop
    minikube delete
    minikube start --driver=virtualbox
    

Method 2: Manual Kernel Module Management (If DKMS Failed)

If the vboxdrv module does not appear after installing virtualbox-dkms (e.g., due to missing linux-headers-$(uname -r)), you need to install missing dependencies and rebuild the module manually.

  1. Install headers for your current kernel:
    sudo apt install -y linux-headers-$(uname -r) build-essential dkms
    
  2. Rebuild the DKMS module manually:
    sudo dkms autoinstall
    

    Or, if that doesn't help, navigate to the module directory and build explicitly:
    cd /usr/src/linux-headers-$(uname -r)/
    sudo make modules_prepare
    sudo dkms build -m virtualbox -v $(cat /usr/share/doc/virtualbox-dkms/VERSION) 2>/dev/null || true
    sudo dkms install -m virtualbox -v $(cat /usr/share/doc/virtualbox-dkms/VERSION)
    
  3. Repeat steps 3–5 from Method 1 (load module, add to group, restart Minikube).

Method 3: Using an Alternative Driver (Quick Fix)

If using Virtualbox specifically is not critical (e.g., you're just starting with Kubernetes), it's easier to switch Minikube to the docker or podman driver. This bypasses kernel module issues.

  1. Ensure Docker/Podman is installed and running:
    sudo systemctl status docker  # for Docker
    # or
    systemctl status podman       # for Podman
    
  2. Delete the current (broken) Minikube cluster:
    minikube delete
    
  3. Start Minikube with the docker driver:
    minikube start --driver=docker
    

    To use Podman instead:
    minikube start --driver=podman
    

Note: The docker driver uses containers instead of virtual machines, making it more lightweight and faster for development. However, it requires a running Docker/Podman daemon and does not isolate the cluster as strongly as VirtualBox.

Method 4: Checking and Fixing Device Permissions

Sometimes the issue isn't a missing module but incorrect permissions on the /dev/vboxdrv device.

  1. Check device permissions:
    ls -l /dev/vboxdrv
    

    Correct output should look similar to:
    crw-rw---- 1 root vboxusers 10, 57 Feb 15 10:00 /dev/vboxdrv
    

    Note the vboxusers group.
  2. If the group is not vboxusers or permissions differ, fix them:
    sudo chown root:vboxusers /dev/vboxdrv
    sudo chmod 660 /dev/vboxdrv
    
  3. Confirm your user is indeed in the vboxusers group:
    groups $USER
    

    If vboxusers is not listed, return to step 4 in Method 1.

Prevention

To avoid recurring issues:

  • When updating the Linux kernel, always check DKMS module status: sudo dkms status. After a kernel update via apt upgrade, the system should automatically rebuild VirtualBox modules. If it didn't, run sudo dkms autoinstall.
  • Install VirtualBox only from your distribution's official repositories or from the official VirtualBox website (which also provides .deb packages). Avoid manual installation from binary archives without DKMS.
  • Regularly update VirtualBox via the package manager (sudo apt upgrade). Newer versions often contain compatibility fixes for recent kernels.
  • Use the docker driver by default for Minikube on Linux unless strong isolation requirements exist. This eliminates kernel module hassles and simplifies the workflow.

F.A.Q.

Why doesn't Minikube find the VirtualBox driver after installation?
Can I use Minikube without VirtualBox on Linux?
What to do if the error persists after installing `virtualbox-dkms`?
What's the difference between virtualbox and docker drivers in Minikube?

Hints

Check VirtualBox driver status
Install or reinstall DKMS and the module
Manually load the module and add user to group
Restart Minikube specifying the driver
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community