KIWIXMLVMachineData Info


Public methods

Private methods


__addVMconfigXMLElements

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

Defined on line: 1134

Called in

__addVMdiskXMLElements

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

Defined on line: 1156

Called in

__addVMdvdXMLElements

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

Defined on line: 1189

Called in

__addVMnicXMLElements

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

Defined on line: 1209

Called in

__areNICSettingsSupported

Verify that the hash has only supported settings

Defined on line: 1240

Called in

__interfaceIsUnique

Verify that the interface given is unique

Defined on line: 1261

Called in

__isArchValid

Check if the given architecture is a supported setting

Defined on line: 1299

Called in

__isDVDInitValid

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

Defined on line: 1361

Called in

__isDiskInitValid

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

Defined on line: 1318

Called in

__isInitConsistent

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

Defined on line: 1462

Called in

__isNICIDValid

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

Defined on line: 1517

Called in

__isNICInitValid

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

Defined on line: 1407

Called in

__isOVFTypeValid

Verify that the given OVF type is supported

Defined on line: 1549

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: 166

getArch

Return the machine architecture

Defined on line: 221

Called in

getConfigEntries

Return the configuration file entries for the VM

Defined on line: 232

Called in

getDVDController

Return the DVD controller setting

Defined on line: 243

Called in

getDVDID

Return the DVD ID setting

Defined on line: 257

Called in

getDomain

Return the specified domain

Defined on line: 271

Called in

getGuestOS

Return the setting for the guest OS

Defined on line: 282

Called in

getHardwareVersion

Return the setting for the hardware version to emulate

Defined on line: 293

Called in

getMaxCPUCnt

Return the setting for the maximum CPUs to use

Defined on line: 304

Called in

getMaxMemory

Return the setting for the maximum amount of memory to allocate

Defined on line: 315

Called in

getMemory

Return the amount of memory to allocate

Defined on line: 326

Called in

getMinCPUCnt

Return the minimum number of CPUs to use

Defined on line: 337

Called in

getMinMemory

Return the minimum memory to allocate for the virtual machine

Defined on line: 348

Called in

getNICDriver

Return the driver for the NIC configured with the given ID

Defined on line: 359

Called in

getNICIDs

Return an array ref of IDs for configured NICs

Defined on line: 374

Called in

getNICInterface

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

Defined on line: 387

Called in

getNICMAC

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

Defined on line: 402

Called in

getNICMode

Return the mode configured for the NIC with the given ID

Defined on line: 418

Called in

getNumCPUs

Return the nominal number of CPUs configured

Defined on line: 433

Called in

getOVFType

Return the configured OVF format type

Defined on line: 444

Called in

getSystemDiskController

Return the controller configured for the system disk

Defined on line: 455

Called in

getSystemDiskDevice

Return the configured device ID for the system disk

Defined on line: 466

Called in

getSystemDiskID

Return the disk ID configured for the system disk

Defined on line: 477

Called in

getSystemDiskType

Return the configured device type for the system disk

Defined on line: 488

Called in

getXMLElement

Return an XML Element representing the object's data

Defined on line: 499

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 = '' } } 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: 41

Called in

setArch

Set the architecture to be used for this VM

Defined on line: 563

setConfigEntries

Set the configuration file entries for the VM config

Defined on line: 591

setDVDController

Set the dvd controller for the VM

Defined on line: 619

setDVDID

Set the dvd ID for the VM

Defined on line: 645

setDomain

Set the domain

Defined on line: 670

setGuestOS

Set the name of the VM guest OS

Defined on line: 690

setHardwareVersion

Set the harware version to emulate for this VM

Defined on line: 711

setMaxCPUCnt

Set the maximum number of CPUs to allocate for this VM

Defined on line: 732

setMaxMemory

Set the maximum memory to allocate for this VM

Defined on line: 752

setMemory

Set the nominal memory to allocate for this VM

Defined on line: 772

setMinCPUCnt

Set the minimum number of CPUs to allocate for this VM

Defined on line: 792

setMinMemory

Set the minimum memory to allocate for this VM

Defined on line: 812

setNICDriver

Set the driver for the NIC configuration with the given ID

Defined on line: 832

setNICInterface

Set the interface for the NIC configuration with the given ID

Defined on line: 864

setNICMAC

Set the MAC for the NIC configuration with the given ID

Defined on line: 897

setNICMode

Set the Mode for the NIC configuration with the given ID

Defined on line: 930

setNumCPUs

Set the minimum memory to allocate for this VM

Defined on line: 963

setOVFType

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

Defined on line: 983

setSystemDiskController

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

Defined on line: 1011

setSystemDiskDevice

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

Defined on line: 1041

setSystemDiskID

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

Defined on line: 1101

setSystemDiskType

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

Defined on line: 1071