内核源代码安装在/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)"
本文探讨了在使用VMwareTools时遇到的配置问题,主要原因是内核版本过旧及内核-devel包更新不匹配。提供了两种解决方案:一是升级内核以确保内核和内核-devel版本一致;二是如果无法升级内核,建议安装与当前内核版本相同的内核-devel包。
1290

被折叠的 条评论
为什么被折叠?



