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

Class XenHvmHypervisor

source code

Xen HVM 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)
Create a Xen 3.1 HVM config file.
source code

Inherited from XenHypervisor: GetShellCommandForConsole, 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]
  ANCILLARY_FILES = XenHypervisor.ANCILLARY_FILES+ [constants.VN...
  PARAMETERS = {constants.HV_ACPI: hv_base.NO_CHECK, constants.H...
a dict of parameter name: check type; the check type is a five-tuple containing:


Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_WriteConfigFile(cls, instance, block_devices)
Class Method

source code 

Create a Xen 3.1 HVM config file.

Overrides: XenHypervisor._WriteConfigFile

Class Variable Details [hide private]




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
{constants.HV_ACPI: hv_base.NO_CHECK, constants.HV_BOOT_ORDER:(True,)+\
(lambda x: x and len(x.strip("acdn"))== 0, "Invalid boot order specifi\
ed, must be one or more of [acdn]", None, None), constants.HV_CDROM_IM\
AGE_PATH: hv_base.OPT_FILE_CHECK, constants.HV_DISK_TYPE: hv_base.Para\
mInSet(True, constants.HT_HVM_VALID_DISK_TYPES), constants.HV_NIC_TYPE\
: hv_base.ParamInSet(True, constants.HT_HVM_VALID_NIC_TYPES), constant\
s.HV_PAE: hv_base.NO_CHECK, constants.HV_VNC_BIND_ADDRESS:(False, netu\
tils.IsValidIP4, "VNC bind address is not a valid IP address", None, N\