Now that we have installed CentOS operating system to host our Asterisk PBX on the VMware machine, we will install the VMware tools to enhance video graphics and the use of the mouse in the guest OS.
Table of Contents
From your CentOS desktop go to Terminal and type the following commands:
Install packages to build the kernel modules
“yum install gcc kernel-devel”
click on OK when it asks you if the total download size is OK
Check the running kernel matches the kernel headers
“uname -r # running kernel”
“rpm -q kernel-devel # installed kernel headers”
Make sure the two kernel are the same:
if the two versions are not the same, type the following command:
“yum -y upgrade kernel kernel-develreboot”
Installing the VMware Tools
now from your VMware administrator console select your CentOS virtual machine, and click on the Install VMware tools:
now type the following command:
“mount /dev/cdrom /mnt/”
that will mount the CD-ROM.
Extract VMware Tools to /tmp/ using this command:
“tar -C /tmp -zxvf /mnt/VMwareTools-2.0.0-122956.tar.gz” ( please note that the VMware tools version might be different for you because of newer version)
unmount the virtual CD Drive with the following command:
“umount /mnt”
Now run the installer using this command:
“cd /tmp/vmware-tools-distrib
the above command will get you to the “tmp/vmware-tools-distrib” directory, then execute the following command:
./vmware-install.pl”
because I had already installed the VMware tools, to practice for this tutorial, I get the message that VMware tools are already installed.
somewhere the installation will ask you the following question:
In which directory do you want to install the binary files?
type an absolute path when typing the answer like “/usr/bin/vmware”
type Y when it tells you ” the path”/usr/bin/vmware” does not exist currently. this program is going to create it. including needed parent directories. is this what you want?
this is part of the log of the installation I went through:
What is the directory that contains the init scripts? [/etc]
The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes] n
In which directory do you want to install the daemon files?
[/usr/bin/sbin] /usr/sbin
In which directory do you want to install the library files?
[/usr/bin/lib/vmware-tools] /usr/lib/vmware
The path “/usr/lib/vmware” does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes] y
In which directory do you want to install the documentation files?
[/usr/bin/doc/vmware-tools] /usr/share/doc/vmware
The path “/usr/share/doc/vmware” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] y
The installation of VMware Tools 2.0.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware/vmware-uninstall-tools.pl”
at this point, I will need to reboot the computer.

Where can we get Vmware-tools rpm
kp: you can get the vmware-tools rpm from the windows installation of vmware player. I'm sure it's included with all versions of vmware. Once you download the file, install it, search the installation directory for the appropriate vmware-tools package (I like to copy all of them to a flash drive) and use as you need it.
I have a problem that I can not seem to find an answer for. I have a CentOS 5.0 Server virtual machine. It has no GUI. I can not find a way to increase the size of the guest's window in vmware player.
thank you my brother best dam tutorial i found finally i got it to work thank a million BACKTRACK R2
thanks a lot
In the image in step 3. I do not have the panel (cant see the panel name becuase your image quality is not clear enough) that contains the option to install vmware tools. I am using vsphere client v4.0.0 (EXSi 4.0.0)
Can you tell me 1: what this panel is called and 2: how I can get it to appear in the vsphere client. Thanks
Found the option by right-clicking on the VM in vsphere and selecting “Guest->Install/upgrade VMWare tools”
Awesome, it simple works!! Thank you so much, excellent tutorial and with images even better.
excellent!!!!!
very very thank u! you are a great person to share your knownledge!