In the previous post we saw how to install CentOS as a guest operating system in VirtualBox.

At the end of the post we talked about installing the guest additions necessary to optimize the functioning of the guest operating system within VirtualBox.

If you try you may run into this error: “Kernel headers not found for target kernel 4.18.0.147.el8.x86_64. Please install then and execute”.

Below you can see the screenshot:

I finally found the solution in the following post at:

I followed the instructions in the post, and in my case it worked!

Thanks to www.if-not-true-then-false.com!