Solved

VMware tools installation on Redhat Enterprise Linux 5 and 6

Posted on 2013-12-12
6
2,711 Views
Last Modified: 2014-03-04
Hi, I need to migrate a couple of hundred RHEL 5 and RHEL 6 vm's from an ESX 4.1 Environment to an ESXi 5 Envionment.  I am having some problems getting vmware tools installed/updated on some of my vm's.

Could anyone advise me the best way to install and/or update vmware tools on my vm's?  I have tried doing manual installs from vCenter and also going into "edit settings" on the vm and setting the option to upgrade vmware tools on reboot but on some of my vm's this doesn't work and nothing happens.  I am not a linux administrator, so I would like a way to upgrade tools from vCenter and if possible a way to install and upgrade tools in an automated way rather than having to manually upgrade each vm.

Any help appreciated.

Thanks.
0
Comment
Question by:carbonbase
6 Comments
 
LVL 9

Expert Comment

by:Sean
Comment Utility
Here is the how to for this.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1018392

There is no way to do it just by using vcenter, all that does it mount the ISO for the install you will need to fallow those steps provided in the link.
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
see my EE Article, Step by Step Tutorial Instructions with Screenshots

Part 9: HOW TO: Install VMware Tools for Linux on a VMware Linux virtual machine on a VMware vSphere Hypervisor 5.1 (ESXi 5.1) Host Server

I'm afraid with Linux Distros, it's very hands on because re-compile of drivers, kernels maybe required.
0
 

Author Comment

by:carbonbase
Comment Utility
Thanks all for your responses.  Hanccocka is right that the process appears to have changed for ESXi 5x.  

Is there a way to automate the install at all?  I have 200+ vm's to do.

Can i download all the files I need for my RHEL 5 and 6 vm's and just point the vm's to them rather than having to download additional components each time?
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
The issue, is you may need to re-compile the drivers for each VM.

which involves, downloading gcc, make, kernel headers and source for each VM.

So it's manual.

We generally include this activity at Security Patch time, to reduce downtime, and get the Change escalated into Change Control at the same time as patching.
0
 

Author Closing Comment

by:carbonbase
Comment Utility
Thank you for your help.  On most of the vm's I'm migrating I go to "edit settings" then "options" then "vmware tools" then "check and upgrade tools during power-cycling".

this works in most cases to upgrade vmware tools already installed on the vm's, where the upgrade doesn't work I your manual install.
0
 
LVL 29

Expert Comment

by:Michael W
Comment Utility
I know the question is closed, but if you're in need of a script that can be run on RHEL 5 and 6 servers, I have this one I created and can be deployed via Puppet (or any other deployment package) and then remotely run (using say something like Puppet or even Func).

#!/bin/sh
#
# VMware Tools Installation and Update Script for RHEL/CentOS Platforms
#
# Usage: vmware-tools-updater
#

#
# Cleanup residual VMware Tools directories...
#

echo "Cleaning up residual VMware Tools directories under /tmp..."
if [ -d "/tmp/vmware-tools-distrib" ];
        then
        rm -rf /tmp/vmware-tools-distrib*
fi

if [ -d "/tmp/vmware-root" ];
        then
        rm -rf /tmp/vmware-root*
fi

if [ -d "/tmp/vmware-config0" ];
        then
        rm -rf /tmp/vmware-config0*
fi

if [ -d "/tmp/vmware-config1" ];
        then
        rm -rf /tmp/vmware-config1*
fi

if [ -d "/tmp/vmware-file-mod0" ];
        then
        rm -rf /tmp/vmware-file-mod0*
fi

if [ -d "/tmp/VMwareDnD" ];
        then
        rm -rf /tmp/VMwareDnD*
fi

if [ -e /tmp/VMwareTools* ];
        then
        rm -rf /tmp/VMwareTools*
fi

if [ ! -d "/mnt/cdrom" ];
        then
        echo "Creating mount point for VMware Tools ISO to be accessible..."
        mkdir -pv /mnt/cdrom
else
        echo "Attempting to mount VMware Tools ISO to local RHEL VM..."
        mount /dev/cdrom /mnt/cdrom
        echo "Copying VMware Tools ISO Zipfile to /tmp..."
        /bin/cp /mnt/cdrom/VMware* /tmp
        cd /tmp
        echo "Uncompressing VMware Tools ISO Zipfile..."
        /bin/tar -xf VMwareTools*gz
        echo "Attempting to install/update *latest* VMware Tools ISO on RHEL VM platform..."
        /tmp/vmware-tools-distrib/vmware-install.pl --default EULA_AGREED=yes
fi

Open in new window

To use the script, the only thing you need to make sure is that the VMware Tools CD is enabled under VMware for each VM.

---

Something else you can try using is connecting to the VMware Tools repository and creating a customized vmware-tools.repo to be deployed to each RHEL server and just use that for updating the tools to the latest version available. This option works great if you have RHN Satellite server as it can be just added as a channel and used via the management module for all of your RHEL servers.

Reference:
https://www.vmware.com/support/packages
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now