Oct 25, 2024 5 min read

VirtualBox Missing Dependencies — Windows & Linux Fix

# Troubleshooting VirtualBox Missing Dependencies — Windows and Linux VirtualBox is one of the most reliable free virtualization tools out there, but it throws some cryptic errors. The most common one I've hit — and the one that sends the most people to forums — is the "Missing Dependencies" error.

roubleshooting VirtualBox Missing Dependencies

VirtualBox is one of the most reliable free virtualization tools out there, but it throws some cryptic errors. The most common one I've hit — and the one that sends the most people to forums — is the "Missing Dependencies" error. It shows up differently depending on your platform: For more details, check out How to Install macOS in VirtualBox on Windows (2026 Guide).

  • Windows: "Missing Dependencies: Python Core / win32api"
  • Linux: "Kernel driver not installed (rc=-1908)" or "vboxdrv service not running"

This guide covers both platforms and the full range of fixes I've collected from years of using VirtualBox across Windows, Ubuntu, and Fedora.

The Windows "Missing Dependencies" Error

VirtualBox dependency error on Linux with terminal commands

This one usually appears when launching a VM or opening VirtualBox settings. It means VirtualBox can't find Python's win32api module, which it uses for certain host integration features.

Step 1: Install Python

First, make sure Python is installed on your system:

  1. Go to python.org/downloads and grab the latest Python 3 installer
  2. Critical: Check the box that says "Add Python to PATH" during installation
  3. Complete the installation and verify it worked by opening Command Prompt and typing: python --version

You should see something like Python 3.13.x. If you get "'python' is not recognized", Python isn't in your PATH — reinstall and make sure you checked that box.

Step 2: Install pywin32

Open PowerShell as Administrator (right-click Start > Windows Terminal Admin), then:

py -m pip install pywin32\n

If py doesn't work, use:

python -m pip install pywin32\n

After the install completes, you should see confirmation that pywin32 and its dependencies were installed successfully.

Step 3: Verify and Restart

Close all VirtualBox windows and relaunch it. The "Missing Dependencies" error should be gone.

Still broken? Do a full restart of your PC — sometimes VirtualBox caches the missing dependency check at startup and a reboot clears it.

Step 4: Alternative Fix (Reinstall VirtualBox)

If pip install doesn't fix it, VirtualBox's Python bindings might be corrupted:

  1. Uninstall VirtualBox from Control Panel > Programs and Features
  2. Reboot
  3. Download the latest version from virtualbox.org and reinstall
  4. During installation, make sure "Python Language Binding" is checked in the custom install options

Windows Advanced Troubleshooting

Issue: pywin32 installed but error persists

python -c "import win32api; print('OK')"\n

If this prints "OK" but VirtualBox still complains, you likely have multiple Python versions installed. VirtualBox picks the first one in your PATH. Temporarily rename the other Python folders to confirm.

Issue: "VirtualBox: COM object that has been separated from its underlying RCW" This happens when VirtualBox's Python bridge breaks. The fix: 1. Close VirtualBox 2. Open Task Manager, kill any VBoxSVC.exe processes 3. Restart VirtualBox

The Linux Kernel Module and Dependency Issues

Linux users face a different set of dependency problems — usually around kernel modules, missing headers, or conflicting packages.

Problem 1: "Kernel driver not installed (rc=-1908)"

This is the most common Linux VirtualBox error. It means the vboxdrv kernel module isn't loaded. Here's the fix:

On Ubuntu/Debian:

sudo apt update\nsudo apt install --reinstall virtualbox-dkms virtualbox-ext-pack\nsudo dpkg-reconfigure virtualbox-dkms\nsudo modprobe vboxdrv\n

On Fedora/RHEL:

sudo dnf install kernel-devel kernel-headers gcc make perl\nsudo /sbin/vboxconfig\nsudo modprobe vboxdrv\n

Problem 2: SecureBoot Blocking Kernel Modules

If your system has SecureBoot enabled (most modern PCs do), Linux won't load unsigned kernel modules — including VirtualBox's vboxdrv. You'll see an error like:

vboxdrv: module verification failed: signature and/or required key missing - tainting kernel\n

Fix option 1 — Sign the module (recommended):

sudo mokutil --import /var/lib/shim-signed/mok/MOK.der\n

You'll be prompted to create a password. Reboot and enroll the key in the MOK Manager (blue screen during boot). Then:

sudo modprobe vboxdrv\n

Fix option 2 — Disable SecureBoot (simpler but less secure):

  1. Enter your BIOS/UEFI settings during boot (usually F2, F12, or Del)
  2. Find the SecureBoot option and disable it
  3. Save, exit, and boot normally
  4. Load the module: sudo modprobe vboxdrv

Problem 3: Missing compiler or kernel headers

When updating the Linux kernel, VirtualBox's modules need to be recompiled. If you see errors about missing C compiler or kernel headers:

# Ubuntu/Debian\nsudo apt install build-essential linux-headers-$(uname -r)\n\n# Fedora\nsudo dnf install kernel-devel kernel-headers gcc make\n\n# Then rebuild VirtualBox modules\nsudo /sbin/rcvboxdrv setup\n

Problem 4: USB Devices Not Visible

USB passthrough requires the vboxusers group and the extension pack:

# Add yourself to the vboxusers group\nsudo usermod -aG vboxusers $USER\n\n# Log out and back in, then install extension pack\nsudo apt install virtualbox-ext-pack\n\n# Or download from virtualbox.org and install manually\n# File > Preferences > Extensions > Add the .vbox-extpack\n

Extension Pack Installation Issues

The VirtualBox Extension Pack adds USB 2.0/3.0 support, RDP, disk encryption, and PXE boot. Without it, some features silently fail.

If the extension pack install fails:

  1. Check that you downloaded the exact version matching your VirtualBox build VBoxManage --version
  2. Install via command line: VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack
  3. If you get a license rejection, accept the license terms by passing the --accept-license flag, or manually agree during the GUI install

Network Issues — Host-Only Adapter Not Working

When host-only networking fails to create, the issue is usually the vboxnet adapter:

# Check if the adapter exists\nVBoxManage list hostonlyifs\n\n# Create it if missing\nVBoxManage hostonlyif create\n\n# On Linux, you may need to bring it up manually\nsudo ip link set vboxnet0 up\n

On Windows, open Network Connections and verify the "VirtualBox Host-Only Network" adapter is enabled. If it's missing, go to VirtualBox > File > Host Network Manager and create a new host-only network there.

Performance Warnings

VirtualBox may also show dependency-related warnings about performance features:

  • "VT-x/AMD-V hardware acceleration is not available" — Check that virtualization is enabled in your BIOS/UEFI. It's often labeled "Intel VT-x", "AMD-V", or "SVM Mode". Restart and enable it.
  • "Nested VT-x/AMD-V is not enabled" — Requires the latest VirtualBox and a CPU that supports nested virtualization. Enable it in the VM's settings under System > Processor > "Enable Nested VT-x/AMD-V".

Prevention — The Update Checklist

The easiest way to avoid dependency hell is to keep things in sync:

  1. Update VirtualBox through the official channels — not your package manager on Linux. The repo version is often months behind. Download from virtualbox.org.
  2. Always install the matching Extension Pack — version numbers must match exactly
  3. After a Linux kernel update, always run: bash sudo /sbin/rcvboxdrv setup
  4. On Windows, keep pywin32 updated: powershell py -m pip install --upgrade pywin32

Summary of One-Liner Fixes

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ProblemQuick Fix
Windows: Missing win32apipy -m pip install pywin32
Windows: Error persistsReboot, or reinstall VBox with Python bindings
Linux: rc=-1908sudo modprobe vboxdrv
Linux: SecureBoot blockingSign module or disable SecureBoot
Linux: USB not workingsudo usermod -aG vboxusers $USER + install ext pack
All: Extension pack failMatch version to VirtualBox build
All: VT-x not availableEnable in BIOS/UEFI
\n\n

Most VirtualBox dependency issues come down to three things: missing Python modules on Windows, unsigned kernel modules on Linux, or version mismatches with the Extension Pack. Run through the checklist above and you'll be back to running VMs in a few minutes.

Techie Mike
Techie Mike
Computer Science teacher in Thailand. 10+ years Cambridge IGCSE, 4 years AS/A Level. BSc Computer Science & Engineering. Ex-Intel, Virgin Media. Practical exam prep, past paper walkthroughs and tech tutorials.