Powering off a VMware Virtual Machine in ESXI Shell

I recently had a issue with a VM failing to shut down via the client and web console.

I found the best way to resolve this would be to force a shutdown via the ESXI shell.

Connect to the ESXI Shell using Putty or other terminal console using SSH.

You would first need to get the list of Virtual machines running on the host. VM’s are identified  by Display Name, World ID and UUID. You would also see the vmx configuration file.

esxcli vm process list

You would see the following output:

World ID: 3475311
Process ID: 0
VMX Cartel ID: 3475310
UUID: 56 4d 16 60 cc 89 f7 02-e5 e4 58 45 c6 73 1e bd
Display Name: UTM
Config File: /vmfs/volumes/513d350d-530da733-9e8d-3c4a927afe14/UTM/UTM.vmx

You would need the World ID when running the Kill command:

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

esxcli vm process kill --type=force --world-id=3475311

ESXI Shell


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: