Installing VMware Tools in an Ubuntu virtual machine

Purpose

This article provides the steps to install VMware Tools in an Ubuntu virtual machine.

Note: Whenever the Linux kernel (operating system) is updated, VMware Tools needs to be reinstalled.

Resolution

To install VMware Tools, you must mount the VMware Tools CD image, extract the contents (VMware Tools), and then run the installer.

Note: If VMware Tools is already installed, these steps uninstall Tools and then reinstall Tools. When the product updates, so do the Tools package included so an update of VMware Tools is required.

Ubuntu or Ubuntu Server with a Graphical User Interface

To mount the CD image and extract the contents:

  1. Power on the virtual machine.
  2. Log into the virtual machine using an account with administrator or root privileges.
  3. Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).. 

    Note: If you are running the light version of Fusion, a version of Workstation without VMware Tools, or VMware Player, you are prompted to download Tools before they can be installed. Click Download Now to begin the download.

  4. Open the VMware Tools CD mounted on the Ubuntu desktop.
  5. Right-click the file name that is similar to VMwareTools.x.x.x-xxxx.tar.gz, click Extract to, and select the Ubuntu Desktop to save the extracted contents.

    The vmware-tools-distrib folder is extracted to the Ubuntu Desktop.

To install VMware Tools in Ubuntu:

  1. Go to Applications > Accessories > Terminal.
  2. In Terminal, run this command to navigate to the vmware-tools-distrib folder:

    cd Desktop/ vmware-tools-distrib

  3. Run this command to install VMware Tools:

    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.

  4. Enter your Ubuntu password.
  5. Restart the Ubuntu virtual machine after the VMware Tools installation completes.

Ubuntu Server with only a Command Line Interface

  1. Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools). 

    Note: If you are running the light version of Fusion, or a version of Workstation without VMware Tools, or VMware Player, you are prompted to download the Tools before they can be installed. Click Download Now to begin the download.


  2. In the Ubuntu guest, run these commands:

    1. sudo mkdir /mnt/cdrom

      When prompted for a password, enter your Ubuntu admin user password.

      Note: For security reasons, the typed password is not displayed. You do not need to enter your password again for the next five minutes. 

    2. sudo mount /dev/cdrom /mnt/cdrom or sudo mount /dev/sr0 /mnt/cdrom

      The file name of the VMware Tools bundle varies depending on your version of the VMware product. Run this command to find the exact name:

    3. ls /mnt/cdrom

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

      Notex.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 each default or supply your own answers.

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

    sudo reboot



Based on VMware KB 1022525
  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

Hardware and firmware requirements for 64-bit guest operating systems

PurposeThis article explains the host machine hardware and firmware requirements for installing...

Logging in to the vCenter Server 5.0 Web Client fails with the error: unable to connect to vCenter Inventory Service

DetailsAfter upgrading from vCenter Server 4.1 to 5.0, you experience these symptoms:Cannot log...

Multiple network entries in vCenter Server 5.0.x after migrating virtual machines from a virtual switch to a virtual distributed switch

SymptomsAfter migrating virtual machines from a virtual switch to a virtual Distributed...

Minimum requirements for the VMware vCenter Server 5.x Appliance

PurposeIf you are using the VMware vCenter Server Appliance, beginning with vSphere 5.0 you can...