When speaking of virtualization, VMware is a solution that can't be ignored. While the true power of virtualization lives in the datacenters, we live in the age where anyone can run a virtual machine or two on a desktop or a laptop, given it is equipped with enough resources. These virtual machines are computers running inside a computer, and this setup has countless benefits and use cases. For instance, if you have a new software you'd like to test, you can do so in a virtual machine before installing it directly on a device you use for everyday work.
To work with these virtual machines with ease, we can integrate them with our Hypervisor - in this case, VMware - to enable the operating system running as guest to use the capabilities of the virtualization software. In this tutorial we will install the integration software, called VMware Tools on a virtual machine running RHEL 8 / CentOS 8, that is hosted in VMware Player. The same in-guest steps apply on the datacenter version of VMware regarding the tools installation. Note however, that Red Hat ships the
open-vm-tools with the distribution, which is what VMware also recommends to use instead of the tools we'll now install. Why are the tools shipped with the distribution recommended? They can be updated along with the distribution within the regular update process, while VMware's tools need to be updated by hand (or automation, but unneeded effort anyway).
While the following steps will result in a working integration, please consider the above when you setting up your virtual systems. Outdated virtualization integration tools are a bad thing, which you will experience when you upgrade your hosts, and hundreds of alerts will appear on the vCenter consoles.In this tutorial you will learn:
- How to download VMware tools using VMware Player
- How to present installation source to the virtual machine
- How to remove open-vm-tools
- How to install and configure VMware Tools
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|System||RHEL 8 / CentOS 8|
|Software||VMware Tools 10.3.10|
|Other||Privileged access to your Linux system as root or via the
# - requires given linux commands to be executed with root privileges either directly as a root user or by use of
How to install VMware Tools on RHEL 8 / CentOS 8 step by step instructions
Installing VMware Tools on a virtual machine is rather straightforward. Naturally we'll need an installed Red Hat Enterprise Linux 8 or CentOS 8 running on our VMware Player.
- If we haven't done so, we'll need to download VMware Tools before we can install them. This step is only necessery if we did not choose the automatic download option on installation of the Player. To download the Tools for various platforms, just click on the
Filemenu, and select
Player preferences. Under the Software Updates, click on
Download All Components Now. Note that the below screenshots present an already running virtual machine, but it does not need to run for the Player to download the tools.
You'll need to close the Player, and start it again for the tools to show up.
- As the installer would state it if we would start it on RHEL 8 machine with default packages, the
open-vm-toolsare already present, so we need to remove it, as these two are exclusive. To do so, use
Reboot the virtual machine afterwards.
# dnf remove open-vm-tools
- To present the installation media for the virtual machine, we need to start the machine, wait for it to boot up, and login. Then we'll open the
Virtual Machinemenu and select
Reinstall VMware Tools.... A popup window will appear where we select
- Next we'll open a terminal within the virtual machine, switch to
root, and navigate to the virtual CD. This shows up as
/run/media/<username>/VMware Toolsin the file system.
- In this directory we'll find a compressed
tarballthat we'll copy to the
/rootdirectory (the exact name of the file may vary):
We'll enter the same directory and extract the archive:
# cp VMwareTools-*.tar.gz /root/
# cd ~ # tar -xzf VMwareTools-*.tar.gz
- The previous step results in a new directory called
vmware-tools-distribwhere the installer resides. We'll enter the directory:
And run the installer:
# cd vmware-tools-distrib
The installer presents many questions, for most of them the default answers are safe to accept. On completion the installer asks if it should start the configuration script, which is required for the tools to function.
# systemctl status vmware-tools