How to install VMWare Tools on Ubuntu Server (command line only)

When we install Ubuntu Server on a VMWare Virtual Machine and choose to add the VMWare tools, there is no desktop where the tools appear to be installed, so this is a way to install VMWare tools on a command line only installation.

On VMWare choose Instll VMWare Tools. On the guest OS (Ubuntu Server on my case) we have first to mount the virtual CD with the tools:

sudo mount /dev/cdrom /media/cdrom

Then extract the CD contents to the tmp dir

tar xzvf /media/cdrom/VMwareTools-xxxxx.tar.gz -C /tmp/

Now execute the tools installer (-d options uses all the default parameters, to choose them manually do not use the -d option):

cd /tmp/vmware-tools-distrib/
sudo ./ -d

If there is no GCC installed on the guest OS the VMWare tools configuration will fail, so GCC should be installed first (you could install it and run again the script if it has failed because of the missing GCC)

sudo apt-get install gcc

Run again the installer if it has failed because of the missing GCC:

cd /tmp/vmware-tools-distrib/
sudo ./ -d

This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

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