VMWare ESXi 5.0: Virtual Machine shutdown process stuck at 95%

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

Basic steps:

  1. Open a console session where the esxcli tool is available, either in the ESXi Shell, the vSphere Management Assistant (vMA), or the location where the vSphere Command-Line Interface (vCLI) is installed.
  2. Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:

    esxcli vm process list

  3. Power off one of the virtual machines from the list using this command:

    esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber

    Notes:
    Three power-off methods are available. Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.
    Alternate power off command syntax is: esxcli vm process kill -t [soft,hard,force] -wWorldNumber

  4. Repeat Step 2 and validate that the virtual machine is no longer running.
If the VM shows as Unknown (Invalid) follow these steps to reregister:
To re-register the virtual machine:
  1. Right-click the Unknown VM entry and click Remove From Inventory.
  2. Browse to the appropriate datastore for the virtual machine and open its folder
  3. Right-click the *.vmx file and click Add to Inventory.
  4. Power on the virtual machine. 
  5. Repeat Steps 1 to 4 for all unknown virtual machines.

Leave a Reply

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

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.