There are a couple different ways to install the VMware Tools into an Ubuntu VM that I have used and documented internally, here’s the two methods I’ve found to be the easiest. I prefer using the vSphere client installer method simply because it’s the way that I’ve found stays in sync with the hosts best. If you know a better way to do it, let me know in the comments below.

Method 1: Using "Install VMware Tools" in the vSphere client

  1. Insert the virtual disk by right clicking on the VM, selecting "Guest", and then choosing "Install VMware Tools"

  2. Mount the virtual disk

    
    
    1
    2
    3
     sudo mkdir -p /dev/cdrom
     sudo mount /dev/cdrom /media/cdrom
     cd /media/cdrom
  3. Copy the compressed installer files to a local directory

    
    
    1
     sudo cp VM* /tmp
  4. Unmount the disk

    
    
    1
     sudo umount /media/cdrom
  5. Install the neccessary packages to run the installer

    
    
    1
     sudo apt-get -y install linux-headers-server build-essential
  6. Unpackage the compressed installer

    
    
    1
    2
     cd /tmp
     sudo tar xzvf *.tar.gz
  7. Run the installer (remove the -d to customize the installation)

    
    
    1
    2
     cd vmware-tools-distrib
     sudo ./vmware-install.pl -d

Method 2: Installing from Aptitude repository

  1. Install gnupg in order to add the VMware repo keys

    
    
    1
     sudo apt-get install gnupg
  2. Download and install the VMware repo public key

    
    
    1
    2
     curl -O http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
     sudo apt-key add VMWARE-PACKAGING-GPG-KEY.pub
  3. Create the VMware Aptitude repo, replacing {version name} with the Ubuntu code name (e.g. quantal => 12.10, lucid => 12.04, etc) by adding the follwing line to /etc/apt/sources.list.d/vmware/list

    
    
    1
     deb http://packages.vmware.com/tools/esx/latest/ubuntu {version name}  main
  4. Run update

    
    
    1
     sudo apt-get update
  5. Now install the tools and reboot!

    
    
    1
    2
     sudo apt-get install vmware-tools-core vmware-tools-esx
     sudo shutdown -r now

Leave a Reply

Your email address will not be published. Required fields are marked *