In this tutorial we will see, VMware Tools installation in Linux Virtual Machine. We will also know what is the VMware tools and what are benefits of VMware tools in Linux Virtual Machine? So let’s start VMware tools installation step by step.
What is VMware tools?
VMware tools is a suite of utilities that improve the performance of the virtual machine’s guest operating system. VMware tools is also improves management function of the virtual machine.
If we have installed VMware tools in our guest operating system then we can got such types of functionality in our guest Virtual Machine. Like below:-
- We can get faster graphics performance and Windows Aero on operating systems, which support Aero.
- Unity feature, which enables an application in a virtual machine to display on the host desktop like any other application window.
- We can get shared folders features between host and guest operating file systems.
- We can also perform such types of feature like: – copying and pasting text, graphics, and files between the virtual machine and the host or client desktop.
- Mouse performance will be improved.
- Synchronization of the clock in the virtual machine with the clock on the host or client desktop.
- We can also get scripting features that helps automate guest operating system operations.
- Guest customization for virtual machines will be enabled
We can also run our guest operating system without VMware Tools, but we cannot get some important functionality and convenience.
In Linux virtual machines, we can manually install or upgrade VMware Tools by using the command line.
- Verify that the guest operating system, your guest operating system should be running.
- First verify that Perl should be installed in the guest operating system, because the VMware Tools installer is written in Perl.
Login on your VMware host and select the guest operating system where you want to install VMware tools. Then right click on Linux guest operating systemàGuestàInstall/upgrade VMware tools.
Then you will get one warring windows where we have to click on ok button. Like below:-
Now we have to login our guest operating system. Then we need to mount CD-ROM drive in our virtual machine. We can mount CD-ROM in our virtual machine using below commands.
[[email protected] ~]# mount /dev/cdrom /mnt mount: /dev/sr0 is write-protected, mounting read-only [[email protected] ~]#
You can see in above commands we have successfully mounted CD-ROM device in /mnt drive. You can verify with df –h commands and check our CD-ROM device has been mounted or not? Like below:-
[[email protected] ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 50G 1.8G 49G 4% / devtmpfs 2.9G 0 2.9G 0% /dev tmpfs 2.9G 0 2.9G 0% /dev/shm tmpfs 2.9G 25M 2.9G 1% /run tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup /dev/sda5 44G 33M 44G 1% /home /dev/sda1 1014M 168M 847M 17% /boot tmpfs 581M 0 581M 0% /run/user/0 /dev/sr0 67M 67M 0 100% /mnt [[email protected] ~]#
You can see we have mounted CD-ROM successfully in above output.
Now we have to go to /mnt drive and copy VMware tools tar file into /tmp file.
[[email protected] ~]# cd /mnt [[email protected] mnt]# ls -l total 67281 -r-xr-xr-x. 1 root root 1970 Nov 28 2014 manifest.txt -r--r--r--. 1 root root 68893195 Nov 28 2014 VMwareTools-9.0.15-2323214.tar.gz [[email protected] mnt]# [[email protected] mnt]# cp -rp VMwareTools-9.0.15-2323214.tar.gz /tmp/ [[email protected] tmp]# cd [[email protected] ~]#
After that we need to extract this VMware tools tar file. We can use this below commands to extract this file like below:-
[[email protected] ~]# tar -xvzf /tmp/VMwareTools-9.0.15-2323214.tar.gz [[email protected] ~]#
Now we need to go to /tmp/ vmware-tools-distrib/ directory and run ./vmware-install.pl this command. Like below:-
[[email protected] ~]# cd /tmp/ [[email protected] tmp]# ls -l total 67284 -r--r--r--. 1 root root 68893195 Nov 28 2014 VMwareTools-9.0.15-2323214.tar.gz drwxr-xr-x. 7 root root 120 Nov 28 2014 vmware-tools-distrib -rw-------. 1 root root 0 Nov 29 06:08 yum.log [[email protected] tmp]# [[email protected] tmp]# cd vmware-tools-distrib [[email protected] vmware-tools-distrib]# ls -l total 268 drwxr-xr-x. 2 root root 87 Nov 28 2014 bin drwxr-xr-x. 2 root root 67 Nov 28 2014 doc drwxr-xr-x. 4 root root 4096 Nov 28 2014 etc -rw-r--r--. 1 root root 266589 Nov 28 2014 FILES lrwxrwxrwx. 1 root root 13 Nov 28 2014 INSTALL -> ./doc/INSTALL drwxr-xr-x. 2 root root 49 Nov 28 2014 installer drwxr-xr-x. 14 root root 181 Nov 28 2014 lib lrwxrwxrwx. 1 root root 31 Nov 28 2014 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl [[email protected] vmware-tools-distrib]# [[email protected] vmware-tools-distrib]# ./vmware-install.pl
Follow the prompts to accept the default values, if appropriate for your configuration. Follow the instructions at the end of the script.
Depending on the features we use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. We can alternatively reboot the guest operating system to accomplish all these tasks.
After that we will see our VMware tools has been successfully installed.