Install vmware tools in ubuntu server command line

Ubuntu Server with only a Command Line Interface

  1. In Fusion, Workstation, Player, or ESXI, go to Virtual Machine > Install VMware Tools.
  2. In the Ubuntu guest, run these commands:
    1. sudo mkdir /mnt/cdrom

      When prompted for password, enter Ubuntu’s admin user password.

    2. sudo mount /dev/cdrom /mnt/cdrom
    3. Run this command to find the exact name of the VMware Tools bundle; the file name varies depending on your version:

      ls /mnt/cdrom

    4. tar xzvf /mnt/cdrom/VMwareTools-<x.x.x-xxxx>.tar.gz -C /tmp/

      Note: <x.x.x-xxxx> is the version discovered in the previous step.

    5. cd /tmp/vmware-tools-distrib/
    6. sudo ./vmware-install.pl -d

      Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept the defaults or supply your own answers.

  3. Run this command to reboot the virtual machine after the installation completes:

    sudo reboot