Guest extension@Debian10.9: Missing Kernel headers

Discussions about using Linux guests in VirtualBox.
Post Reply
VirtualizeMe
Posts: 2
Joined: 22. Apr 2021, 07:52

Guest extension@Debian10.9: Missing Kernel headers

Post by VirtualizeMe »

Hello,

I'm in trouble with the installation of the guest extensions at an Debian 10 Guest System. The installation script reports trouble to find the kernel headers (4.19.0-16-686):

Code: Select all

sudo sh ./VBoxLinuxAdditions.run

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.18 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.18 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel 4.19.0-16-686. Please install them and execute /sbin/rcvboxadd setup
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted

I guess it's a problem with the right path information? The kernel headers are installed in the newest version (4.19.181-1). Dkms & build-essential are also installed:

Code: Select all

sudo apt-get install linux-headers-$(uname -r) dkms build-essential

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Hinweis: »linux-headers-4.19.0-16-686-pae« wird für regulären Ausdruck »linux-headers-4.19.0-16-686« gewählt.

build-essential ist schon die neueste Version (12.6).
dkms ist schon die neueste Version (2.6.1-4).
linux-headers-4.19.0-16-686-pae ist schon die neueste Version (4.19.181-1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


Can anyone help me to solve this issue?

BR Michael
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest extension@Debian10.9: Missing Kernel headers

Post by mpack »

Your question concerns the Linux guest OS. Therefore this post belongs in "Linux Guests", not "Linux Hosts".

I'll move it.
VirtualizeMe
Posts: 2
Joined: 22. Apr 2021, 07:52

Re: Guest extension@Debian10.9: Missing Kernel headers

Post by VirtualizeMe »

You're right...sorry, it was my false.
Thx
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest extension@Debian10.9: Missing Kernel headers

Post by mpack »

I'm not a Linux expert, but I'll at least ask for clarification: what version of VirtualBox have you installed?

I ask because DKMS is not required by any feature of VirtualBox as we know it from the official builds. The only prerequisites VirtualBox had for the GAs is that you install the kernel headers somewhere, and of course the gcc devtools will be required as well. Details given in section 4.2.2 of the user manual but I believe the correct command for Debian to install the kernel headers is:

Code: Select all

sudo apt-get install kernel-headers-$(uname -r) kernel-devel-$(uname -r)
You probably have the devtools already.
Post Reply