最近新安装一个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虚拟机