注册 登录
LUPA开源社区 返回首页

yanqian的个人空间 http://www.lupaworld.com/?912 [收藏] [复制] [分享] [RSS]

我的博客

安裝vmware-tools時遇到的問題

已有 20703 次阅读2008-3-20 19:36 |个人分类:缤纷网络

今天同事在XP里安裝了VMware(5.5.1 build-19175) ,然后在里面安裝了紅旗6 SP1,內核版本是2.6.23.1-4,我給他安裝vmware-tools,運行vmware-config.pl時遇到問題,雖然給了正確的kernel headers文件目錄,但還是提示類似這樣的錯誤:
 
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.23.1-4). Even if the module were to compile successfully, it would not load into the running kernel.

后來在網上搜索到這篇:
http://www.atlink.it/~conti/2007/12/19/vmware-uts_release/

Well, VMWare tools sometimes fails to install into a Linux guest with recent kernel.

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:

# cd /usr/src/kernels/$(uname -r)*/include/linux
# cat utsrelease.h >> version.h

按照它上面所講就可以正常跑完 vmware-config.pl 了。

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册
验证问答 换一个 验证码 换一个

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部