| |
vmware vm control from the linux command line
TYPE=server # ws = wkstn, server = server v2, server1 = server v1
HOST=localhost # or whatever...
PORT=8333
# -h $HOST -P $PORT doesn't seem to work... use -h $URL instead...
URL="https://$HOST:$PORT/sdk'
USER=root
PW=password
vmrun # help/examples
vmrun -T $TYPE -h "$URL" -u $USER -p $PW list # running VMs
vmrun -T $TYPE -h "$URL" -u $USER -p $PW listRegisteredVM # all VMs
# sample output of list/listRegisteredVM
# [standard] winxp/winxp.vmx
# [standard] fedora/fedora.vmx
# [standard] test/test.vmx
# "path to vmx" should be in the same format as list/listRegisteredVM
#
# command = start, pause, unpause
# command = stop, reset, suspend [hard|soft]
# command = snapshot, deleteSnapshot, revertSnapshot snapshotname
vmrun -T $TYPE -h "$URL" -u $USER -p $PW command "path to vmx"
vmrun -T $TYPE -h "$URL" -u $USER -p $PW start "[standard] test/test.vmx"
date: 01/07/2010
|