The VMWare 2.0 has a command named “vmrun” that can control the state of the VMs. The syntax is:
|
vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS] |
To list all started VM:
|
[root@host ~]# vmrun -u root -h ‘https://192.168.0.14:8333/sdk’ -p YOURPASSWORD list |
To stop a VM:
|
vmrun -u root -h ‘https://192.168.0.14:8333/sdk’ -p YOURPASSWORD stop “[standard] Apolo/Apolo.vmx” |
To start a VM:
|
vmrun -u root -h ‘https://192.168.0.14:8333/sdk’ -p YOURPASSWORD start “[standard] Apolo/Apolo.vmx” |
