The nova.virt.hyperv.vmops
Module¶
Management class for basic VM operations.
-
class
VMOps
¶ Bases:
object
-
attach_config_drive
(instance, configdrive_path, vm_gen)¶
-
attach_interface
(instance, vif)¶
-
copy_vm_console_logs
(vm_name, dest_host)¶
-
copy_vm_dvd_disks
(vm_name, dest_host)¶
-
create_ephemeral_vhd
(instance)¶
-
create_instance
(instance, network_info, block_device_info, root_vhd_path, eph_vhd_path, vm_gen)¶
-
destroy
(instance, network_info=None, block_device_info=None, destroy_disks=True)¶
-
detach_interface
(instance, vif)¶
-
get_console_output
(instance)¶
-
get_image_vm_generation
(instance_id, root_vhd_path, image_meta)¶
-
get_info
(instance)¶ Get information about the VM.
-
list_instance_uuids
()¶
-
list_instances
()¶
-
log_vm_serial_output
(instance_name, instance_uuid)¶
-
pause
(instance)¶ Pause VM instance.
-
power_off
(instance, timeout=0, retry_interval=0)¶ Power off the specified instance.
-
power_on
(instance, block_device_info=None)¶ Power on the specified instance.
-
reboot
(instance, network_info, reboot_type)¶ Reboot the specified instance.
-
restart_vm_log_writers
()¶
-
resume
(instance)¶ Resume the suspended VM instance.
-
resume_state_on_host_boot
(context, instance, network_info, block_device_info=None)¶ Resume guest state when a host is booted.
-
spawn
(*args, **kwds)¶ Create a new VM and start it.
-
suspend
(instance)¶ Suspend the specified instance.
-
unpause
(instance)¶ Unpause paused VM instance.
-
-
check_admin_permissions
(function)¶
-
get_network_driver
()¶ “Return the correct network module