Key Benefits of VMware Tools:#
- Improved Performance: Optimizes CPU, memory, and disk I/O for smoother operation.
- Seamless Mouse Integration: Eliminates the need to “release” the mouse from the VM (no more Ctrl+Alt to switch).
- Shared Folders: Easily transfer files between host and guest via shared directories.
- Drag-and-Drop & Clipboard Sharing: Copy/paste text/files between host and VM.
- Enhanced Graphics: Better screen resolution, dynamic resizing, and video acceleration.
- Guest OS Monitoring: Allows VMware to track VM resource usage (CPU, memory, disk).
In this guide, we’ll walk through two methods to install VMware Tools on Ubuntu 20.04:
- Using
open-vm-tools(Recommended): The open-source alternative to VMware’s proprietary tools, pre-packaged in Ubuntu’s repositories. - Using the VMware Tools ISO (Legacy Method): The traditional approach using VMware’s official ISO image.
Table of Contents#
- Prerequisites
- Method 1: Install
open-vm-tools(Recommended)- 2.1 Update Package Repositories
- 2.2 Install
open-vm-tools - 2.3 Verify Installation
- Method 2: Install via VMware Tools ISO (Legacy)
- 3.1 Mount the VMware Tools ISO
- 3.2 Extract and Run the Installer
- 3.3 Verify Installation
- Post-Installation: Enable Features
- Troubleshooting Common Issues
- Conclusion
- References
Prerequisites#
Before starting, ensure:
- An Ubuntu 20.04 VM is running on VMware (Workstation Pro/Player, Fusion, or vSphere).
- The VM has internet access (required for
open-vm-tools). - You have
sudoprivileges on the Ubuntu VM (to install packages).
Method 1: Install open-vm-tools (Recommended)#
open-vm-tools is the official open-source implementation of VMware Tools, maintained by VMware and the Linux community. It is pre-included in Ubuntu’s default repositories, making installation fast and straightforward. VMware recommends this method for most users.
2.1 Update Package Repositories#
First, refresh Ubuntu’s package list to ensure you install the latest version of open-vm-tools:
sudo apt update 2.2 Install open-vm-tools#
Ubuntu 20.04 offers two open-vm-tools packages:
open-vm-tools: Core utilities for server/headless environments (no GUI).open-vm-tools-desktop: Adds GUI-specific features (e.g., drag-and-drop, clipboard sharing, dynamic resizing).
For desktop users (with GNOME/KDE), install both packages:
sudo apt install open-vm-tools open-vm-tools-desktop -y For server users (no GUI), install only the core package:
sudo apt install open-vm-tools -y 2.3 Verify Installation#
After installation, restart the VM to apply changes:
sudo reboot Once rebooted, verify open-vm-tools is running:
systemctl status open-vm-tools You should see output like:
● open-vm-tools.service - Service for virtual machines hosted on VMware
Loaded: loaded (/lib/systemd/system/open-vm-tools.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-03-20 12:34:56 UTC; 2min 10s ago
To check the version, run:
vmware-toolbox-cmd -v Example output:
11.3.5.35604 (build-18557794)
Method 2: Install via VMware Tools ISO (Legacy)#
If open-vm-tools causes issues (rare), use VMware’s official Tools ISO. This method uses a proprietary installer bundled with VMware products.
3.1 Mount the VMware Tools ISO#
-
Power on the Ubuntu VM and log in.
-
In the VMware host application (Workstation/Player/Fusion):
- For VMware Workstation/Player: Go to
VM > Install VMware Tools(orUpdate VMware Toolsif already installed). - For VMware Fusion: Go to
Virtual Machine > Install VMware Tools.
This mounts a virtual CD-ROM (ISO) containing the Tools installer to your Ubuntu VM.
- For VMware Workstation/Player: Go to
3.2 Extract and Run the Installer#
-
Open a terminal in Ubuntu and create a temporary directory to mount the ISO:
mkdir -p /mnt/cdrom -
Mount the ISO (replace
/dev/sr0with your CD-ROM device if needed):sudo mount /dev/sr0 /mnt/cdrom -
List the contents of the mounted ISO to find the installer filename (e.g.,
VMwareTools-12.3.5-21835696.tar.gz):ls /mnt/cdrom -
Copy the
.tar.gzfile to your home directory (replace[VERSION]with the actual filename):cp /mnt/cdrom/VMwareTools-[VERSION].tar.gz ~/ -
Unmount the ISO (optional but clean):
sudo umount /mnt/cdrom -
Extract the installer:
cd ~ tar -xzf VMwareTools-[VERSION].tar.gz -
Run the installer script (accept default prompts by pressing
Enter):cd vmware-tools-distrib sudo ./vmware-install.pl- When asked, confirm the default installation path (
/usr/bin), and answeryesto install required components.
- When asked, confirm the default installation path (
3.3 Verify Installation#
Reboot the VM:
sudo reboot Check the Tools version:
vmware-toolbox-cmd -v Post-Installation: Enable Features#
After installing VMware Tools, enable key features via the VMware host application:
Shared Folders#
- In VMware, go to
VM > Settings > Options > Shared Folders. - Click
Addand select a folder on your host machine to share. - In Ubuntu, access shared folders at:
/mnt/hgfs/[SHARED_FOLDER_NAME]
Dynamic Screen Resizing#
The VM’s screen will automatically resize when you drag the VM window. If not, log out and back in to your Ubuntu desktop.
Clipboard Sharing#
Copy text/files on the host, then paste directly into the VM (and vice versa).
Troubleshooting Common Issues#
1. open-vm-tools Not Starting#
If open-vm-tools fails to run:
sudo systemctl start open-vm-tools
sudo systemctl enable open-vm-tools # Start on boot 2. Shared Folders Not Visible#
- Ensure the shared folder is enabled in VMware settings.
- Install
open-vm-tools-desktop(for GUI) andfuse(for mounting):sudo apt install open-vm-tools-desktop fuse -y
3. Poor Graphics Performance#
- Install
open-vm-tools-desktopand restart the display manager:sudo systemctl restart gdm # For GNOME # or sudo systemctl restart lightdm # For Xfce/LXDE
Conclusion#
Installing VMware Tools on Ubuntu 20.04 is essential for a seamless VM experience. The open-vm-tools method is recommended for its simplicity and maintenance via Ubuntu’s repositories. For legacy setups, the ISO method remains a reliable fallback.
With Tools installed, you’ll enjoy faster performance, easy file sharing, and seamless integration between your host and Ubuntu VM.