• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Tech Factors

All about your IT needs

  • Blog
  • About
  • Misc
  • Contact Us
You are here: Home / VMware / Power Off an Unresponsive Virtual Machine

Power Off an Unresponsive Virtual Machine

February 10, 2019 by virdih

If you find unresponsiveness behavior of a virtual machine, you can use ESXCLI command to turn off or power off a virtual machine.

  • Connect to console of your ESXi host, you can use putty to establish a ssh session.
  • To find a list of all the virtual machines running on the host, use the below command:

excli vm process list

[root@localhost:~] esxcli vm process list

LAB-001
World ID: 893271
Process ID: 0
VMX Cartel ID: 893211
UUID: 42 03 3d 76 5f 80 32 3e- c8 4h 6y f5 3v 89 b6 08
Display Name: LAB-001
Config File: /vmfs/volumes/592ja3hh-oa8970h1-bn9z-1988fa58heyt/LAB-001/LAB-001.vmx
LAB-002
World ID: 984807
Process ID: 0
VMX Cartel ID: 984509
UUID: 43 08 3h ut 4f 77 43 4f- b9 3j 7h h5 2g 67 b7 99
Display Name: LAB-002
Config File: /vmfs/volumes/592ja3hh-oa8970h1-bn9z-1988fa58heyt/LAB-002/LAB-002.vmx

  • Make a note of World ID of an unresponsive virtual machine.
  • Now, run this command to kill/power off the virtual machine  

    esxcli vm process kill –type=soft -w=WorldID

[for type you can select soft, hard or force ]

In our example, the world ID of LAB-001 is 893271 and the world ID of LAB-002 is 984807

[root@localhost:~] esxcli vm process kill –type=soft -w=893271

[root@localhost:~] esxcli vm process kill –type=soft -w=984807

Filed Under: VMware Tagged With: thetechfactors

Primary Sidebar

Calendar

June 2025
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930  
« Jan    

Archives

Featured Post

Adding a host to vCenter Server fails

January 9, 2021 By virdih

In case you find some issues while adding a VMWARE ESXi host to vCenter Server and you get an error message “A General System error Occurred” or “vim.fault.NoPermission”. This issue occurs by inconsistent authorization setup on the ESXi Host. The name of this authorization file is “authorization.xml” and located at /etc/vmware/hostd You can follow the […]

© 2016 | The Tech Factors
Sitemap