LibvirtGConfig.Domain¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Current Guest Memory (in kilobytes) |
||
r/w |
Some human readable description (could be anything). |
||
[ |
r/w |
Hypervisor Features |
|
r/w |
Maximum Guest Memory (in kilobytes) |
||
r/w |
Domain Name |
||
r/w |
A short description - title - of the domain |
||
r/w |
Domain UUID |
||
r/w |
Maximum Number of Guest Virtual CPUs |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class LibvirtGConfig.Domain(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- add_device(device)¶
- Parameters:
device (
LibvirtGConfig.DomainDevice) –
- get_clock()¶
- Returns:
A
LibvirtGConfig.DomainClock. The returned object should be unreffed withGObject.Object.unref() when no longer needed.- Return type:
Gets the clock configuration of self
- get_cpu()¶
- Returns:
A
LibvirtGConfig.DomainCpu. The returned object should be unreffed withGObject.Object.unref() when no longer needed.- Return type:
Gets the CPU configuration of self
- get_current_memory()¶
- Returns:
current amount of RAM in kilobytes (i.e. blocks of 1024 bytes).
- Return type:
- get_devices()¶
- Returns:
a newly allocated
GLib.ListofLibvirtGConfig.DomainDevice.- Return type:
Gets the list of devices attached to self. The returned list should be freed with g_list_free(), after its elements have been unreffed with
GObject.Object.unref().
- get_features()¶
- Returns:
The returned list should be freed with
GLib.strfreev() when no longer needed.- Return type:
[
str]
- get_memory()¶
- Returns:
maximum amount of RAM in kilobytes (i.e. blocks of 1024 bytes).
- Return type:
- get_os()¶
- Returns:
A
LibvirtGConfig.DomainOs. The returned object should be unreffed withGObject.Object.unref() when no longer needed.- Return type:
Gets the operating system configuration of self
- get_virt_type()¶
- Return type:
- set_clock(klock)¶
- Parameters:
klock (
LibvirtGConfig.DomainClockorNone) –
- set_cpu(cpu)¶
- Parameters:
cpu (
LibvirtGConfig.DomainCpuorNone) –
- set_current_memory(memory)¶
- Parameters:
memory (
int) – The current amount of RAM in kilobytes.
Sets the current amount of RAM allocated to self in kilobytes (i.e. blocks of 1024 bytes). This can be set to less than the maximum domain memory to allow to balloon the guest memory on the fly. Be aware that libvirt will set it automatically if it’s not explicitly set, which means you may need to set this value in addition to ‘memory’ if you want to change the available domain memory after creation.
- set_custom_xml(xml, ns, ns_uri)¶
- Parameters:
- Raises:
- Return type:
- set_custom_xml_ns_children(xml, ns, ns_uri)¶
- Parameters:
- Raises:
- Return type:
- set_devices(devices)¶
- Parameters:
devices ([
LibvirtGConfig.DomainDevice]) –
- set_lifecycle(event, action)¶
- Parameters:
event (
LibvirtGConfig.DomainLifecycleEvent) –action (
LibvirtGConfig.DomainLifecycleAction) –
- set_memory(memory)¶
- Parameters:
memory (
int) – The maximum amount of RAM in kilobytes.
Sets the maximum amount of RAM allocated to self in kilobytes (i.e. blocks of 1024 bytes).
- set_os(os)¶
- Parameters:
os (
LibvirtGConfig.DomainOsorNone) – the os configuration to set
- set_power_management(pm)¶
- Parameters:
pm (
LibvirtGConfig.DomainPowerManagementorNone) – a #GVirPowerManagement instance
- set_seclabel(seclabel)¶
- Parameters:
seclabel (
LibvirtGConfig.DomainSeclabelorNone) – the security label configuration to set
- set_title(title)¶
-
Sets the title of the domain. This is an optional short textual description of the domain. Passing a
Nonetitle unsets the current domain title.
- set_virt_type(type)¶
- Parameters:
type (
LibvirtGConfig.DomainVirtType) –
Property Details¶
- LibvirtGConfig.Domain.props.current_memory¶
-
Current Guest Memory (in kilobytes)
- LibvirtGConfig.Domain.props.description¶
-
Some human readable description (could be anything).
- LibvirtGConfig.Domain.props.features¶
-
Hypervisor Features
- LibvirtGConfig.Domain.props.memory¶
-
Maximum Guest Memory (in kilobytes)
- LibvirtGConfig.Domain.props.name¶
-
Domain Name
- LibvirtGConfig.Domain.props.title¶
-
A short description - title - of the domain
- LibvirtGConfig.Domain.props.uuid¶
-
Domain UUID