最近新安裝一個centos虛擬機,在安裝加強功能的時候出現了,kernel headers not found for target kernel的錯誤。特記下個人解決方案。centos
1.update kernelui
yum update kernel -y
2.Install the kernel-headers, kernel-devel and other required packagesserver
yum install kernel-headers kernel-devel gcc make -y
3.Reboot the server to make sure it load to the new kernelget
init 6虛擬機