Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VMware vCenter Cookbook

You're reading from   VMware vCenter Cookbook Over 65 hands-on recipes to help you efficiently manage your vSphere environment with VMware vCenter

Arrow left icon
Product type Paperback
Published in May 2015
Publisher Packt
ISBN-13 9781783553976
Length 302 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Kostantin Kuminsky Kostantin Kuminsky
Author Profile Icon Kostantin Kuminsky
Kostantin Kuminsky
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. vCenter Basic Tasks and Features FREE CHAPTER 2. Increasing Environment Availability 3. Increasing Environment Scalability 4. Improving Environment Efficiency 5. Optimizing Resource Usage 6. Basic Administrative Tasks 7. Improving Environment Manageability Index

Fixing VMware tools to autostart after Linux updates

From time to time, VMware tools that have been working fine before refuse to start automatically when the Linux guest is rebooted. VMware tools can be started manually using the following command:

# /etc/vmware-tools/services.sh start

Note

The preceding command and other commands in this book assume RHEL or CentOS and can be different for Debian or other Linux distributions.

The following error message may be displayed:

Fixing VMware tools to autostart after Linux updates

In most cases, this issue is related to recent OS updates; in particular, the Linux kernel update, which breaks the existing VMware tools installation.

As servers are not rebooted often, it may be hard to correlate the issue of VMware tools not starting automatically and OS updates.

How to do it...

To fix the issue, simply reinstall VMware tools the same way they were installed the first time. The following commands have been tested on CentOS 5 and depending on the Linux distribution, the commands you use and their sequence may be different.

  1. Initiate the VMware tools installation by going to VM menu and then navigating to Guest | Install/Upgrade VMware Tools:
    How to do it...
  2. For Linux guest, the Automatic option will not be available. Click on OK.
    How to do it...
  3. The VMware tools ISO image from the ESXi host will be connected to the virtual CD-ROM of the VM.
  4. Mount the image as follows:
    # mount /dev/cdrom /mnt/cdrom
    
  5. Extract the archive with VMware tool's installation files:
    # tar xzvf /mnt/cdrom/VMwareTools-<x.x.x-xxxx>.tar.gz -C /tmp/
    
  6. Start the installation. Switch –d is for the unattended installation with default settings:
    # cd /tmp/vmware-tools-distrib/
    # ./vmware-install.pl –d
    
  7. Reboot the virtual machine. VMware tools should start automatically as soon as the guest OS is back up:
    # shutdown –r now0
    

There's more…

Additional details about the issue can be found in the VMware KB 2050592 article on the VMware Knowledge Base website at http://kb.vmware.com/kb/2050592.

You have been reading a chapter from
VMware vCenter Cookbook
Published in: May 2015
Publisher: Packt
ISBN-13: 9781783553976
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image