KIWIXMLVMachineData Info


Public methods

Private methods


__addVMconfigXMLElements

Generate XML elements for vmconfig settings and add them to the given parent.

Defined on line: 1178

Called in

__addVMdiskXMLElements

Generate XML elements for vmdisk settings and add them to the given parent.

Defined on line: 1200

Called in

__addVMdvdXMLElements

Generate XML elements for vmdvd settings and add them to the given parent.

Defined on line: 1237

Called in

__addVMnicXMLElements

Generate XML elements for vmnic settings and add them to the given parent.

Defined on line: 1257

Called in

__areNICSettingsSupported

Verify that the hash has only supported settings

Defined on line: 1288

Called in

__interfaceIsUnique

Verify that the interface given is unique

Defined on line: 1309

Called in

__isArchValid

Check if the given architecture is a supported setting

Defined on line: 1347

Called in

__isDVDInitValid

Verify that the initialization hash given for the DVD configuration setup is valid.

Defined on line: 1409

Called in

__isDiskInitValid

Verify that the initialization hash given for the disk configuration setup is valid.

Defined on line: 1366

Called in

__isInitConsistent

Verify that the initialization hash given to the constructor meets all consistency and data criteria.

Defined on line: 1510

Called in

__isNICIDValid

verify that the ID given for a NIC query is valid.

Defined on line: 1565

Called in

__isNICInitValid

Verify that the initialization hash given for the NIC configuration setup is valid.

Defined on line: 1455

Called in

__isOVFTypeValid

Verify that the given OVF type is supported

Defined on line: 1597

Called in

createNICConfig

Create a NIC configuration entry with the data provided and return the ID of the new configuration to allow completion of the config using the setNIC* methods.

Defined on line: 169

getArch

Return the machine architecture

Defined on line: 224

Called in

getConfigEntries

Return the configuration file entries for the VM

Defined on line: 235

Called in

getDVDController

Return the DVD controller setting

Defined on line: 246

Called in

getDVDID

Return the DVD ID setting

Defined on line: 260

Called in

getDomain

Return the specified domain

Defined on line: 274

Called in

getGuestOS

Return the setting for the guest OS

Defined on line: 285

Called in

getHardwareVersion

Return the setting for the hardware version to emulate

Defined on line: 296

Called in

getMaxCPUCnt

Return the setting for the maximum CPUs to use

Defined on line: 307

Called in

getMaxMemory

Return the setting for the maximum amount of memory to allocate

Defined on line: 318

Called in

getMemory

Return the amount of memory to allocate

Defined on line: 329

Called in

getMinCPUCnt

Return the minimum number of CPUs to use

Defined on line: 340

Called in

getMinMemory

Return the minimum memory to allocate for the virtual machine

Defined on line: 351

Called in

getNICDriver

Return the driver for the NIC configured with the given ID

Defined on line: 362

Called in

getNICIDs

Return an array ref of IDs for configured NICs

Defined on line: 377

Called in

getNICInterface

Return the interface specified for the NIC configured with the given ID

Defined on line: 390

Called in

getNICMAC

Return the MAC address specified for the NIC configured with the given ID

Defined on line: 405

Called in

getNICMode

Return the mode configured for the NIC with the given ID

Defined on line: 421

Called in

getNumCPUs

Return the nominal number of CPUs configured

Defined on line: 436

Called in

getOVFType

Return the configured OVF format type

Defined on line: 447

Called in

getSystemDiskController

Return the controller configured for the system disk

Defined on line: 458

Called in

getSystemDiskDevice

Return the configured device ID for the system disk

Defined on line: 469

Called in

getSystemDiskID

Return the disk ID configured for the system disk

Defined on line: 480

Called in

getSystemDiskMode

Return the configured disk mode for the system disk

Defined on line: 502

Called in

getSystemDiskType

Return the configured device type for the system disk

Defined on line: 491

Called in

getXMLElement

Return an XML Element representing the object's data

Defined on line: 513

new

Create the KIWIXMLVMachineData object Internal data structure this = { HWversion = '', arch = '', confEntries = (), domain = '', guestOS = '', maxCPUCnt = '', maxMemory = '', memory = '', minCPUCnt = '', minMemory = '', ncpus = '', ovftype = '' vmdisks = { system = { controller = '', device = '', disktype = '', id = '', diskmode = '' } } vmdvd = { controller = '', id = '' } vmnics = { ID[+] = { driver = '', interface = '', mac = '', mode = '' } } } Having the disks as a two level hashref allows us to support specification of storage images at a later point without having to change the data structure or changing the arguments and return values of the interface with minimal to no extra cost if we decide to never support storage virtual disks.

Defined on line: 40

Called in

setArch

Set the architecture to be used for this VM

Defined on line: 577

setConfigEntries

Set the configuration file entries for the VM config

Defined on line: 605

setDVDController

Set the dvd controller for the VM

Defined on line: 633

setDVDID

Set the dvd ID for the VM

Defined on line: 659

setDomain

Set the domain

Defined on line: 684

setGuestOS

Set the name of the VM guest OS

Defined on line: 704

setHardwareVersion

Set the harware version to emulate for this VM

Defined on line: 725

setMaxCPUCnt

Set the maximum number of CPUs to allocate for this VM

Defined on line: 746

setMaxMemory

Set the maximum memory to allocate for this VM

Defined on line: 766

setMemory

Set the nominal memory to allocate for this VM

Defined on line: 786

setMinCPUCnt

Set the minimum number of CPUs to allocate for this VM

Defined on line: 806

setMinMemory

Set the minimum memory to allocate for this VM

Defined on line: 826

setNICDriver

Set the driver for the NIC configuration with the given ID

Defined on line: 846

setNICInterface

Set the interface for the NIC configuration with the given ID

Defined on line: 878

setNICMAC

Set the MAC for the NIC configuration with the given ID

Defined on line: 911

setNICMode

Set the Mode for the NIC configuration with the given ID

Defined on line: 944

setNumCPUs

Set the minimum memory to allocate for this VM

Defined on line: 977

setOVFType

Set the OVF type to be used to package and describe the VM image

Defined on line: 997

setSystemDiskController

Set the controller to emulate for the system disk for this VM

Defined on line: 1025

setSystemDiskDevice

Set the device to emulate for the system disk for this VM

Defined on line: 1055

setSystemDiskID

Set the ID to emulate for the system disk for this VM

Defined on line: 1145

setSystemDiskMode

Set the mode to emulate for the system disk for this VM

Defined on line: 1115

setSystemDiskType

Set the type to emulate for the system disk for this VM

Defined on line: 1085

Called in