Linux – Install VMware Tools

KB ID 0001330 

Problem

Note: This is to install the VMware Tools NOT the OPEN-VM-TOOLS.

I’ve had to do this a few times now, and every time I Goolge how to do it, I get pages of instructions on how to install the open vm tools. When what I really want is to install the VMware Tools.

Solution

I’m using vSphere ESX, but even if you are using VMware Workstation or VMware Fusion, you can still select ‘Install/Upgrade VMware tools’, this presents a DVD image to the virtual machine.

The install for VMware tools uses Perl, so you will need to have that installed.

[box]

yum install perl

[/box]

Now we are going to mount the virtual CDROM/DVD drive into a folder, (called/mnt). Then when we have a look inside this folder, you will see the VMwareTools-{version}.tar.gz (take a note of this).

[box]

mount /dev/cdrom /mnt
cd /mnt
ls
TAKE NOTE OF THE VERSION!

[/box]

Unzip those files into the /tmp directory, then run the installer.

[box]

cd /tmp
tar zxf /mnt/VMwareTools-9.10.0-2476743.tar.gz
cd vmware-tools-distrib
./vmware-install.pl

[/box]

Keep pressing {Enter} to accept the defaults, when complete the mounted VMware tools DVD will be ejected.

 

Related Articles, References, Credits, or External Links

NA

CentOS (RHEL) Installing VMware Tools in ESX

KB ID 0000888

Problem

This was a much more complicated job than I expected it to be! The following procedure is done on CentOS 6, so will be the same for Red Hat Enterprise 6.

Solution

1. Connect to the server via SSH, (or open a terminal session). Logon as, (or su to) root.

2. Execute the following commands;

[box]yum install make gcc kernel-devel kernel-headers glibc-headers perl
mkdir /mnt/cdrom[/box]

3. Then present the VMware tools CD to the virtual machine, by connecting to the VI client > right click the VM > Guest > Install/Upgrade VMware tools.

4. Execute the following commands;

[box]mount -t iso9660 /dev/cdrom/ /mnt/cdrom
cp /mnt/cdrom/VMware-Tools*.tar.gz /tmp/
cd /tmp/
tar xvfz VMwareTools*.tar.gz
cd /tmp/vmware-tools-distrib
./vmware-install.pl -d[/box]

Related Articles, References, Credits, or External Links

NA