Remotely Start a VMware Server
There have been a few times now that I needed to start a VMware virtual machine on my server but I wasn't on a PC that had the VMware console installed. Besides, unless I'm on my own network, starting up a server with the VMware console can be a pain due to slower upstream speeds.
Well, I finally took the time to find out how to do this from the command line. It's simple.
Get the current state of the virtual machine. Is it running or not?
-
$ vmware-cmd /path/to/vm/machine.vmx getstate
And start it.
-
$ vmware-cmd /path/to/vm/machine.vmx start
There are many other things you can do as well. Just man vmware-cmd.
