Class for VM tasks like spawn, snapshot, suspend, resume etc.
Bases: object
Management class for VM-related tasks.
Destroy a VM instance. Steps followed are: 1. Power off the VM, if it is in poweredOn state. 2. Un-register a VM. 3. Delete the contents of the folder holding the VM related data.
Return link to instance’s ajax console.
Return snapshot of console.
Return data about VM diagnostics.
Return data about the VM instance.
Lists the VM instances that are registered with the ESX host.
Pause a VM instance.
Plug VIFs into networks.
Reboot a VM instance.
Resume the specified instance.
Create snapshot from a running VM instance. Steps followed are: 1. Get the name of the vmdk file which the VM points to right now.
Can be a chain of snapshots, so we need to know the last in the chain.
now. The earlier vmdk becomes read-only.
vmdk, rather a .vmdk metadata file and a -flat.vmdk disk data file.
Now upload the -flat.vmdk file to the image store.
Delete the coalesced .vmdk and -flat.vmdk created.
Creates a VM instance.
Steps followed are: 1. Create a VM with no disk and the specifics in the instance object
like RAM size.
uploaded. This is required just to create the metadata file.
the metadata .vmdk file.
Upload the disk file.
Attach the disk to the VM by reconfiguring the same.
Power on the VM.
Suspend the specified instance.
Un-Pause a VM instance.