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.
Stop the daemon
$ sudo /etc/init.d/vmware stop
# or
$ sudo systemctl stop vmwareModify
.vmxfile
There will only typically be only a single
.vmxfile 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"
...Remove state, lock and metadata files
$ cd /path/to/vm
rm -r *.vmsn *.vmss *.vmem *.lck *.vmsdRestart vmware services
$ sudo /etc/init.d/vmware start
# or
$ sudo systemctl start vmware Last updated