Kernel Header mismatch?

I am trying to set up VirtualBox but Rocky Linux has kernel 4.18.0-305.3.1.el8_4.x86_64 with no matching header. Installed headers are for 4.18.0-305.19.1.el8_4.x86_64, not a match.

1 Like

Your running kernel must match kernel-devel. I suspect you already have the matching kernel. You can check this by running:

rpm -qa kernel\* | sort

Once confirmed, just reboot to kernel-4.18.0-305.19.1.el8_4.

Hi toracat. I only have the header for variant .19 while it looks like both kernels are installed, but I’m still running the older one, per uname -r. I’ll guess I’ll need to remove the older kernel and update the grub menu which has 3 unlabeled entries right now, two of which (plus the default) are pointing to the .3 variant. Thanks for the clarification.

Having removed the .3 variant from the system and updating grub (not Rocky’s), strangely, however, the boot menu entries to the older kernel still boot me into it.