Installing VMware Tools in a Linux Virtual Machine

Posted by : on

Category : esx   linux   vmtools   vmware


This section explains how to install VMware Tools in a Linux virtual machine.

To install VMware Tools in a Linux, FreeBSD, or Solaris Virtual Machine

  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. Note: You can install VMware Tools either from a terminal in an X window session or in text mode.

  1. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, and unmount the CD-ROM image.

Note You do not use an actual CD-ROM to install VMware Tools, and you do not need to download the CD-ROM image or burn a physical CD-ROM of this image file. The VMware Server 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.

a) Using the Tar Installer on Linux Guests: 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, modify the following commands to reflect the conventions used by your distribution.

Also, some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.

mount /dev/cdrom /mnt/cdrom cd /tmp tar zxf /mnt/cdrom/vmware-linux-tools.tar.gz umount /mnt/cdrom Go to step 4.

b) Using the RPM Installer on Linux Guests: 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, modify the following commands to reflect the conventions used by your distribution.

Also, some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below.

mount /dev/cdrom /mnt/cdrom cp /mnt/cdrom/vmware-linux-tools-.i386.rpm /tmp rpm -Uhv /tmp/vmware-linux-tools-.i386.rpm umount /mnt/cdrom

where is the build number of the VMware Server release. Go to step 6.

c) Solaris Guests: The Solaris volume manager—vold—mounts the CD-ROM under /cdrom/vmwaretools. If the CD-ROM is not mounted, restart the volume manager using the following commands:

/etc/init.d/volmgt stop /etc/init.d/volmgt start

After the CD-ROM is mounted, use the following commands to extract VMware Tools.

**cd /tmp gunzip -c /cdrom/vmwaretools/vmware-solaris-tools.tar.gz tar xf -Go to step 4.**

d) FreeBSD Guests: Some FreeBSD distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.

mount /cdrom cd /tmp tar zxf /cdrom/vmware-freebsd-tools.tar.gz umount /cdrom

  1. Run the VMware Tools installer.

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

  1. Answer the questions about default directories.

  2. Run the configuration program.

vmware-config-tools.pl

  1. To change your virtual machine’s display resolution, answer yes, and enter the number that corresponds to the desired resolution.

  2. Log off of the root account.

exit

  1. Start X and your graphical environment. If you installed VMware Tools in an X windows session, restart X windows.

  2. In an X terminal, launch the VMware Tools background application.

vmware-toolbox &

You can run VMware Tools as root or as a normal user. To shrink virtual disks or to change any VMware Tools scripts, you must run VMware Tools as root (su -).

Note: Always run vmware-toolbox in the guest operating system to ensure you have access to all VMware Tools features, such as copy and paste and mouse ungrab for operating systems for which X display driver is not available.


About Sam Aaron
Sam Aaron

Father, Husband, Geek. Workaholic.

Email : mail@micronauts.us

Website : http://micronauts.us

About Sam Aaron

Father. Husband. Geek. Workaholic. US Marine Corps Veteran.

Sam Aaron is a Senior Consultant in the Professional Services Organization for Entelligence, bringing over a decade of expertise in enterprise cloud automation and infrastructure. Sam has spent almost eleven years at VMware leading cloud automation initiatives using VCF Automation (formerly Aria Automation & vRA) and designing scalable, multi-tenant environments with VMware Cloud Director (vCD).

Sam holds multiple certifications including VCF-Architect 2024, VCIX-CMA, and dual VCPs (DCV & CMA), and is a recognized contributor to VMware’s certification exams. As a VMware Hands-On Lab (HOL) Captain and content author from 2015-2025, Sam played a key role in educating and mentoring the global VMware community. He helped to create and develop the automation challenge and troubleshooting labs for VMworld and global virtual forums.

When Sam is not working, he has several hobbies, among these are 3D printing Star Wars robots and turning them into animatronics.

Launched in April 2010, micronauts is Sam's online presence. Here, he has been blogging and sharing knowledge with the virtualization community. This blog acts as a central repository to retain the resolutions and other trivial knowledge that Sam has discovered.

** No information provided here was reviewed or endorsed by VMware by Broadcom, Microsoft, or anyone else for that matter. All information here are opinions based on Sam's personal experience. Use this knowledge at your own risk. **

Star
Useful Links