I'm running Centos 7.5 kernel 4.9.127-32.el7.x86_64 and I can't get the drivers to compile. Here is the error:
Code: Select all
gremlin ~]$ sudo /sbin/vboxconfig
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.9.127-32.el7.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.9.127-32.el7.x86_64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
Code: Select all
gremlin ~]$ rpm -q kernel-devel
kernel-devel-4.9.127-32.el7.x86_64
Code: Select all
Installed Groups:
Development Tools
Code: Select all
gremlin ~]$ uname -a
Linux gremlin 4.9.127-32.el7.x86_64 #1 SMP Mon Sep 17 13:40:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
gremlin ~]$ ls /boot
config-4.9.127-32.el7.x86_64 initramfs-0-rescue-8ef3d6c3a2954d529c943c457be799f6.img System.map-4.9.127-32.el7.x86_64
efi initramfs-4.9.127-32.el7.x86_64.img vmlinuz-0-rescue-8ef3d6c3a2954d529c943c457be799f6
grub initrd-plymouth.img vmlinuz-4.9.127-32.el7.x86_64
grub2 symvers-4.9.127-32.el7.x86_64.gz