Quickly Install VMware Tools in 30 Seconds (Quick Start)
Using Ubuntu 22.04, Debian 12, or the latest CentOS/RHEL? Don’t waste time looking for ISO files. The fastest and VMware-recommended method today is using open-vm-tools directly from the OS repository.
Open the terminal and copy-paste the commands below based on your operating system:
For Ubuntu, Debian, Linux Mint:
sudo apt update
sudo apt install open-vm-tools -y
# If using the Desktop version (with GUI), install this additional package for drag-and-drop and smooth mouse movement:
sudo apt install open-vm-tools-desktop -y
For CentOS 7/8, RHEL, AlmaLinux, Rocky Linux:
sudo dnf install open-vm-tools -y
# Then enable the service:
sudo systemctl enable --now vmtoolsd
Just restart your virtual machine, and you’ll notice the difference immediately. The mouse lag will disappear, and the screen will automatically resize to fit the VMware Workstation window.
Why is VMware Tools Mandatory for Linux VMs?
Without this driver suite, your virtual machine is like a car without oil. It still runs, but it’s incredibly sluggish and frustrating. VMware Tools acts as a communication bridge between the host machine (Host) and the virtual machine (Guest).
Here are the three most practical benefits I’ve noticed after installation:
- RAM Performance: Memory Ballooning helps reclaim unused RAM. In practice, this can save 10-15% of the physical server’s resources.
- Smooth Graphics: Supports 2D/3D acceleration. You will no longer see screen stuttering when opening a browser or terminal.
- Time Synchronization: Prevents errors related to SSL/TLS or Kerberos authentication caused by the VM clock drifting from the host clock.
Open-VM-Tools vs. Traditional VMware Tools?
In the past, after installing Linux, you had to go to the VM -> Install VMware Tools menu to mount a virtual disc. This was a huge hassle as it involved extracting .tar.gz files and running outdated Perl scripts.
Open-VM-Tools is an open-source version optimized by the Linux community. Its main advantage is extreme stability. It updates automatically whenever you upgrade your system. My sincere advice: choose open-vm-tools in 99% of cases. Only use the manual ISO version if you are running a 10-year-old legacy distro.
Manual Installation Guide (Offline Mode)
There are times when you must work in an offline environment or a closed Lab. In these cases, you are forced to use the ISO file included with VMware Workstation. Here are the steps:
Step 1: Mount the virtual disc
In the VMware menu, select VM -> Install VMware Tools. The system will automatically insert a virtual disc into Linux.
Step 2: Prepare the build environment
You need source code compilation tools; otherwise, the installation script will fail immediately:
# On Ubuntu/Debian
sudo apt install build-essential linux-headers-$(uname -r) -y
# On CentOS/RHEL
sudo yum groupinstall "Development Tools" -y
Step 3: Extract and execute
sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp/
cd /tmp && tar -zxvf VMwareTools-*.tar.gz
cd vmware-tools-distrib/
# Run the script with the -d flag to automatically select default settings
sudo ./vmware-install.pl -d
Enable Shared Folders for Ultra-Fast File Exchange
Many people still struggle to find the shared folder after installation. On Linux, you need to mount it manually. First, enable the Shared Folders feature in the VM’s Settings.
Then, use this command to check the connection:
vmware-hgfsclient
If the folder name appears, type the following command to mount it into the system:
sudo mkdir -p /mnt/hgfs
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
To ensure this folder isn’t lost after a reboot, add the line .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0 to the end of the /etc/fstab file.
Quick Troubleshooting Tips for Techies
After years of managing Lab systems, I’ve gathered some hard-earned experience:
- Copy-Paste Issues: Don’t rush to reinstall everything. Try restarting the service with
sudo systemctl restart open-vm-tools. Usually, 80% of errors will disappear. - Avoid Conflicts: Never install both the ISO version and open-vm-tools side-by-side. This often causes Kernel Panics or causes the VM to hang on startup.
- When moving to Proxmox/KVM: If you later migrate your VM to Proxmox, uninstall VMware Tools first. Then, install
qemu-guest-agentas a replacement. - Kernel Updates: If using the manual ISO version, you’ll have to rerun the installation script every time the Kernel updates. Using open-vm-tools saves you from this headache.
I hope this article helps you install VMware Tools more efficiently. If you encounter any strange errors like missing network drivers or a black screen, feel free to leave a comment below!
