# Kernel Header mismatch?

**URL:** <https://forums.rockylinux.org/t/kernel-header-mismatch/4372>\
**Category:** Rocky Linux Help & Support\
**Created:** [October 22, 2021, 10:28pm UTC](https://forums.rockylinux.org/t/kernel-header-mismatch/4372 "2021-10-22T22:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mach281](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mach281](https://forums.rockylinux.org/u/mach281)\
**Post date:** [October 22, 2021, 10:28pm UTC](https://forums.rockylinux.org/t/kernel-header-mismatch/4372/1 "2021-10-22T22:28:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![toracat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/toracat/32/68_2.png) [@toracat](https://forums.rockylinux.org/u/toracat)\
**Post date:** [October 23, 2021, 1:14am UTC](https://forums.rockylinux.org/t/kernel-header-mismatch/4372/2 "2021-10-23T01:14:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mach281](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mach281](https://forums.rockylinux.org/u/mach281)\
**Post date:** [October 23, 2021, 2:10am UTC](https://forums.rockylinux.org/t/kernel-header-mismatch/4372/3 "2021-10-23T02:10:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 4:03am UTC](https://forums.rockylinux.org/t/kernel-header-mismatch/4372/4 "2023-08-25T04:03:22Z")

</div>

Closed on August 25, 2023, 4:03am UTC


