What’s The Buzz

Random posts on what’s happening in the world of Linux and Open Source Technology

Linux Goodies

Linux tips and tricks picked up on the job as a Linux Systems Engineer.

Apple Goodies

All things wonderful about Apple Computers and Devices

Microsoft Goodies

Microsoft System Engineering tips and tricks as told by a Linux Systems Engineer

XKCD

Get your daily dose of the XKCD cartoon

Home » News

How to Cancel a Stuck VMware Tools Install from the ESX CLI

Submitted by on December 13, 2009 – 12:00 amNo Comment

Q: I’m trying to evacuate a machine that is suffering a hardware failure, and one of the VMs thinks it is installing the VMware Tools, so it won’t VMotion. The error is “The virtual machine is installing VMware Tools and cannot initiate a migration operation.” I also cannot right-click the VM in vCenter and choose “End VMware Tools Install.” Is there a way for me to end the VMware Tools installation from the ESX command line?

A: Yes, it’s a two-step process once you’ve logged into the console OS of the ESX server where the VM is executing.

First, you need the ID of the VM (all on one line if it wraps):

/usr/bin/vmware-cmd /vmfs/volumes/datastore-name/vm-folder/vmx-file.vmx getid

Then you can do a:

/usr/bin/vmware-vim-cmd vmsvc/tools.cancelinstall idnumber

Have fun!


This post written by Bob Plankers for The Lone Sysadmin. Unless otherwise noted it is © 2009 Bob Plankers and licensed under the Creative Commons BY-NC-SA 3.0 license.


Go to Source

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*