Class for VM tasks like spawn, snapshot, suspend, resume etc.
Bases: object
Management class for VM-related tasks.
Confirms a resize, destroying the source VM.
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.
Completes a resize, turning on the migrated instance.
Finish reverting a resize, powering back on the instance.
Return snapshot of console.
Return data about VM diagnostics.
Return data about the VM instance.
Return connection info for a vnc console.
inject network info for specified instance.
Lists the VM instances that are registered with the ESX host.
Return the IDs of all the virtual network interfaces attached to the specified instance, as a list. These IDs are opaque to the caller (they are only useful for giving back to this layer as a parameter to interface_stats). These IDs only need to be unique for a given instance.
Spawning live_migration operation for distributing high-load.
Transfers the disk of a running instance in multiple phases, turning off the instance before the end.
Plug VIFs into networks.
Poll for rebooting instances.
Power off the specified instance.
Power on the specified instance.
Reboot a VM instance.
Rescue the specified instance.
Resume the specified instance.
Create snapshot from a running VM instance.
Steps followed are:
Creates a VM instance.
Steps followed are:
- 2.1. Create a dummy vmdk of the size of the disk file that is to be
- uploaded. This is required just to create the metadata file.
- 2.2. Delete the -flat.vmdk file created in the above step and retain
- the metadata .vmdk file.
2.3. Upload the disk file.
3.1. Upload the disk file to a -sparse.vmdk file. 3.2. Copy/Clone the -sparse.vmdk file to a thin vmdk. 3.3. Delete the -sparse.vmdk file.
Suspend the specified instance.
Unplug VIFs from networks.
Unrescue the specified instance.