Let’s dive into the understanding of the error a little bit, its types, and how to fix it in various operating systems. The Error “Kernel Driver not installed(rc=-1908)” can contain 3 types of messages:
Error 1: How to fix the ‘/etc/init.d/vboxdrv setup’ Error?
Error 2: How can the ‘modprobe vboxdrv’ Error be Fixed?
Error 3: How can the ‘/sbin/vboxconfig’ Error be Fixed?
These errors occur due to missing VirtualBox Linux kernel headers and drivers or not being set up properly.
This article has provided a profound and tested solution to this error according to the following operating systems:
- How to Fix “Kernel Driver not Installed(rc=-1908)” Error in Linux? (Debian-based)
- How can the “Kernel Driver not Installed(rc=-1908)” Error be Fixed in Mac OS? (BigSur)
- How can the “Kernel Driver not Installed(rc=-1908)” Error be Fixed in Mac OS? (Mojave)
Let’s begin with the fix in the Linux Operating system.
How to Fix “Kernel Driver not Installed(rc=-1908)” Error in Linux?
To fix this issue in Linux, execute the command typed below to reconfigure or install(if these are not installed in the first place) the VirtualBox Linux kernel headers:
Note: Make sure to close the VirtualBox before running the command. Otherwise, you will be encountered with an error after executing the command.
It will grant permission to take space for installation, grant the permission by typing “y” and hitting the “Enter” key.
After a while, installation will be completed and all you need to do is execute this command:
You are good to go and run the VirtualBox machines without any hassle.
How to Fix “Kernel Driver not Installed(rc=-1908)” Error in Mac OS(BigSur)?
To fix the “Kernel Driver not Installed(rc=-1908)” Error in Mac OS(BigSur), open up the System Preference settings by clicking on the “Apple” icon at the top left corner and selecting “System Preferences”:
Alternatively, you can open up the system preferences from the Dock and open the “Security and Privacy” Settings:
In the “General” tab of “Security & Privacy”, click on the lock button in the bottom left corner to unlock the settings and make changes:
This will ask you to provide the system password. Provide the password and press “Unlock”:
After unlocking the “Security and Privacy” preferences, click on the “Allow” button to unblock VirtualBox from loading:
Note: The “VirtualBox” is developed and owned by the “Oracle America, Inc.” and that’s why you will see “Oracle America, Inc.” in the message.
Note: The “Allow” button stays there for 30 minutes. However, if it is not shown, reinstall the VirtualBox and it will appear. To uninstall the VirtualBox, follow this guide.
How to Fix “Kernel Driver not Installed(rc=-1908)” Error in Mac OS(Mojave)?
In Mojave, the fix for “Kernel Driver not Installed(rc=-1908)” error is just running the following command:
After executing the above command, restart the VirtualBox and start the Virtual Machine.
Conclusion
This article has provided a profound and tested solution to the “Kernel Driver not Installed(rc=-1908)” error in Linux, and MacOS(BigSur & Mojave). This error occurs due to missing VirtualBox Linux kernel headers and drivers or not being set up properly. In Linux, you just need to install Linux headers and VirtualBox dkms. While, in Mac OS(BigSur), unlock and allow the app from “security and privacy” in “system preferences”.