Categories
CentOS OS VM

VMware Workstation 16 Pro – VMware Tools – CentOS 7

VMware Tools are set of drivers and utilities that improves the performance of both virtual machine’s and guest operating system and enhances the interactions between the guest and the host operating system. VMware Tools are optional to install.

VMware Tools has three main components –

  1. VMware Device Drivers – ensures smooth mouse and keyboard operations, folder sharing and improve the performance of sound, graphics and network.
  2. VMware User Process – provides the users the functionality of shared clipboard for copy and paste between guest and host operating system. The program file for VMware User Process is called vmtoolsd.exe on Windows guest operating systems.
  3. VMware Services – improves the communications of resources between the guest and host operating systems. It also helps in synchronized time between the guest and host. vmtoolsd.exe in windows runs in the background for synchronizing.

Install VMware Tools in CentOS 7

  1. Make sure the Linux VM is powered on.
  2. Run yum update to make sure the Linux kernel and other packages are out-to-date.
  3. Right-click on the VM, and select “Install VMware Tools”
  4. To create a mount point, run: mkdir /mnt/cdrom
  5. To mount the CDROM, run: mount /dev/cdrom /mnt/cdrom
  6. Copy the gzip tar file to /tmp folder. run: cp /mnt/cdrom/VMwareTools-version.tar.gz /tmp/
  7. Change /tmp folder
  8. Untar the VMwareTools-version.tar.gz, using tar -zxvf VMwareTools-version.tar.gz
  9. Once extracted, change to vmware-tools-distrib directory and run: ./vmware-install.pl

While executing vmware-install.pl, there is a possibility of encountering an error like below –

./vmware-install.pl: ./vmware-install.real.pl: /usr/bin/perl: bad interpreter: No such file or directory

The above error is a due to CentOS 7 was installed in “minimal” installation mode, and perl package is not installed.

Install perl package by running yum install perl.

Once perl packages are installed, try to execute tools script by running ./vmware-install.pl command from the directory vmware-tools-distirb.

Accept the default options during the setup. The default options are already set to best performance. If needed, it can be modified according to the users preferences.

There is no need to reboot the VM CentOS image, because it automatically detects the guest operating system. But, it is always advisable to restart the kernel for best performance and optimization.

 323 total views,  1 views today