ganeti :: hypervisor :: hv_xen :: XenPvmHypervisor :: Class XenPvmHypervisor
[hide private]
[frames] | no frames]

Class XenPvmHypervisor

source code


Xen PVM hypervisor interface

Instance Methods [hide private]

Inherited from XenHypervisor: AcceptInstance, FinalizeMigration, GetAllInstancesInfo, GetInstanceInfo, GetNodeInfo, ListInstances, MigrateInstance, MigrationInfo, RebootInstance, StartInstance, StopInstance, Verify

Inherited from hv_base.BaseHypervisor: CleanupInstance, __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_WriteConfigFile(cls, instance, block_devices)
Write the Xen config file for the instance.
source code

Inherited from XenHypervisor: GetInstanceConsole, PowercycleNode

Inherited from XenHypervisor (private): _GetXMList

Inherited from hv_base.BaseHypervisor: CheckParameterSyntax, GetAncillaryFiles, LinuxPowercycle, ValidateParameters

Static Methods [hide private]

Inherited from hv_base.BaseHypervisor: GetLinuxNodeInfo

Class Variables [hide private]
  PARAMETERS = {constants.HV_USE_BOOTLOADER: hv_base.NO_CHECK, c...
a dict of parameter name: check type; the check type is a five-tuple containing:

Inherited from XenHypervisor: ANCILLARY_FILES, CAN_MIGRATE, REBOOT_RETRY_COUNT, REBOOT_RETRY_INTERVAL

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_WriteConfigFile(cls, instance, block_devices)
Class Method

source code 

Write the Xen config file for the instance.

Overrides: XenHypervisor._WriteConfigFile

Class Variable Details [hide private]

PARAMETERS

a dict of parameter name: check type; the check type is a five-tuple containing:
  • the required flag (boolean)
  • a function to check for syntax, that will be used in CheckParameterSyntax, in the master daemon process
  • an error message for the above function
  • a function to check for parameter validity on the remote node, in the ValidateParameters function
  • an error message for the above function
Value:
{constants.HV_USE_BOOTLOADER: hv_base.NO_CHECK, constants.HV_BOOTLOADE\
R_PATH: hv_base.OPT_FILE_CHECK, constants.HV_BOOTLOADER_ARGS: hv_base.\
NO_CHECK, constants.HV_KERNEL_PATH: hv_base.REQ_FILE_CHECK, constants.\
HV_INITRD_PATH: hv_base.OPT_FILE_CHECK, constants.HV_ROOT_PATH: hv_bas\
e.NO_CHECK, constants.HV_KERNEL_ARGS: hv_base.NO_CHECK, constants.HV_M\
IGRATION_PORT: hv_base.REQ_NET_PORT_CHECK, constants.HV_MIGRATION_MODE\
: hv_base.MIGRATION_MODE_CHECK, constants.HV_BLOCKDEV_PREFIX: hv_base.\
NO_CHECK, constants.HV_REBOOT_BEHAVIOR: hv_base.ParamInSet(True, const\
...