Contents
Previous Next
VMware Tools for Linux Guests
You have two options for installing VMware Tools on a Linux guest.
Installing VMware Tools within X Using the RPM Installer
To install VMware Tools from X within the guest operating system:
1. Choose VM > Install VM Tools.
The guest operating system mounts the VMware Tools installation virtual CD.
2. Double-click the VMware Tools CD icon on the desktop.
3. Double-click the RPM installer in the root of the CDROM.
4. Enter the root password.
5. Click Continue.
The installer prepares the packages.
6. When the installer presents a dialog saying Completed System Preparation, click Continue again.
An Updating system dialog appears with a progress bar. When the installer is done, VMware Tools are installed.
Note: Some guest operating systems require a reboot for full functionality.
Installing VMware Tools from the Command Line
1. Power on the virtual machine.
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
The remaining steps take place inside the virtual machine.
3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
Note: You do not use an actual CD-ROM to install VMware Tools, nor do you need to download the CD-ROM image or burn a physical CD-ROM of this image file. The VMware Workstation software contains an ISO image that looks like a CD-ROM to your guest operating system. This image contains all the files needed to install VMware Tools in your guest operating system.
Note: Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, you must modify the following commands to reflect the conventions used by your distribution.
mount /dev/cdrom /mnt/cdrom
cd /tmp
Using the tar installer:
tar zxf /mnt/cdrom/VMwareTools-5.0.0-<xxx>.tar.gz
umount /mnt
Using the RPM installer:
rpm -Uhv /mnt/VMwareTools-5.0.0-<xxx>.i386.rpm
umount /mnt
Where <xxx> is the build/revision number of the VMware Workstation release.
Note: If you attempt to install a tar installation over an rpm installationor the reversethe installer detects the previous installation and must convert the installer database format before continuing.
4. Run the VMware Tools installer.
cd vmware-tools-distrib
./vmware-install.pl
Respond to the questions the installer displays on the screen.
Note: Be sure to respond yes when the installer offers to run the configuration program.
5. Log out of the root account.
exit
6. Start X and your graphical environment.
7. In an X terminal, launch the VMware Tools background application.
vmware-toolbox &
Note: You may run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).
Starting VMware Tools Automatically
You may find it helpful to configure your guest operating system so VMware Tools starts when you start your X server. The steps for doing so vary depending on your Linux distribution and your desktop environment. Check your operating system documentation for the appropriate steps to take.
For example, in a Red Hat Linux 7.1 guest using GNOME, follow these steps.
1. Open the Startup Programs panel in the GNOME Control Center.
Main Menu (click the foot icon in the lower left corner of the screen) > Programs > Settings > Session > Startup Programs
2. Click Add.
3. In the Startup Command field, enter vmware-toolbox.
4. Click OK, click OK again, then close the GNOME Control Center.
The next time you start X, VMware Tools starts automatically.
Uninstalling VMware Tools
If you need to remove VMware Tools from your Linux guest operating system, log on as root (su -) and run the following command:
vmware-uninstall-tools.pl