Solved

VMware tools installation on Redhat Enterprise Linux 5 and 6

Posted on 2013-12-12
6
2,904 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:Sean
ID: 39714163
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 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39714171
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
ID: 39723576
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 121
ID: 39723598
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
ID: 39764630
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 Worsham
ID: 39903547
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

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
A look into Log Analysis and Effective Critical Alerting.
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:
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

717 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