Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Atalanttore
Posts: 22
Joined: 23. Mar 2021, 16:53

Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Post by Atalanttore »

Hi

I am using VirtualBox 7.0.6 r155176 on Linux Mint 21.1.

Yesterday Linux Mint updated the kernel from version 5.15 to version 5.19. Exactly since then, my virtual machine with Windows 10 in VirtualBox on Linux Mint stopped working.

The following error message appears when starting the virtual machine.
Error message: Kernel driver not installed
Error message: Kernel driver not installed
Kernel_driver_not_installed.png (67.1 KiB) Viewed 3162 times
I have already executed the following command in the shell.

Code: Select all

sudo '/sbin/vboxconfig'
The command only created the attached vbox-setup.log file.
Attachments
vbox-setup.log
Building the main VirtualBox module.
(3.2 KiB) Downloaded 24 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Post by fth0 »

The VirtualBox distribution-specific downloads (e.g. virtualbox-7.0_7.0.6-155176~Ubuntu~jammy_amd64.deb) expect a Linux kernel and a gcc version compatible to those which were initially part of the Linux distribution. I'd suggest to try the distribution-agnostic VirtualBox download named VirtualBox-7.0.6-155176-Linux_amd64.run.
Atalanttore
Posts: 22
Joined: 23. Mar 2021, 16:53

Re: Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Post by Atalanttore »

Does the package manager also take care of installing updates for VirtualBox with this type of installation?
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Post by fth0 »

Since this is a generic installer for all Linux distributions with all sorts of package managers, I don't think so.
hefink
Posts: 26
Joined: 3. Feb 2023, 17:27

Re: Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Post by hefink »

You need to update the compiler gcc to gcc-12 package in order to successfully install virtualbox on a 5.19 kernel. Don't forget to check the symlinks and make them point to gcc-12 before re-installing virtualbox.
Atalanttore
Posts: 22
Joined: 23. Mar 2021, 16:53

Re: Kernel driver is no longer installed after kernel update (from 5.15 to 5.19).

Post by Atalanttore »

Thank you for pointing this out.
Post Reply