The nova.virt.hyperv.vmops Module

Management class for basic VM operations.

class VMOps(volumeops)

Bases: nova.virt.hyperv.baseops.BaseOps

destroy(instance, network_info=None, cleanup=True)

Destroy the VM. Also destroy the associated VHD disk files

get_available_resource()

Retrieve resource info.

This method is called when nova-compute launches, and as part of a periodic task.

Returns:dictionary describing resources
get_info(instance)

Get information about the VM

list_instances()

Return the names of all the instances known to Hyper-V.

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)
resume(instance)

Resume the suspended VM instance.

spawn(context, instance, image_meta, 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.

Previous topic

The nova.virt.hyperv.snapshotops Module

Next topic

The nova.virt.hyperv.vmutils Module

This Page