Install VMWare Tools on a Linux Guest Virtual Machine
Posted February 17th, 2008 in VMWare
VMWare Workstation and the various flavours of VMWare Server allow you to install a package called "VMWare Tools". These VMWare Tools contain various methods of communication between the guest virtual machine and the host and in general should make the guest VM run better. This post looks at how to install VMWare Tools on a Linux guest machine, specifically on a CentOS guest (and therefore should be the same for Red Hat Enterprise Linux and Fedora and their derivatives).
To install VMWare Tools on a guest virtual machine, select "Tools" from the VMWare Server or VMWare Workstation GUI menu, and then "Install VMWare Tools". This doesn't actually appear to do anything in the guest machine (whereas on a Windows machine it will automatically start up a GUI installer to install the tools). All it really does is to connect the virtual CD-ROM device to the appropriate CD image containing the tools for your virtual machine.
Open up a command prompt, and then enter the following command to mount the virtual CD:
mount /dev/cdrom /media/cdrom
The virtual CD contains an RPM package and a TAR package which you can use to install. On Fedora/Red Hat and derivative Linux distributions you can install from the RPM version by running the following command either as root or using the sudo command:
rpm -ivh VMwareTools-6.0.2-59824.i386.rpm
For non-rpm based distributions, do the following instead, again running the actual install command either as root or using sudo:
cd /tmp tar -zxf /media/cdrom/VMwareTools-6.0.2-59824.tar.gz /vmware-tools-distrib/vmware-install.pl
and follow the instructions issued by the install application.
Once you are done, you'll want to unmount the virtual CD as follows:
umount /dev/cdrom
and start VMWare Tools:
/etc/init.d/vmware-tools start
On CentOS, Fedora and Red Hat Enterprise Linux and their derivitives, you can then call the "chkconfig" command to automatically have vmware tools run on system startup like so:
/sbin/chkconfig vmware-tools on
Other Linux distros have their own methods for starting init scripts automatically. Simply issue the appropriate command for your distro and VMWare Tools will automatically start on system startup.
Related posts:
- VMWare Infrastructure Web Access Address and Port (Sunday, June 7th 2009)
- Install VMWare Tools on a Debian 5 Guest Virtual Machine (Saturday, March 7th 2009)
- How to enable mouse wheel scrolling in Kubuntu under VMWare (Friday, July 18th 2008)
- VMWare Server - errors opening virtual machines from Workstation/Player (Friday, June 20th 2008)
- Configuring VMWare Tools stops the network (Wednesday, October 31st 2007)
Share or Bookmark
Share or Bookmark this page using the following services. You will need to have an account with the selected service in order to post links or bookmark this page.
Subscribe or Follow
Subscribe via RSS or email, or follow me on Facebook or Twitter below. The RSS icon takes you through to Feedburner where you can select the service or application to use.

