How To: Install VMware Tools on CentOS 5.3


image image

The first step after a fresh install of a CentOS 5.3 server is too install the packages gcc and kernel-devel. When these packages are installed, update them and reboot of the VM:

yum install gcc kernel-devel –y
yum update –y
reboot

Now we have to create a new folder so we can mount the VMware Tools cd-rom.

mkdir /media/cdrom –p

Start the VMware Tools Installer via the GUI:

image

Mount the cd-rom:

mount /dev/cdrom /media/cdrom

create a folder and copy the tar.gz file from the cd-rom to the folder:

mkdir /root/tarz –p
cp /media/cdrom/VMwareTools-4.0.0-xxxxxx.tar.gz /root/tarz/

Open the folder and extract the tar.gz file:

cd /root/tarz
tar zxvf VMwareTools-4.0.0-xxxxxx.tar.gz

Open the vmware-tools-distrib folder and start the installer:

cd vmware-tools-distrib
./vmware-install.pl

You can change the vnic to vmxnet via the following commands:

/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

The final step is to reboot the VM.

Advertisements

3 thoughts on “How To: Install VMware Tools on CentOS 5.3

  1. Michel Hoogervorst

    You don’t have to reboot for kernel-devel, so if you first check whether or not you are running the latest kernel you might not need the reboot.

    Besides, the rpm packages works fine on CentOS. Just install with ‘rpm -Uvh VMwareTools-4.0.0-xxxxx-i386.rpm (even on 64bit Linux, as the modules get compiled for the specific kernel when you run vmware-config-tools. :)).

    Reply
  2. Nassim

    Thanks for the excellent article. I think there is a need to reorder some things in though, how would you connect to the repository if you have not even configured the LAN card which is done only after the tools have been loaded and the vmxnet driver installed and started.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s