You can start, reboot, stop, and suspend virtual machines by using vmware-cmd.
You must supply a value for the powerop_mode flag, which can be soft or hard.
The following examples illustrate how to use vmware-cmd.
■
|
Start - Use the start option to power on a virtual machine or to resume a suspended virtual machine. The powerop_mode, either hard or soft, is required. vmware-cmd -H <vc_system> -U <user> -P <password> --vihost <esx_host> /vmfs/volumes/Storage2/testvm/testvm.vmx start soft | ||||
■
|
Reset - When you reset the virtual machine with the soft powerop_mode, which is the default mode, the guest operating system is shut down before the reset. If VMware Tools is not currently installed on the virtual machine, you can perform only a hard reset operation.
| ||||
■
|
Suspend - You have two options for suspending a virtual machine.
|