The following post will walk you through how to isntall VMware Tools on Ubuntu or Debian virtual machine (VM). I assume that you have created your VM on VMware Player.
You first need to power on the VM on which you want to install VMware Tools. Once the VM is on, check if CD-ROM is connected to your VM, and if so, disconnect it from the VM. Then, go to "Virtual Machine" -> "Install VMware Tools" on VMware Player menu interface. VMware Player will then download an iso image of VMware tools, and make it mounted to the VM as its CD-ROM. Now reboot the VM.
I recommend doing the rest of the installation procedure as root, rather than using sudo. Using sudo, installation procedure may fail as environment variables may not be set up properly.
Installing VMware Tools involves building new kernel modules, and therefore you need to prepare build environment for kernel module compilation.
$ apt-get install linux-headers-`uname -r`
Now extract the source code of VMware Tools from the CD-ROM's mount point. Note that the default path for mounted CD-ROM might be different across different distros. On Ubuntu 12.04, it's as follows.
Finally, simply run vmware-install.pl contained in VMware Tools distribution.
While running, the installation script will ask you a series of questions. If you are not sure, you can accept all default answers.
Once all necessary configurations and builds are completed, a new initrd image will be created. Reboot the VM to finalize VMware Tools installation.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to install Suricata intrusion detection system on Linux - September 3, 2015
- How to switch from NetworkManager to systemd-networkd on Linux - August 31, 2015
- How to set up a system status page of your infrastructure - August 25, 2015