How To Install Vmware Tools On Linux – Guest Additions For VMware

After installing VMware Tools on Linux, your virtual machine gains seamless mouse integration and file drag-and-drop. This guide covers exactly how to install vmware tools on linux for better performance and usability. You will learn multiple methods, from the simple command line to manual installation.

VMware Tools is a suite of utilities that enhances the guest operating system’s performance and management. Without it, your Linux VM might run slowly, lack proper display resolution, or have limited clipboard sharing. Installing it is a straightforward process once you understand the steps.

Prerequisites For Installing VMware Tools On Linux

Before you start, make sure your Linux virtual machine is powered on and has internet access. You need root or sudo privileges to install packages. Also, ensure your VMware hypervisor (Workstation, Fusion, or ESXi) is up to date.

Check your Linux distribution. Different distros use different package managers. For example, Ubuntu uses apt, while CentOS uses yum or dnf. Knowing this helps you install the required build tools.

Required Build Tools And Dependencies

You need a few packages to compile VMware Tools from source. These include gcc, make, and kernel headers. Without them, the installation will fail.

  • gcc (GNU Compiler Collection)
  • make (build automation tool)
  • Linux kernel headers
  • perl (for script execution)

Install these using your package manager. For Debian-based systems, run sudo apt update && sudo apt install build-essential. For Red Hat-based systems, use sudo yum groupinstall "Development Tools" or sudo dnf groupinstall "Development Tools".

How To Install Vmware Tools On Linux

This section covers the primary method using the VMware menu option. It works for most Linux distributions and is the recommended approach for beginners.

Step 1: Mount The VMware Tools ISO

In your VMware application, select the virtual machine. Go to the VM menu and click “Install VMware Tools”. This mounts a virtual CD-ROM containing the installer.

If the option is greyed out, ensure the VM is powered on. For ESXi hosts, you may need to upload the ISO manually. The ISO file is usually named linux.iso.

Step 2: Extract The Installer

Open a terminal in your Linux guest. Check if the CD-ROM is mounted. Use lsblk or mount to find the device. It is often /dev/cdrom or /dev/sr0.

Create a mount point and mount the ISO:

  1. sudo mkdir /mnt/cdrom
  2. sudo mount /dev/cdrom /mnt/cdrom

Copy the tar file to your home directory for easier access:

cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp/

Then extract it:

cd /tmp && tar -xzf VMwareTools-*.tar.gz

Step 3: Run The Installer

Navigate to the extracted directory:

cd vmware-tools-distrib/

Run the Perl installer as root:

sudo ./vmware-install.pl

You will see prompts asking for configuration options. Accept the defaults by pressing Enter. The installer will compile and install the modules. This may take a few minutes.

Step 4: Complete The Installation

After the script finishes, reboot your virtual machine:

sudo reboot

Once rebooted, verify that VMware Tools is running:

vmware-toolbox-cmd -v

You should see the version number. Also, check if mouse integration works by moving your cursor outside the VM window.

Alternative Method: Using Open VM Tools

Many modern Linux distributions include Open VM Tools in their repositories. This is an open-source version of VMware Tools. It is easier to install and maintain.

Installing Open VM Tools On Ubuntu Or Debian

Run these commands in the terminal:

  1. sudo apt update
  2. sudo apt install open-vm-tools

For desktop environments, also install open-vm-tools-desktop:

sudo apt install open-vm-tools-desktop

Reboot the VM to apply changes.

Installing Open VM Tools On CentOS Or RHEL

Use yum or dnf:

  1. sudo yum install open-vm-tools
  2. For desktop: sudo yum install open-vm-tools-desktop

On newer versions with dnf:

  1. sudo dnf install open-vm-tools
  2. sudo dnf install open-vm-tools-desktop

Reboot after installation.

Verifying Open VM Tools

Check the service status:

systemctl status vmtoolsd

It should show as active (running). You can also test clipboard sharing by copying text from the host and pasting into the VM.

Manual Installation From VMware Website

If your VM lacks internet access or you prefer the official package, download the VMware Tools bundle directly. This method is common for ESXi environments.

Downloading The Bundle

Go to the VMware Customer Connect portal. Download the appropriate package for your hypervisor version. The file is usually a .tar.gz archive.

Transfer the file to your Linux VM using SCP or a shared folder. Place it in a directory like /tmp.

Extracting And Installing

Extract the archive:

tar -xzf VMwareTools-*.tar.gz -C /tmp/

Run the installer as before:

cd /tmp/vmware-tools-distrib/ && sudo ./vmware-install.pl

Follow the prompts. The process is identical to the ISO method.

Troubleshooting Common Issues

Even with careful steps, you might encounter errors. Here are solutions for frequent problems.

Kernel Headers Not Found

If the installer complains about missing kernel headers, install them manually. For Ubuntu:

sudo apt install linux-headers-$(uname -r)

For CentOS:

sudo yum install kernel-devel

Then rerun the installer.

Compiler Errors

If gcc is missing, install it. On Debian-based systems:

sudo apt install gcc

On Red Hat-based systems:

sudo yum install gcc

Also ensure you have the correct version of make.

Mounting Issues

If the CD-ROM does not mount, check if the VMware Tools ISO is attached. In the VM settings, ensure the CD/DVD drive is connected. You may need to manually attach the ISO file from the host.

Use sudo mount -o loop /dev/cdrom /mnt/cdrom if the device is not recognized.

Open VM Tools Not Working

If Open VM Tools fails to start, try reinstalling:

sudo apt purge open-vm-tools && sudo apt install open-vm-tools

For desktop features, ensure the desktop package is installed. Also, check if the service is enabled:

sudo systemctl enable vmtoolsd

Benefits Of Installing VMware Tools

Once installed, you will notice several improvements. Mouse movement becomes fluid between the host and guest. You can drag and drop files directly. The display resolution adjusts automatically when you resize the window.

Other benefits include:

  • Time synchronization between host and guest
  • Improved network performance
  • Ability to shut down the VM gracefully from the host
  • Better memory management

These features make your virtual machine feel more like a physical computer.

Uninstalling VMware Tools

If you need to remove VMware Tools, use the uninstall script. For the official version, run:

sudo vmware-uninstall-tools.pl

For Open VM Tools, use your package manager:

sudo apt remove open-vm-tools

Reboot after removal to clean up any remaining modules.

Frequently Asked Questions

Do I Need To Install VMware Tools On Every Linux VM?

Yes, it is highly recommended. Without it, your VM will lack essential features like mouse integration and proper display scaling. It also improves overall performance.

Can I Install VMware Tools Without Internet Access?

Yes. You can use the ISO method or download the bundle on another machine and transfer it via USB or network share. The installer does not require internet once the files are present.

What Is The Difference Between VMware Tools And Open VM Tools?

VMware Tools is the official proprietary package from VMware. Open VM Tools is an open-source alternative included in many Linux repos. Both offer similar functionality, but Open VM Tools is easier to install and update.

How Do I Check If VMware Tools Is Running?

Run vmware-toolbox-cmd -v for the official version, or systemctl status vmtoolsd for Open VM Tools. You can also check the process list with ps aux | grep vmtools.

Why Is My Mouse Still Not Integrated After Installation?

This usually happens if the desktop package is missing. Ensure you installed open-vm-tools-desktop or the full VMware Tools suite. Also, try rebooting the VM after installation.

Conclusion

Now you know how to install vmware tools on linux using multiple methods. Whether you choose the official ISO, Open VM Tools, or manual download, the process is simple. Always install the required build tools first. Verify the installation by checking mouse integration and file drag-and-drop.

Remember to reboot after installation for all features to take effect. If you encounter issues, refer to the troubleshooting section. With VMware Tools installed, your Linux virtual machine will run smoother and be more productive.

Keep your VMware Tools updated for best compatibility with new kernel versions. Most package managers handle updates automatically for Open VM Tools. For the official version, check for updates periodically on the VMware website.

By following this guide, you have enhanced your virtual machine’s capabilities. Enjoy the seamless experience of a fully integrated Linux guest in your VMware environment.