VirtualBox missing kernel-devel-4.18.0-147.el8.x86_64 but kernel-devel is installed

Discussions related to using VirtualBox on Linux hosts.
Post Reply
JimWh
Posts: 1
Joined: 30. Apr 2020, 14:35

VirtualBox missing kernel-devel-4.18.0-147.el8.x86_64 but kernel-devel is installed

Post by JimWh »

Hi

I recently installed centos8 on a server and updated it immediately. Then installed VB6.1.6. When I created a VM and tried to run it i got the install headers message. I knew that I'd loaded them, confirmed when I got 'nothing to do' on trying again. So I tried /sbin/vboxconfig and got...

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.18.0-147.el8.x86_64
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.18.0-147.el8.x86_64

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Not sure what I can do to correct this as:
1. header files are installed
2. not using EFI or secure boot

Any ideas?

I did note that the script suggests installing kernel-devel-4.18.0-147.el8.x86_64 but the actual, installed, package is kernel-devel-4.18.0-147.8.1.el8_1.x86_64, does this make any difference?
Post Reply