ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

ESXi Unresponsive VM – How to Power Off

By Vladan SEGET | Last Updated: August 3, 2015

Shares

Sometimes your VM gets stuck and you have no possibility to do graceful shutdown or power off through the vSphere client. Saying it differently, the VM is stuck and the only way is to reboot the whole ESXi host, which you certainly don't want to do.

But the unresponsive VM running there can be “killed” through the CLI, yes. This can be done several ways, but I'll show you a way of doing it through putty SSH session.

First thing to do is to enable SSH on your ESXi Box (select host > configuration > Security profile > Properties > SSh)

We will be using ESXTOP command.

There are different ways to stop ( “kill” ) a VM by using the vCLI, PowerCLI or the console session. In ESXi 5 it is possible to kill a running VM, the process of the VM concerned,  by using  the esxtop command.

ESXi 5 Unresponsive VM – How-to Power Off

Step 1 – connect via SSH by using puty for example and enter esxtop.

Enter “esxtop”, then press “c” for the CPU resource screen and shift + V to display VMs only.

ESXi 5 Unresponsive VM

Step 2 – changing the display and locating the LWID number

Press “f” to change the display fields and press “c” in order to show the LWID (Leader World Id) and press ENTER.

How to kill unresponsive VM in VMware ESXi 5

Step 3 – Invoking the k (kill) with the number does it…..

Now when you have the  LWID column there, you can see the VM which interests you by the LWID number.

You can press “k” and enter the LWID number of the VM which you want to stop. Note that this is hard stop so, the next time that the VM will boot you'll probbably see this screen (depending on your guest OS of course).

VMware ESXi 5 - How to kill an unresponsive VM through command line

If this method don't work, you can't vmotion the VM elsewhere or any other option don't work either, there might be a hardware problem with the host which can lead into PSOD.

There is also this KB which discuses other methods including the one described here –  ESXi Unresponsive VM – VMware Kb. Also you might want to check Using hardware NMI facilities to troubleshoot unresponsive hosts (1014767)

Shares
5/5 - (2 votes)

| Filed Under: How To Tagged With: ESXi 5 kill unresponsive VM, Kill unresponsive VM, SSH ESXi

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Laurent says

    May 21, 2015 at 6:10 am

    Great tuto. You save my day, thanks

  2. Robert says

    June 18, 2015 at 6:53 pm

    Thanks. Very helpful !

  3. techvet says

    June 25, 2015 at 1:19 am

    Thanks for the article. It helped us on our 5.1 farm when the “VMX” method didn’t work. We are including it in our documentation. 8^)

  4. sirius2834 says

    July 13, 2015 at 5:57 pm

    Thank you. Worked like a charm.

  5. Sohail says

    September 18, 2015 at 6:23 pm

    Perfect. Nothing else worked. Spent days but this worked on very first try. I had a full backup of VM så deleted the old unresponsive one and restored the working one. Thanks for great help

  6. welly al binanto says

    October 1, 2015 at 11:25 am

    great tutorial. thanks for sharing

  7. Kevan says

    February 8, 2016 at 2:07 am

    Thank you so much! This helped me when my VM in ESXI Hypervisor 6 froze while in the middle of re-configuring a hard-drive upgrade in space.

    • Vladan SEGET says

      February 8, 2016 at 7:35 am

      Glad it helped. Thanks for your experience.

  8. schorsch says

    February 10, 2016 at 2:09 pm

    I wonder that this worked for so much… Didn’t help me in any way. Tried this way to kill an absolutely unresponsive machine again and again, didn’t work.

    So I tried it the other way:
    – show the LWID of all running machines via command: “esxcli vm process list”
    – lookup the list for the ‘World ID’
    – kill this LWID via command: “esxcli vms process kill –type=hard –world-id=World ID”

    That did work. Than I tried your way again with some test machines, That did work. So it seems, that a machine must be at least responsive in some way to kill it with your receipt.

  9. Alfredo Guevara Saez says

    July 31, 2016 at 1:29 pm

    Great article! esxtop is a wonderful tool!

    You can also kill an unresponsive VM via SSH or PowerCLI:

    *** Vía SSH:

    ps|grep vmx

    kill -9 ID

    or:

    esxcli vm process kill -t=[soft,hard,force] -w=WorldIDNumber

    *** Vía PowerCLI:

    Stop-VM -kill VMNAME -Confirm:$false

    Details here: http://www.sysadmit.com/2015/01/vmware-esxi-kill-vm.html

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in