The error is something like this: The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel.
With this bug you cannot sync the time with your hosting server, automate shutdown tasks, etc… This problem exist because the kernel source code structure is changed in recent kernels (I guess > 2.6.18). The VMWare tools installation scrīpt is looking for the string “#define UTS_RELEASE $kernel_number” into /usr/src/kernels/$(uname -r)*/include/linux/version.h but the UTS_RELEASE variable is now into the file utsrelease.h.
To fix this, you can patch the VMWare tools installation scrīpt or just add the content of utsrelease.h to version.h. I suppose the second solution is the fastest one ![]()
To do this:
# cat utsrelease.h >> version.h
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12378643/viewspace-619576/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12378643/viewspace-619576/
本文解决了一个常见问题,即VMware Tools在使用较新内核的Linux系统中安装失败的情况。故障原因是内核源代码结构的变化导致安装脚本无法正确识别内核版本。文章提供了一种快速解决方案:将utsrelease.h文件的内容追加到version.h中。
5911

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



