Let's talk about my configuration first.
Windows 7, VMWare 7.1.2 build-301548,
Opensuse 11.3, kernel: 2.6.34-12-Desktop
When you configure VMware Tools, the system always prompts you that you cannot find the header file of the kernel, and you still cannot install all the RPM packages related to the kernel. After a long time, you have found a solution on a foreign forum,
Clearly, just make two soft connections,
Ln-S ../generated/Autoconf. h
Ln-S ../generated/utsrelease. h
It is estimated that the problem with VMware is that the kernel header has been installed, but it is not correctly identified.
As shown in the following figure.
Linux-35wy:/lib/modules/2.6.34-12-desktop/build/include/Linux # l
Total 12
Drwxr-XR-x 2 root Root 4096 Oct 23 :56 ./
Drwxr-XR-x 5 root Root 4096 Oct 23 ../
Lrwxrwxrwx 1 Root 23 Oct 23 :56 Autoconf. H-> ../generated/Autoconf. h
Lrwxrwxrwx 1 Root 25 Oct 23 :56 utsrelease. H->.../generated/utsrelease. h
-RW-r -- 1 Root 97 Jul 5 20:23 version. h
Problem:
After completing VMware Tools installation, you 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 running
Kernel? [/Usr/src/Linux/include]
This refuses to pass
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 shoshould 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 shoshould 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 shoshould 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 shoshould 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 shoshould create this for you under KDE but I suspect that this also may require fixing.