Featured image of post How to Install VMware Tools on a Linux Virtual Machine

How to Install VMware Tools on a Linux Virtual Machine

Installing VMware Tools can significantly enhance the performance and functionality of a Linux virtual machine. However, the installation process through the Linux command line is not as straightforward as simply clicking a few buttons on Windows.

Installing VMware Tools can significantly enhance the performance and functionality of a Linux virtual machine. However, the installation process through the Linux command line is not as straightforward as simply clicking a few buttons in Windows.

Preparation Steps

Before installation, you need to check the virtual machine settings. Select the CD option and make sure both checkboxes are checked. Use the command yum install -y perl for CentOS, or apt install perl for Ubuntu.

How to Install VMware Tools on a Linux Virtual Machine

Installation Process

  1. Open the VMware virtual machine and select “VM” from the menu, then choose “Install VMware Tools.”
  2. Wait for a few seconds while the ISO file for VMware Tools is mounted in the virtual machine.
  3. Execute the following commands to mount the CD:
    1. mkdir /mnt/cdrom
    2. mount /dev/cdrom /mnt/cdrom Then execute ls /mnt/cdrom to check if files are present.
  4. Since the mount is read-only, copy the installation package out before extracting it:
    1. cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp
    2. cd /tmp
    3. tar -zxvf VMwareTools-*.tar.gz
  5. Navigate to the extracted directory and run the installation program:
    1. cd vmware-tools-distrib
    2. sudo ./vmware-install.pl
  6. Follow the prompts for installation, accepting the default options. Generally, you can just press “yes” and hit Enter to accept the defaults. In the first interaction, you will need to type “yes.” How to Install VMware Tools on a Linux Virtual Machine

Reboot to Apply Changes

Once the installation is complete, you will need to reboot the virtual machine for VMware Tools to take effect. Run the following command to reboot:

  1. reboot
Licensed under CC BY-NC-SA 4.0