Installing VMware tools in a rpm based guest can sometimes be tricky. Here is a quick and dirty guide to help you install VMware tools and get the most out of your Linux guest.
Of course the first thing you will need is a VMware software product (depending on your OS) capable of running guests. I use a Mac Book Air circa 2011 running Lion so I have VMware Fusion installed. You can get it from here if you also run a Mac: VMware Fusion. If you’re running Windows or Linux have a look at their products page to select the best option for you.
Surprisingly you will then need to install a RPM based Linux guest. How to do that goes beyond the scope of this guide, I will presume you are able to do this. I may write a guide at a later date, but their are loads of tutorials online and in the VMware help guides.
Boot up your Linux VM and wait until you get to a stable desktop, if you are using one. If you installed your distro without a desktop environment you can still use the following commands (although you probably won’t need this guide if you prefer a CLI only OS!).
When the OS is booted, have a look at the top of your VMware app window. There should be a toolbar, you want the tab called Virtual Machine. In this menu select ‘Install VMware Tools‘. When you click this it will mount an ISO with the VMware tools package on it.
First switch to root.
You need to set the CD at a mount point so that you can copy over the VMware Tools files.
mount /dev/cdrom /mnt
Now copy the files to your Desktop.
cp /mnt/VMwareTools-* /home/user/Desktop
Remember to use Tab to auto complete the VMware Tools version, and change user with your own username.
Change to your Desktop so that you can extract the VMware Tools archive.
Now extract the archive.
tar -xzvf VMwareTools-*
Change to the extracted folder in order to run the VMware Tools installer.
Run the installer.
You will now be asked a lot of questions by the installer. Generally you can go with the default settings by pressing Enter and everything will install correctly. The advanced settings of the installer are beyond the scope of this guide!
When the installer completes reboot your VM, either using the VMware Player / Fusion / Workstation settings, or with the following command.
When your Linux VM comes back online you will have all the advanced features of VMware tools such as directory sharing, clipboard sharing, graphics adapter interfacing, automatic resolution adjustment etc.
Finally to remove those left over files on your Desktop. You will need to be root again.
Change to the Desktop.
Then delete the files.
rm -f -R VMwareTools-* vmware-tools-distrib/
And you’re finished! Enjoy your Linux VM with VMware Tools!