Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Virtualization»Fix: VirtualBox Kernel Driver Not Installed (rc=-1908)

Fix: VirtualBox Kernel Driver Not Installed (rc=-1908)

Anup ThapaBy Anup ThapaAugust 10, 2022
virtualbox kernel driver not installed

MacOS High Sierra 10.13 introduced the User-Approved Kernel Extension Loading feature back in 2017. On all macOS versions since, you must manually approve kernel extensions before they can load.

If you attempt to load the kernel extension (KEXT) without approval, you’ll encounter the VirtualBox Kernel Driver Not Installed error message. 

While this usually happens during the first launch after installation, the error can also occur at later points due to unsigned modules and similar issues. The same is true for Linux systems as well.

Table of Contents

  • What’s Causing the VirtualBox Kernel Driver Not Installed Error?
  • How to Fix This Error on Mac?
    • Allow Module to Load
    • Clean Reinstall VirtualBox
    • Disable Secure Boot
    • Clear Kext Cache
    • Change Kernel Extension Flag
  • How to Fix This Error on Linux?
    • Resolve VBox Kernel Module Issues
    • Change GCC Version
    • Fix Module Signature Issues

What’s Causing the VirtualBox Kernel Driver Not Installed Error?

As stated, this error occurs on Mac mainly because the kernel extension isn’t approved to load. Other common reasons for this error include:
  • Unregistered Vbox kext
  • Kernel module signature issues
  • Problems with kext cache
  • Misconfigured kext management flag
  • Kernel module and GCC version mismatch

How to Fix This Error on Mac?

First of all, please note that VirtualBox only works on Intel Macs as it isn’t yet ported to M1 macs. Another thing worth mentioning is that numerous users were able to resolve this error by switching to a different version of VirtualBox and installing the extension packs.

As such, before you start troubleshooting, we recommend either using the latest VirtualBox version or reverting to an older stable build, as that could easily fix the error.

Allow Module to Load

In most cases, allowing the kernel module to load is all that’s needed to fix this error. Here are the necessary steps for this:

  1. Click on the Apple Menu and go to System Preferences > Security & Privacy.
  2. Press the Allow button towards the bottom.
    allow-system-software-mac
  3. The issue should be resolved now. But do keep in mind that the allow option is only available for 30 mins after making the load request. You’ll need to try to load the module again to make it reappear.

If the GUI method isn’t working, enter the following command into the terminal to restart the startup service for loading the kernel module and try once more:

sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart

Additionally, you can also try registering the VirtualBox kernel extension directly via the terminal, as this fixed this error for some users. Here is the necessary command for this:

sudo kmutil load -p '/Library/Application Support/VirtualBox/VBoxDrv.kext'

As before, allow the kernel to load via System Preferences and reboot, then check if VirtualBox works. If the error still persists, you can instead try adding Oracle’s developer ID to the security assessment policy. You’re basically approving that the kernel extension can load but via the terminal this time.

  1. First, enter the following command in the terminal:
    spctl kext-consent add VB5E2TV963
  2. If that doesn’t help, restart your Mac and hold Command + R to boot into recovery mode.
  3. Select Utilities > Terminal and enter the command from Step 1 again.
    Use Recovery Mode

Clean Reinstall VirtualBox

As stated, reinstalling VirtualBox has been an effective fix for numerous users. Here are the steps for a clean reinstall:

  1. Open the VirtualBox installation file and click on VirtualBox_uninstall.tool.
    virtualbox-uninstall-tool
  2. Enter Yes to confirm that you want to uninstall VirtualBox and all its packages.
  3. Afterward, restart your Mac and download the latest VirtualBox version. In my case, the file name is VirtualBox-6.1.36-152435-OSX.dmg.
  4. Execute the following commands in the terminal to install VirtualBox:
    sudo hdiutil attach VirtualBox-6.1.36-152435-OSX.dmg
    cd /Volumes/VirtualBox
    sudo installer -package VirtualBox.pkg -target /

Disable Secure Boot

Secure Boot is known to sometimes interfere with trusted programs due to problems with the digital signature. You can try briefly disabling this to ensure it’s not causing the error. Here are the steps to do so:

  1. Hold Command + R while turning on your Mac to boot into recovery mode.
  2. Click on Utilities from the Menu Bar and select Startup Security Utility.
  3. In the Secure Boot window, select No Security.
    startup-security-utility
  4. Restart your Mac and check if VirtualBox works now.
  5. If the error persists, something else is likely the culprit. You can follow the same steps to re-enable Secure Boot and proceed to the other fixes.

Clear Kext Cache

You can use the sudo kextcache --clear-staging command to clear the kernel extension cache and potentially resolve this error. If the command doesn’t help initially, here are some further steps you can take:

  1. Restart your Mac and use the command again.
    kextcache-clear-staging
  2. Uninstall VirtualBox, restart your Mac again, and reinstall VirtualBox.
  3. Check if the error is resolved now.

Change Kernel Extension Flag

Some users have also reported cases where the restricted flag was not set against KernelExtensionManagement. This affected how SIP interacted with the directory and ultimately led to the VirtualBox Kernel Driver Not Installed error. Here’s how you resolve this error in such cases:

  1. Uninstall Virtualbox and restart your Mac.
  2. Hold Command + R to boot into recovery mode and select Utilities > Terminal.
  3. Execute the following command to change the flag:
    chflags restricted /Volumes/Macintosh\ HD/private/var/db/KernelExtensionManagement
    chflags-restricted
  4. Restart your Mac and reinstall VirtualBox.

How to Fix This Error on Linux?

The fixes listed below are intended for Debian-based distros, but you can slightly modify and apply them to most other distros as well.

Resolve VBox Kernel Module Issues

The following steps will help resolve a number of potential issues with the VirtualBox kernel module that could be causing this error:

  1. First, try reinstalling the VirtualBox kernel module with the following command:
    sudo /etc/init.d/vboxdrv setup
  2. If that doesn’t help,  update the Linux kernel headers, reconfigure the VirtualBox package and load the module as such:
    sudo apt-get install linux-headers-$(uname -r)
    sudo dpkg-reconfigure virtualbox-dkms 
    sudo modprobe vboxdrv

    install-linux-headers
  3. If the error still persists, execute the following commands to remove VirtualBox completely and reinstall it:
    rm -r /etc/init.d/vboxdrv
    rm -r /var/lib/update-rc.d/vboxdrv
    sudo apt-get remove virtualbox-dkms
    sudo apt-get install virtualbox virtualbox-dkms virtualbox-guest-utils virtualbox-guest-additions virtualbox-qt
  4. Check if the error is resolved.

Change GCC Version

There’s a common issue where the VirtualBox Kernel Module doesn’t load because the kernel doesn’t match with the GCC version used to compile the module. In such cases, you must use the same compiler used to build the kernel.

For instance, to change the GCC version to GCC 8, you would take the following steps:

  1. First, remove VirtualBox and its config files with the following command:
    sudo apt-get purge virtualbox-*
  2. Next, install the GCC version you want, which in this example is 8:
    sudo apt-get install gcc-8 g++-8
    install-gcc
  3. Set the default GCC to GCC 8:
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
  4. Finally, reinstall VirtualBox and check if the issue is resolved.

Fix Module Signature Issues

DKMS modules are generally configured at installation to work with Secure Boot. But if there are module signature issues, the module won’t be allowed to load. You can easily confirm this by temporarily disabling Secure Boot. Here are the steps to do so on Ubuntu:

  1. Execute the sudo mokutil --disable-validation command.
    mokutil-disable-validation
  2. Enter a temporary password and confirm it.
  3. Reboot your system and press any key on the MOK Management screen.
  4. Select Change Secure Boot State and enter the temp password.
    change-secure-boot-state
  5. Select Yes > OK to disable Secure Boot.
  6. You can use the sudo mokutil --enable-validation command to re-enable Secure Boot later if you want.

If you’re uncomfortable with disabling secure boot, the second way to fix the module signature issue is by signing the modules yourself. Here’s how you can do this:

  1. First, use the following command to create a new MOK key:
    sudo update-secureboot-policy --new-key
  2. Next, run the appropriate kmodsign command to sign the module.
  3. After it’s signed, run sudo update-secureboot-policy --enroll-key to run the enrollment wizard, or enroll it manually by running sudo mokutil --import <your key>.
    perform-mok-management-enroll-mok

If you’re having difficulty manually signing the VirtualBox Kernel Modules, there are some excellent guides on this on GitHub and the Ubuntu blog.

fix
Anup Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

virtual machine disks consolidation is needed

4 Ways to Fix “Virtual Machine Disks Consolidation is Needed”

December 27, 2022
virtualbox shared folder

How to Create Shared Folder on Virtualbox

November 29, 2022
failed to open a session for the virtual machine

How to Fix “Failed to Open a Session For The Virtual Machine” Error?

September 30, 2022
how to uninstall virtualbox

How to Uninstall VirtualBox on Windows

September 28, 2022
how to use vmware

How to Use VMware (Detailed Guide)

September 23, 2022
virtualize a physical machine vmware

How To Virtualize A Physical Machine With VMware

September 17, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
bios-settings-for-gaming

Best BIOS Settings for Gaming

February 16, 2023
You may also like
how-to-clean-hp-printer-rollers

How to Clean HP Printer Rollers

March 3, 2023
keyboard input lag

9 Ways to Fix Keyboard Input Lag

March 3, 2023
keyboard key is stuck

How to Fix a Stuck Key on a Keyboard

March 3, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.