How To Install Vmware Tools On Ubuntu For Better Performance

Why Your Ubuntu Virtual Machine Feels Sluggish

You’ve just set up a fresh Ubuntu virtual machine in VMware Workstation or Fusion. The installation was smooth, but now you’re noticing the mouse is laggy, the screen resolution is stuck at a low 800×600, and copying files between your main computer and the VM is a chore. This frustrating experience is common, and the culprit is almost always missing or outdated VMware Tools.

VMware Tools is a suite of utilities and drivers that creates a seamless bridge between your virtual machine and the underlying VMware hypervisor. Without it, your VM is essentially running in a generic, compatibility mode that lacks optimization. Installing it is not just a recommendation; it’s a critical step to unlock the full potential of your virtualized Ubuntu system.

This guide provides a clear, step-by-step walkthrough for installing VMware Tools on Ubuntu, covering both the traditional method and the modern open-vm-tools package. We’ll also troubleshoot common installation errors so you can get back to a smooth, integrated virtual experience.

Understanding the Two Paths to VMware Tools

Before you begin, it’s important to know you have two primary options for installing VMware Tools on your Ubuntu guest. The choice depends on your Ubuntu version and personal preference for management.

The first method involves using the VMware Tools ISO image that is bundled with your VMware product. When you initiate the installation from the VMware menu, it mounts a virtual CD-ROM drive inside your Ubuntu VM containing the installation scripts and source code. This is the classic method and gives you direct control over the compilation and installation process.

The second, and often recommended method for modern Ubuntu distributions, is to install the open-vm-tools package directly from Ubuntu’s official software repositories. This is a community-developed, open-source implementation of VMware Tools that is maintained and distributed by the Linux distributions themselves. It’s generally easier, faster, and automatically receives updates through your system’s standard update mechanism.

Preparing Your Ubuntu System for Installation

Whichever method you choose, a small amount of preparation will ensure the process goes smoothly. First, ensure your Ubuntu virtual machine is fully updated. Open a terminal window and run the standard update commands.

You will also need the essential build tools and Linux kernel headers. These packages are required for the classic VMware Tools installation to compile its kernel modules. Even if you plan to use open-vm-tools, having them installed is a good practice. You can install them with a single command.

Finally, if you are using the classic ISO method, you may need to ensure you have a desktop environment running, as the installation process often provides a graphical component. For server installations or minimal setups, the process remains largely terminal-based.

Method One: Installing Open-VM-Tools from the Repository

For Ubuntu 14.04 and later, this is the simplest and most maintainable approach. The open-vm-tools package provides all the core functionality, including graphics drivers for better desktop integration, time synchronization, and the shared folder capability.

Begin by opening a terminal. Update your package list to ensure you get the latest available version of the software.

Next, install the open-vm-tools package. For a desktop edition of Ubuntu where you want full graphical and drag-and-drop support, install the open-vm-tools-desktop package as well.

The installation will pull in all necessary dependencies. Once it completes, you must restart the guest operating system for the new services and kernel modules to load properly. A simple reboot command will do the trick.

After the reboot, you should immediately notice improvements. Your display should automatically adjust to a more appropriate resolution, mouse movement will be smoother, and the copy-paste functionality between host and guest will likely be active. You can verify the tools are running by checking the status of the core service.

Configuring Shared Folders with Open-VM-Tools

One of the most valuable features of VMware Tools is the ability to create shared folders between your host computer and the Ubuntu VM. With open-vm-tools installed, configuration is straightforward.

First, you need to set up the shared folder from the VMware application itself, while the VM is powered off. In VMware Workstation or Fusion, go to the VM’s settings, find the “Options” tab, and look for “Shared Foldows.” Add a folder from your host system and give it a name, like “HostShare.”

how to install vmware tools ubuntu

Power on your Ubuntu VM. The shared folder will be mounted automatically by the system. Typically, you can find it under the /mnt/hgfs directory. You may need to use the terminal to navigate there and list the contents to confirm.

If the folder does not appear, you might need to manually mount it or check that the hgfs kernel module is loaded. The command to check is lsmod | grep vmhgfs. If it’s not listed, you can try loading it with sudo modprobe vmhgfs and then check the /mnt/hgfs directory again.

Method Two: Installing Classic VMware Tools from the ISO

This method is useful if you are running an older version of Ubuntu not fully supported by open-vm-tools, or if you need very specific features tied to the proprietary VMware Tools suite. The process involves more manual steps.

First, start your Ubuntu VM and log in. From the top menu bar in your VMware application, click on “VM” and then select “Install VMware Tools.” This will mount the VMware Tools ISO as a virtual CD-ROM drive inside your VM.

In your Ubuntu desktop, a CD/DVD icon should appear. Open your file manager and navigate to the mounted drive. You will see a file named something like VMwareTools-*.tar.gz. The exact name depends on your VMware version. Copy this compressed archive to your home directory or a temporary folder like /tmp.

Open a terminal and navigate to the directory where you copied the .tar.gz file. Extract the archive using the tar command.

This will create a new directory called vmware-tools-distrib. Change into this directory. Now, you need to run the installation script with superuser privileges. The command is sudo ./vmware-install.pl.

The installer is a Perl script that will ask you a series of configuration questions. For most users, accepting the default answers by pressing Enter for each prompt is perfectly fine. The script will compile several kernel modules, which is why you installed the build-essential and kernel headers earlier.

Once the script finishes, it will prompt you to restart your VM. Do so to complete the installation. After the reboot, the VMware Tools services will start automatically.

Verifying the Classic Installation

After restarting, you can verify that the classic VMware Tools are running correctly. A simple check is to run a command that queries the VMware Tools version. The vmware-toolbox-cmd utility is the primary command-line interface.

You can also check if the core services, like vmtoolsd, are active using the system’s service manager. The status command will show you if the service is running without issues.

If you encounter an error stating that the command or service is not found, the installation may have failed or the services may not have started. In that case, check the installation log file, typically located at /tmp/vmware-tools-install.log, for specific error messages.

Troubleshooting Common VMware Tools Installation Issues

Even with careful steps, you might run into problems. Here are solutions to the most frequent issues users face when installing VMware Tools on Ubuntu.

Kernel Module Compilation Failure: This is the most common error in the classic ISO method. The installer fails to compile the vmxnet or vmhgfs drivers. The solution is almost always to ensure you have the correct linux-headers package installed for your running kernel. Use uname -r to check your kernel version and then install the matching headers with sudo apt install linux-headers-$(uname -r). Then, re-run the VMware installer script.

Shared Folders Not Working: If you can’t see your shared folders in /mnt/hgfs, first ensure the folder is configured in the VM settings. Then, check that the vmhgfs module is loaded. If it’s not, you can try loading it manually and then re-mounting the shares. Sometimes, a full VM reboot is necessary after the first configuration.

how to install vmware tools ubuntu

Screen Resolution Stuck Low: If your display resolution remains limited after installation, the VMware SVGA graphics driver may not be active. For open-vm-tools, ensure the open-vm-tools-desktop package is installed. For the classic tools, the installer should have set this up. You can try regenerating the Xorg configuration by running sudo vmware-config-tools.pl –default and accepting the defaults, then rebooting.

Time Synchronization Drift: A virtual machine’s clock can drift out of sync with the host. Both open-vm-tools and classic tools include a time synchronization service. Ensure the vmtoolsd service is running. You can also force a time sync from the command line using vmware-toolbox-cmd timesync.

Maintaining and Updating Your VMware Tools

Keeping VMware Tools updated is important for security, performance, and compatibility, especially when you upgrade your host VMware application or your Ubuntu kernel.

If you used the open-vm-tools method, updates are effortless. They are delivered through the standard Ubuntu update process. Simply run your regular system update commands, and if a new version of open-vm-tools is available, it will be installed automatically. A reboot is usually required to activate the new kernel modules.

For the classic VMware Tools installed from the ISO, the update process is more manual. When VMware releases a new version of its tools, you should repeat the installation process. First, unmount any existing VMware Tools ISO. Then, from the VMware menu, select “Update VMware Tools.” This will mount the new ISO, and you can extract and run the installer again, similar to the initial installation. The installer is typically smart enough to upgrade an existing installation.

Before any major upgrade to your Ubuntu system, such as moving from one LTS version to the next, it is a good practice to ensure your VMware Tools are in a known good state. Consider taking a snapshot of your VM if your VMware product supports it, providing a safe rollback point in case of issues.

When to Choose One Method Over the Other

With two working methods, which one should you use? For the vast majority of users running modern Ubuntu desktops or servers, open-vm-tools is the best choice. It’s integrated, receives security updates via Ubuntu, and avoids the complexity of manual compilation.

Stick with the classic ISO method if you are running a legacy or custom kernel that the open-vm-tools packages do not support, or if you are directed to by a specific software vendor’s documentation. Some advanced features related to virtual hardware hot-plugging or specific debugging tools might also be more readily available in the full VMware Tools suite.

Ultimately, both methods achieve the same core goal: transforming your Ubuntu virtual machine from a sluggish, isolated box into a responsive, integrated part of your digital workspace. The performance gains in graphics, file sharing, and overall system responsiveness are immediately noticeable and well worth the short installation time.

Your Virtual Machine, Optimized and Ready

Installing VMware Tools is the definitive step that transitions your Ubuntu virtual machine from a basic proof-of-concept to a fully functional development, testing, or production environment. The drag-and-drop file sharing, seamless mouse integration, and automatic screen resolution adjustment are not just conveniences; they are productivity multipliers that make working within a VM feel natural.

By following the steps for open-vm-tools or the classic installer, you have resolved the core performance bottlenecks. Your system now efficiently synchronizes time with the host, provides robust networking through optimized drivers, and enables the crucial shared folder functionality that bridges the physical and virtual worlds.

If you encountered errors, the troubleshooting steps should have guided you to a solution, most often related to kernel headers or service configuration. With the tools installed and running, you can confidently use your Ubuntu VM for its intended purpose, whether that’s software development, running a service, or learning the Linux operating system, all with a smooth and integrated user experience.

The final step is to explore the capabilities you’ve just unlocked. Test file copying, resize your VM window, and enjoy the responsive interface. Your virtual Ubuntu installation is now properly equipped for real work.

Leave a Comment

close