先说下我的配置
windows 7,vmware 7.1.2 build-301548,
opensuse 11.3, kernel:2.6.34-12-desktop
配置vmware tools时,总提示找不到kernel的头文件,把所有kernel相关的rpm包全装了还是不行,郁闷了半天,在老外的论坛上找到了解决办法,
说的很清楚,做两个软连接就行了,
ln -s ../generated/autoconf.h
ln -s ../generated/utsrelease.h
估计是,vmware的问题,其实kernel header已经安装了,只是没有正确的被识别到
如下,就ok了
linux-35wy:/lib/modules/2.6.34-12-desktop/build/include/linux # l
total 12
drwxr-xr-x 2 root root 4096 Oct 23 19:56 ./
drwxr-xr-x 5 root root 4096 Oct 23 15:46 ../
lrwxrwxrwx 1 root root 23 Oct 23 19:56 autoconf.h -> ../generated/autoconf.h
lrwxrwxrwx 1 root root 25 Oct 23 19:56 utsrelease.h -> ../generated/utsrelease.h
-rw-r--r-- 1 root root 97 Jul 5 20:23 version.h
Problem:
After completing VMware Tools Installation, you might might/will be asked to configure it by invoking "/usr/bin/vmware-config-tools.pl". After following the instructions you might get stuck with the following:What is the location of the directory of C header files that match your runningThis refuses to pass
kernel? [/usr/src/linux/include]
Solution
#1# 1st Check if you have installed the appropriate kernel-source. If not, adding this in YAST will also install the appropriate kernel-devel package module. Also add kernel-syms. Selecting kernel-syms additional dependencies are automatically resolved by YAST. These should be accepted.
#2# If Step #1# has been completed or is not necessary because at some stage you have already done this but "/usr/bin/vmware-config-tools.pl" is still complaining about missing headers, you can try the following:
"cd /lib/modules/`uname -r`/build/include/linux"
You should not get an error message "No such file or directory
". Getting this suggests that the directory is missing and something else is wrong which is beyond this articles scope.
If you don't receive an error, do the following:
ln -s ../generated/autoconf.h
ln -s ../generated/utsrelease.h
This will create the appropriate symbolic links which are refer VMWAREtools to the correct location for its installation files. The "version.h" is already located in "/lib/modules/`uname -r`/build/include/linux". and should not require any extra work.
Now execute "/usr/bin/vmware-config-tools.pl" which will magically find all that is needed. You will have to press ENTER several times for the script to complete but once complete, VMWARETools should be installed.
You can run the Toolbox from the Desktop by executing "/usr/bin/vmware-toolbox" on a terminal or as part of a script etc. VMWARE should create this for you under KDE but I suspect that that this also may require fixing.