This is a step by step guide for installing vmwaretools on Fedora (I am using version 16) 64 bit (i686).
#Choose VM > Install VMware Tools.
Open a Terminal Session:
[nish@test-box]# yum install kernel-devel gcc gcc-c++ kernel-PAE-devel
[nish@test-box]# yum update
[nish@test-box]# mkdir /mnt/cdrom (this creates a mount directory)
[nish@test-box]# mount /dev/cdrom /mnt/cdrom (this mounts the cdrom)
[nish@test-box]# tar zxpf
/mnt/cdrom/VMwareTools-5.0.0-.tar.gz
#Where is the build/revision
number of the VMware Workstation release.
[nish@test-box]# umount
/dev/cdrom
[nish@test-box]# cd vmware-tools-distrib
[nish@test-box]# ./vmware-install.pl
After this just follow default options. In some *NIX versions you might come across an error where it asks you about the location of the C directory header files that match your running kernel. By default this looks like:
[/usr/src/linux/include] - however this doesn't exist. Therefore, you will need to do the following tweak for it to work successfully.
use this instead:-
/usr/src/kernels/'uname -r'/include
Then you might see this error:-
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version x.x.xx.x-xxx.fcxx.x86_64). Even if the module
were to compile successfully, it would not load into the running kernel.
your running kernel (version x.x.xx.x-xxx.fcxx.x86_64). Even if the module
were to compile successfully, it would not load into the running kernel.
Open another Terminal session:
[nish@test-box]# cd /usr/src/kernels/x.x.xx.x-xxx.fcxx.x86_64/include
[nish@test-box]# find . -iname '*relea*'
./config/kernel.release
./generate/utsrelease.h
[nish@test-box]# sudo cp -p generated/utsrelease.h linux/
Go back to the first Terminal session:
What is location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/src/kernels/'uname -r'/include
It will now extract the sources of the vmmemctl module. Bingo, the installation proceeds smoothly now. It would ask you to create few directory which doesn't exist (just choose the default options).
Hope this helps people having trouble installing VMwareTools on Fedora.