Management class for basic VM operations.
-
class VMOps
Bases: object
-
create_instance(instance, network_info, block_device_info, root_vhd_path)
-
destroy(instance, network_info=None, block_device_info=None, destroy_disks=True)
-
get_info(instance)
Get information about the VM.
-
list_instances()
-
pause(instance)
Pause VM instance.
-
power_off(instance)
Power off the specified instance.
-
power_on(instance)
Power on the specified instance.
-
reboot(instance, network_info, reboot_type)
Reboot the specified instance.
-
resume(instance)
Resume the suspended VM instance.
-
spawn(context, instance, image_meta, injected_files, admin_password, network_info, block_device_info=None)
Create a new VM and start it.
-
suspend(instance)
Suspend the specified instance.
-
unpause(instance)
Unpause paused VM instance.