内核源代码安装在/usr/src/kernels/下。内核-devel是要安装的包。
为了提供问题的解决方案,出现问题的原因是安装的内核很旧,而且内核-devel在存储库中有更新。因此,安装ker内尔-devel将安装新内核的源代码,因此vmware tools配置脚本无法找到源代码。有两种可能的解决方案。
-
Update the kernel so that both kernel and kernel-devel are new.
sudo yum upgrade
Reboot so that new kernel is loaded and then run vmware tools config script.
-
Updating kernel is not always feasible. If that is the case install kernel-devel version that is same as the installed kernel version.
sudo yum install "kernel-devel-uname-r == $(uname -r)"