Friday, December 10, 2010

How to deal with the virtual machines from the cli:

View number of virtual machines on host and location:

# vmware-cmd -l

Start a virtual machine:

# vmware-cmd ubuntu start

Stop a virtual machine:

# vmware-cmd ubuntu stop

View if a virtual machine is running:

# vmware-cmd ubuntu getstate

View how long a virtual machine has been running in seconds:

# vmware-cmd ubuntu getuptime

Reboot the virtual machine:

# vmware-cmd ubuntu reset trysoft

Create a snapshot and quiesce in the process:

# vmware-cmd ubuntu createsnapshot snap1 "first snapshot" 1 1 

Revert to a previous snapshot:

# vmware-cmd ubuntu revertsnapshot

Remove snapshots:

# vmware-cmd ubuntu removesnapshots

No comments:

Post a Comment