4、ion>
恢复虚拟机快照
u /usr/bin/vmware-cmd revertsnapshot
删除虚拟机快照
u /usr/bin/vmware-cmd removesnapshots
VMware-cmd命令行
Usage: /usr/bin/vmware-cmd
/usr/bin/vmware-cmd -s
Options
5、
Connection Options:
-H specifies an alternative host (if set, -U and -P must also be set)
-O specifies an alternative port
-U specifies a user
-P specifies a password
General Options:
-h More detailed help.
-q Quiet. Minimal output
-v Verbose.
Server O
6、perations:
/usr/bin/vmware-cmd -l
– lists the registered VMs
/usr/bin/vmware-cmd -s register
– registers a VM
/usr/bin/vmware-cmd -s unregister
– unregisters a VM
/usr/bin/vmware-cmd -s getresource
– retrieves a server resource
/usr/bin/vmwar
7、e-cmd -s setresource
– sets a server resource
VM Operations:
/usr/bin/vmware-cmd getconnectedusers
/usr/bin/vmware-cmd getstate
– gets the execution state of the VM
/usr/bin/vmware-cmd start
– powers on or resumes a VM
/usr/bin/vmware-cmd <
8、cfg> stop
– stops a VM
/usr/bin/vmware-cmd reset
– resets a VM
/usr/bin/vmware-cmd suspend
– suspends a VM
/usr/bin/vmware-cmd setconfig
– sets a configuration variable
/usr/bin/vmware-cmd getconfig 9、able>
– retrieves the value for a configuration variable
/usr/bin/vmware-cmd setguestinfo
– sets a guest info variable
/usr/bin/vmware-cmd getguestinfo
– retrieves the value for a guest info variable
/usr/bin/vmware-cmd getproductinfo
10、
– gets various product information
/usr/bin/vmware-cmd connectdevice
– connects a virtual device to a VM
/usr/bin/vmware-cmd disconnectdevice
– disconnects a virtual device from a VM
/usr/bin/vmware-cmd getconfigfile
– retrieves the path to the co
11、nfiguration file
/usr/bin/vmware-cmd getheartbeat
– retrieves the heartbeat value of the guest OS
/usr/bin/vmware-cmd gettoolslastactive
– retrieves the number of seconds since last notification from the tools
/usr/bin/vmware-cmd getresource
– retrieves a VM resour
12、ce
/usr/bin/vmware-cmd setresource
– sets a VM resource
/usr/bin/vmware-cmd hassnapshot
– determine if a VM has a snapshot
/usr/bin/vmware-cmd createsnapshot
– creates a snapshot of a VM
/usr/bin/vmware-cmd revertsnapshot
– revert to the last snapshot of a VM
/usr/bin/vmware-cmd removesnapshots
– remove all snapshots of a VM
/usr/bin/vmware-cmd answer
– answers a question for a VM requesting input