How to install guest additions on CentOS 9 stream in VirtualBox?

Is there any YouTube/steps of how to install Guest Additions on a fresh install of CentOS 9 Stream in Oracle VirtualBox?

I succeeded for Oracle Linux, Rocky Linux 9, Ubuntu 24.04.1, but CentOS 9 is failing.

I’m getting the following error:

ERROR: Kernel configuration is invalid. 
include/generated/autoconf.h or include/config/auto.conf are missing

The error message is long but I can’t copy and paste because it is in VirtualBox.

I tried many YouTube videos, for example this one.

I don’t know if full list would help.

Read more here: Source link