Sometimes it is necessary to kill a running virtual machine process (eg. if there is locked file). You need to know the Leader World ID from the VM that needs to be killed.

First, run esxtop command from the shell:

  1. Press c to switch to the CPU resource utilization screen.
  2. Press Shift+v to limit the view to virtual machines. This may make it easier to find the Leader World ID in step 7.
  3. Press f to display the list of fields.
  4. Press c to add the column for the Leader World ID.
  5. Identify the target virtual machine by its Name and Leader World ID (LWID).
  6. Press k.
  7. At the World to kill prompt, type in the Leader World ID from step 6 and press Enter.
  8. Wait 30 seconds and validate that the process is not longer listed.