Manages information about the guest.
This class encapsulates libvirt domain provides certain higher level APIs around the raw libvirt API. These APIs are then used by all the other libvirt related classes
Bases: object
Wrapper around block device API
Request to cancel any job currently running on the block.
Parameters: |
|
---|
Commit on block device
For performance during live snapshot it will reduces the disk chain to a single disk.
Parameters: | relative – Keep backing chain referenced using relative names |
---|
Returns information about job currently running
Returns: | BlockDeviceJobInfo or None |
---|
Rebases block to new base
Parameters: |
|
---|
Resizes block device to Kib size.
Wait for libvirt block job to complete.
Libvirt may return either cur==end or an empty dict when the job is complete, depending on whether the job has been cleaned up by libvirt yet, or not.
Parameters: |
|
---|---|
Returns: | True if still in progress False if completed |
Bases: object
Bases: object
Attaches device to the guest.
Parameters: |
|
---|
Create a new Guest
Parameters: |
|
---|---|
Returns guest.Guest: | |
Guest ready to be launched |
Undefines a domain from hypervisor.
Detaches device to the guest.
Parameters: |
|
---|
Detaches a device from the guest. After the initial detach request, a function is returned which can be used to ensure the device is successfully removed from the guest domain (retrying the removal as necessary).
Parameters: |
|
---|
Enables hairpin mode for this guest.
Freeze filesystems within guest.
Returns all devices for a guest
Parameters: | devtype – a LibvirtConfigGuestDevice subclass class |
---|---|
Returns: | a list of LibvirtConfigGuestDevice instances |
Returns all the disks for a guest
Returns: | a list of LibvirtConfigGuestDisk instances |
---|
Returns a block device wrapper for disk.
Returns the disk mounted at device
Returns LivirtConfigGuestDisk: | |
---|---|
mounted at device or None |
Retrieve information from libvirt for a specific instance name.
If a libvirt error is encountered during lookup, we might raise a NotFound exception or Error exception depending on how severe the libvirt error is.
Returns hardware.InstanceInfo: | |
---|---|
Lookup a LibvirtConfigGuestInterface by the MAC address.
Parameters: | mac (str) – MAC address of the guest interface. |
---|---|
Returns: | nova.virt.libvirt.config.LibvirtConfigGuestInterface instance if found, else None |
Returns a list of all network interfaces for this domain.
Returns virtual cpus information of guest.
Returns: | guest.VCPUInfo |
---|
Returns xml description of guest.
Parameters: |
|
---|---|
Returns string: | XML description of the guest |
Whether domain config is persistently stored on the host.
Injects an NMI to a guest.
Determines whether guest is currently running.
Starts a created guest.
Parameters: | pause – Indicates whether to start and pause the guest |
---|
Suspends an active guest
Process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated.
See method “resume()” to reactive guest.
Stops a running guest.
Resumes a suspended guest.
Saves the domain’s memory state. Requires running domain.
raises: raises libvirtError on error
Configures a new user password.
Shutdown guest
Creates a guest snapshot.
Parameters: |
|
---|
Thaw filesystems within guest.
Bases: object