kernel driver not installed

Discussions related to using VirtualBox on Linux hosts.
Post Reply
edstevens
Posts: 85
Joined: 10. Nov 2011, 00:36
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Oracle Linux; MS Server

kernel driver not installed

Post by edstevens »

Vbox 5.1.10 on Ubuntu 16.04 LTS
ed@ed-Gazelle-00:~$ uname -a
Linux ed-Gazelle-00 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
When attempting to start a guest vm, I get two pop-up errors. The first:
(Well, I can't seem to attach the screen shot, so I'll transcribe the content):
VirtualBox - Error in suplibOsInit
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root

where: sublibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On Linux, open returned ENOENT.
and the second, again I cannot paste the image, but it did give the ability to copy the content:
Failed to open a session for the virtual machine vbdb112-01.

The virtual machine 'vbdb112-01' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}
Responding to the first:

Code: Select all

ed@ed-Gazelle-00:~$ sudo /sbin/vboxconfig
[sudo] password for ed: 
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
Possibly related, possibly not, when I try to download and install the newest v6 vbox for Ubuntu, the installer starts to show a progress bar, then quickly exits without any messages.
edstevens
Posts: 85
Joined: 10. Nov 2011, 00:36
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Oracle Linux; MS Server

Re: kernel driver not installed

Post by edstevens »

Never mind, I found the solution here: https://askubuntu.com/questions/1008150 ... ed-rc-1908

After executing

Code: Select all

sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
VBox started working again.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: kernel driver not installed

Post by socratis »

edstevens wrote:Vbox 5.1.10 on Ubuntu 16.04 LTS
You didn't mention the output of:
  • 
    VBoxManage -version
You might be running the Ubuntu fork, not the official VirtualBox.
edstevens wrote:
sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
DKMS is not required for the official VirtualBox, not for anything > 5.0.x. From the 5.1.0 changelog:
• Linux installers: no longer rely on DKMS for module rebuilding
It seems that you may be running the fork after all...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply