我刚刚在 VMWare 中创建了一个 VM,并安装了 Oracle Enterprise Linux 6.3 的最小安装。
# cat /etc/oracle-release
Oracle Linux Server release 6.3
它正在使用 UEK 内核运行。
# uname -r
2.6.39-200.24.1.el6uek.x86_64
当我尝试安装 VMWare Tools 时,出现以下错误。
Searching for a valid kernel header path...
The path "" is not a valid path to the 2.6.39-200.24.1.el6uek.x86_64 kernel
headers.
Would you like to change it? [yes]
我安装了 2.6.39 版本的 UEK,但是 kernel-uek-headers 只有 2.6.32。
# yum list kernel-uek
Installed Packages
kernel-uek.x86_64 2.6.39-200.24.1.el6uek @anaconda-UEK2/6.3
kernel-uek.x86_64 2.6.39-200.29.3.el6uek @ol6_UEK_latest
# yum list kernel-uek-headers
Installed Packages
kernel-uek-headers.x86_64 2.6.32-300.32.2.el6uek @ol6_latest
并且看起来 2.6.39 的标题不存在。
# yum list kernel-uek-headers --showduplicates
Installed Packages
kernel-uek-headers.x86_64 2.6.32-300.32.2.el6uek @ol6_latest
Available Packages
kernel-uek-headers.x86_64 2.6.32-100.28.5.el6 ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.28.9.el6 ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.28.11.el6 ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.28.15.el6 ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.28.17.el6 ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.34.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.35.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.36.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-100.37.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-200.16.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-200.19.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-200.20.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-200.23.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.3.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.4.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.7.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.11.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.20.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.21.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.24.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.25.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.27.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.29.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.29.2.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.32.1.el6uek ol6_latest
kernel-uek-headers.x86_64 2.6.32-300.32.2.el6uek ol6_latest
2.6.32 的内核就在那里。
# yum list kernel-uek --showduplicates
Installed Packages
kernel-uek.x86_64 2.6.39-200.24.1.el6uek @anaconda-UEK2/6.3
kernel-uek.x86_64 2.6.39-200.29.3.el6uek @ol6_UEK_latest
Available Packages
kernel-uek.x86_64 2.6.32-100.28.5.el6 ol6_latest
kernel-uek.x86_64 2.6.32-100.28.9.el6 ol6_latest
kernel-uek.x86_64 2.6.32-100.28.11.el6 ol6_latest
kernel-uek.x86_64 2.6.32-100.28.15.el6 ol6_latest
kernel-uek.x86_64 2.6.32-100.28.17.el6 ol6_latest
kernel-uek.x86_64 2.6.32-100.34.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-100.35.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-100.36.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-100.37.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-200.16.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-200.19.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-200.20.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-200.23.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.3.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.4.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.7.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.11.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.20.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.21.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.24.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.25.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.27.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.29.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.29.2.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.32.1.el6uek ol6_latest
kernel-uek.x86_64 2.6.32-300.32.2.el6uek ol6_latest
kernel-uek.x86_64 2.6.39-100.5.1.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-100.6.1.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-100.7.1.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-100.10.1.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-200.24.1.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-200.29.1.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-200.29.2.el6uek ol6_UEK_latest
kernel-uek.x86_64 2.6.39-200.29.3.el6uek ol6_UEK_latest
我是否应该将内核降级到 2.6.32 以便安装 VMWare 工具?还有其他方法可以获取 2.6.39 UEK 的 kernel-uek-headers 包吗?
答案1
答案2
我自己也碰到了这个问题。此命令将下载正确的标头:
yum install kernel-uek-devel-`uname -r`
这个返回了一个较新的版本,这足以让 vmware-install.pl 脚本陷入困境。我在 VMWare Workstation 8.0.4 上进行了安装。
yum kernel-uek-devel