Force power-off (hard)

Suppose we are in a situation where we are unable to power-off the machine (default soft power-off) directly from the GUI due to any form of errors. We can perform a series of manual steps instead.

  1. Stop the daemon

$ sudo /etc/init.d/vmware stop
# or
$ sudo systemctl stop vmware
  1. Modify .vmx file

  • There will only typically be only a single .vmx file present, named as <name-of-guest-machine>.vmx

$ vim <name-of-guest-machine>.vmx
...
checkpoint.vmState = ""
snapshot.action = ""
scsi0:0.fileName = "<name-of-guest-machine>.vmdk"
...
  1. Remove state, lock and metadata files

$ cd /path/to/vm
rm -r *.vmsn *.vmss *.vmem *.lck *.vmsd
  1. Restart vmware services

$ sudo /etc/init.d/vmware start
# or
$ sudo systemctl start vmware 

Last updated