“Using virtual machines (VMs) running Ubuntu is a good approach to sharing hardware resources and consolidating resources. However, Ubuntu can’t function at its best inside a VM if no software is installed on the machine. Ubuntu needs VMware Tools installed. The VMware Tools are a set of drivers and utilities that improve the efficiency with which your guest OS communicates or interacts with the host operating system. Numerous advantages are offered by VMware Tools, including improved virtual machine visuals, sound system support, automatic virtual machine resizing, etc. This tutorial will teach you how to install VMware Tools on Ubuntu 22.04 LTS to improve the performance of your virtual machine.”
VMware Tools also offers numerous sophisticated features such as,
There are two ways to install VMware Tools on VMware: directly on the console of Ubuntu VM using Ubuntu terminal or remotely using SSH. Let’s begin this tutorial and use the command line first to establish an SSH connection to the VM.
Verify that VMware Tools are already installed before moving on. Some Linux distributions come with it pre-installed. Run “vmware-toolbox-cmd –v” in an Ubuntu terminal or through an SSH connection to determine if it has been installed. It ought to show the installed version of VMware Tools. If Ubuntu Tools aren’t already installed on your virtual machine:
The cache of the APT package repository will be updated.
Install Open VM Tools using the following command if your virtual machine runs a server OS (without a graphical user interface):
Install Open VM Tools using the following command if your virtual machine runs a server OS (without a graphical user interface):
Type “Y or y” and then press the “Enter” key to continue the installation.
All necessary packages should be downloaded and installed from the internet using the APT package manager. It might take some time to complete. For the installation to take effect, we restart the virtual machine as follows:
You can use all the features the VMware Tools offers once your VM has rebooted.
On Ubuntu 22.04, there are 3 ways to install open-vm-tools-dev. We have used the apt methods; however, Aptitude and apt-get can also be used. Let’s look at the remaining 2 methods, i.e., using Aptitude and apt-get.
Aptitude is typically not available by default on Ubuntu, so if you want to use this approach, you may need to install it first. Use the command below to update the aptitude database for apt.
By executing the following command after updating the apt database, we can use aptitude to install open-vm-tools-dev.
Use the following command to use apt-get to update the apt database.
The following command can be used to use apt-get to install open-vm-tools-dev after refreshing the apt database:
If using the command line doesn’t appeal to you, no problem. Through the VMware VM console, VMware Tools can also be installed. By default, all VMware hypervisors include the official VMware Tools. Installing the VMware Tools offered by VMware may be an option if you don’t have internet access or you don’t want the Open VM Tools installation. Be aware that VMware no longer recommends doing this before you proceed. During the installation of the official VMware Tools, several things could go wrong.
First, launch the vSphere client, VMware Workstation, or VMware Player on your local computer. Open the console of your Ubuntu VM. As seen below, tap Install VMware Tools from the VM option at the top option/toolbar of the window.
As soon as you click Install VMware Tools, a new archive with the name VMware Tools will appear on your desktop, as shown below.
Then double-click the archive to begin extracting it. You can locate the following files from the folder of VMware Tools when Ubuntu extracts the data.
To extract the compressed VMwareTool.tar.gz file, right-click on it and click the Extract To option. The files will be extracted onto the desktop of the current user.
After extracting the zipped installer package, you will see a folder named VMWare-tools-distrib on the desktop of the current user. When you open that folder, you’ll find the vmware-install.pl Perl script, as seen below.
Run the command below to run the Perl script file named vmware-install.pl located in the VMware-tools-distrib folder.
The script will begin installing VMware Tools as soon as you execute the command.
Verify all default values when prompted.
A message similar to the one below will appear when the script is finished, confirming that VMware Tools have been installed successfully on the machine.
Ubuntu must then be rebooted for the changes or installation to take effect.
With features like drag-and-drop, copy-paste, and the capacity to take several snapshots at once, VMware Tools is an excellent software tool that enhances the management and performance of guest host OS. In this tutorial, we discussed what VMware is and explained a complete guide on how you can install VMware tools on Ubuntu 22.04. We have practically explained two methods, i.e., how to install open-vm-tools-dev using Command Line and how you can install the VMware tools using VM Console in Ubuntu 22.04.
Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…
Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…
At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…
I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…
Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…
Now I want to share the DNS server installation process on your Ubuntu 20.04 server.…