Install VMware-tools on CentOS 6

Scenario: Install VMware-tools CentOS 6 on VMware ESXi 6

Steps:
– Right click on guest VM.
– Select Install/Upgrade VMware Tools. Note: VMware tools installer will assign as CD/DVD or iso image in the server.
– Login as root access the server or SSH remote to install VMware tools.

– Check the CentOS 6 VM DVD ROM drive,type:
# lsblk

[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 4.2G 0 rom
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 29.5G 0 part
 ├─VolGroup-lv_root (dm-0) 253:0 0 26.5G 0 lvm /
 └─VolGroup-lv_swap (dm-1) 253:1 0 3G 0 lvm [SWAP]
[root@localhost ~]#

Seen sr0 as server CD/DVD ROM drive.

– Mount VMware tools iso in /dev/sr0 to /mnt/cdrom or location you like.
# mount -t iso9660 /dev/sr0 /mnt/cdrom

– Extract(untar) VMwareTools-xx.tar.gz from /mnt/cdrom to /tmp
# cd /mnt/cdrom
# tar -zxvf VMwareTools-10.0.6-3560309.tar.gz -C /tmp

– Go to VMware tools folder then install the vmware tools then follow the installation instruction as you like.
# cd /tmp/vmware-tools-distrib/
# ./vmware-install.pl

Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin] hit Enter

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d] hit Enter

What is the directory that contains the init scripts?
[/etc/rc.d/init.d] hit Enter

In which directory do you want to install the daemon files?
[/usr/sbin] hit Enter

In which directory do you want to install the library files?
[/usr/lib/vmware-tools] hit Enter

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] yes

In which directory do you want to install the common agent library files?
[/usr/lib] hit Enter

In which directory do you want to install the common agent transient files?
[/var/lib] hit Enter

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools] hit Enter

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] yes

The installation of VMware Tools 10.0.6 build-3560309 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] yes

Initializing...


Making sure services for VMware Tools are stopped.


Found a compatible pre-built module for vmci. Installing it...


Found a compatible pre-built module for vsock. Installing it...


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [no] no

Found a compatible pre-built module for vmxnet. Installing it...


The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment. Do you wish to enable this feature?
[no] no

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] no

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
if you want to enable Common Agent (caf). [yes] no

No X install found.

Creating a new initrd boot image for the kernel.
Generating the key and certificate files.
Successfully generated the key and certificate files.
vmware-tools start/running
The configuration of VMware Tools 10.0.6 build-3560309 for Linux for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
[root@localhost vmware-tools-distrib]#

Installation is done, check in the VM Summary on vSphere the VMware Tools status should be Running(Current).


Leave a Reply

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