Installing VMware Tools on Ubuntu 22.10, 22.04, or 20.04
If you’re running an Ubuntu virtual machine in Workstation, Fusion, or ESXi, you’ll notice a sluggish copy‑paste, no shared folders, and the dreaded “VMware Tools not installed” banner popping up. Installing VMware Tools (or its open‑source cousin, open‑vm-tools) fixes all that and gives your VM a smoother feel.
Quick‑Start: Use Ubuntu’s Built‑in Packages
Why this matters – The package manager pulls in the right kernel modules for your current kernel, so you don’t have to hunt down dependencies or worry about mismatched versions.
sudo apt update sudo apt install open-vm-tools-desktop # For GUI features (clipboard sync, drag‑and‑drop)
Heads up – If you’re on a headless server VM and only need basic integration (like time sync), drop the -desktop suffix.
After that reboot or log out/in, and you’ll see VMware’s icons in your system tray. The tools are now running in the background, automatically reloading if you update your kernel.
When the Quick‑Start Fails: Manual Installer from VMware
Sometimes the repository packages lag behind the host or you need a newer build. In that case you can use VMware’s installer shipped with the VM menu.
1. Open the virtual machine menu
VM => Install VMware Tools.
– This mounts an ISO image into your guest’s CD drive, containing the latest binaries.
2. Mount the ISO (if not auto‑mounted)
sudo mkdir /mnt/cdrom sudo mount /dev/cdrom /mnt/cdrom
– The installer lives on the CD; you need to expose it before unpacking.
3. Extract and run the installer
tar -xzf /mnt/cdrom/VMwareTools-*.tar.gz -C ~/ cd ~/vmware-tools-distrib sudo ./vmware-install.pl
Follow the prompts; accept defaults unless you have a reason to tweak.
– The script builds kernel modules against your current headers and installs helper scripts.
4. Reboot (or just restart the vmhgfs daemon).
sudo systemctl restart vmware-hostd
Real‑world note – I once had a VM where the auto‑mount failed after an update to 22.10; manually mounting solved it instantly, and clipboard sync worked within seconds.
Troubleshooting Common Pitfalls
- Missing kernel headers
sudo apt install linux-headers-$(uname -r)
– The installer needs those headers to compile the vmhgfs module. Without them you’ll get “module load failed”.
- Clipboard still broken after install
Verify that vmhgfs-fuse is running:
ps aux | grep vmhgfs
If not, start it manually:
sudo systemctl enable --now vmware-tools
- Performance hiccups after upgrade
Occasionally a kernel update disables VMware’s optimizations. Re‑installing open‑vm-tools often restores the sweet spot.
Bottom Line
For most everyday users, sudo apt install open-vm-tools-desktop is all you need—quick, reliable, and automatically updated with your system. If you hit snags or want the latest features, fall back to VMware’s ISO installer; just remember to bring kernel headers along for the ride.
That’s it! Your Ubuntu VM should now feel like a native machine: copy‑paste works, shared folders sync, and the “tools not installed” banner finally disappears.