內核源代碼安裝在/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)"