Unable to find kernel headers

21 views
Skip to first unread message

Avinash Maurya

unread,
Oct 15, 2021, 3:39:04 PM10/15/21
to mOS Development
Hi,
I am not sure if this is the right place to ask, but while installing mOS, I encounter the following error:
dkms: running auto installation service for kernel 5.10.46_0.9.mos
Error! Your kernel headers for kernel 5.10.46_0.9.mos cannot be found at /lib/modules/5.10.46_0.9.mos/build or /lib/modules/5.10.46_0.9.mos/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel 5.10.46_0.9.mos cannot be found at /lib/modules/5.10.46_0.9.mos/build or /lib/modules/5.10.46_0.9.mos/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel 5.10.46_0.9.mos cannot be found at /lib/modules/5.10.46_0.9.mos/build or /lib/modules/5.10.46_0.9.mos/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel 5.10.46_0.9.mos cannot be found at /lib/modules/5.10.46_0.9.mos/build or /lib/modules/5.10.46_0.9.mos/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

I have used the following steps to install mOS on a fresh install of CentOS Linux release 8.4.2105 running kernel 4.18.0-305.19.1.el8_4.x86_64.

In /var/lib/dkms/, I see the following files/folders:
dkms_dbversion
e1000e
emulab-ipod-dkms
megaraid_sas
mptsas
mptspi

When I remove/rename the /var/lib/dkms, I am able to install mOS without any errors, but after completing the install and rebooting (with grub params), the machine goes into dracut initqueue timeout. 
I tried asking the datacenter team, but they said this might probably have to do something with the mOS kernel. Any hint would be really helpful.

Thanks,
Avinash



Reply all
Reply to author
Forward
0 new messages