LibvirtGConfig.DomainOs

g GObject.Object GObject.Object LibvirtGConfig.Object LibvirtGConfig.Object GObject.Object->LibvirtGConfig.Object LibvirtGConfig.DomainOs LibvirtGConfig.DomainOs LibvirtGConfig.Object->LibvirtGConfig.DomainOs

Subclasses:

None

Methods

Inherited:

LibvirtGConfig.Object (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_xml (xml)

bios_enable_serial (enable)

enable_boot_menu (enable)

enable_firmware_feature (name, enable)

get_arch ()

get_boot_devices ()

get_firmware ()

get_machine ()

get_os_type ()

set_arch (arch)

set_boot_devices (boot_devices)

set_cmdline (cmdline)

set_firmware (firmware)

set_init (init)

set_kernel (kernel)

set_loader (loader)

set_machine (machine)

set_os_type (type)

set_ramdisk (ramdisk)

set_smbios_mode (mode)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

LibvirtGConfig.Object (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

LibvirtGConfig.Object

r

Class Details

class LibvirtGConfig.DomainOs(**kwargs)
Bases:

LibvirtGConfig.Object

Abstract:

No

Structure:

LibvirtGConfig.DomainOsClass

classmethod new()
Return type:

LibvirtGConfig.DomainOs

classmethod new_from_xml(xml)
Parameters:

xml (str) –

Raises:

GLib.Error

Return type:

LibvirtGConfig.DomainOs

bios_enable_serial(enable)
Parameters:

enable (bool) –

enable_boot_menu(enable)
Parameters:

enable (bool) –

enable_firmware_feature(name, enable)
Parameters:
get_arch()
Return type:

str

get_boot_devices()
Returns:

a newly allocated GLib.List of LibvirtGConfig.DomainOsBootDevice.

Return type:

[LibvirtGConfig.DomainOsBootDevice]

Gets the list of devices attached to self. The returned list should be freed with g_list_free().

get_firmware()
Return type:

LibvirtGConfig.DomainOsFirmware

get_machine()
Return type:

str

get_os_type()
Return type:

LibvirtGConfig.DomainOsType

set_arch(arch)
Parameters:

arch (str) –

set_boot_devices(boot_devices)
Parameters:

boot_devices ([LibvirtGConfig.DomainOsBootDevice]) –

set_cmdline(cmdline)
Parameters:

cmdline (str or None) – The direct boot commandline

set_firmware(firmware)
Parameters:

firmware (LibvirtGConfig.DomainOsFirmware) –

set_init(init)
Parameters:

init (str or None) –

set_kernel(kernel)
Parameters:

kernel (str or None) – The kernel path

set_loader(loader)
Parameters:

loader (str or None) –

set_machine(machine)
Parameters:

machine (str) –

set_os_type(type)
Parameters:

type (LibvirtGConfig.DomainOsType) –

set_ramdisk(ramdisk)
Parameters:

ramdisk (str or None) – The ramdisk path

set_smbios_mode(mode)
Parameters:

mode (LibvirtGConfig.DomainOsSmBiosMode) –