Trees | Indices | Help |
|
---|
|
Xen generic hypervisor interface
This is the Xen base class used for both Xen PVM and HVM. It contains all the functionality that is identical for both.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
boolean |
CAN_MIGRATE = True whether this hypervisor can do migration (either live or non-live) |
||
REBOOT_RETRY_COUNT = 60
|
|||
REBOOT_RETRY_INTERVAL = 10
|
|||
ANCILLARY_FILES = ['/etc/xen/xend-config.sxp', '/etc/xen/scrip
|
|||
Inherited from |
|
|||
Inherited from |
|
Write the Xen config file for the instance. This version of the function just writes the config file from static data. |
Return the list of running instances. If the include_node argument is True, then we return information for dom0 also, otherwise we filter that from the return value.
|
Get the list of running instances.
|
Get instance properties.
|
Get properties of all instances.
|
Start an instance.
|
Stop an instance.
|
Reboot an instance.
|
Return information about the node.
|
Return a command for connecting to the console of an instance. |
Verify the hypervisor. For Xen, this verifies that the xend process is running.
|
Get disk directive for xen config file. This method builds the xen config disk directive according to the given disk_template and block_devices.
|
Get instance information to perform a migration.
|
Prepare to accept an instance.
|
Finalize an instance migration. After a successful migration we write the xen config file. We do nothing on a failure, as we did not change anything at accept time.
|
Migrate an instance to a target node. The migration will not be attempted if the instance is not currently running.
|
Xen-specific powercycle. This first does a Linux reboot (which triggers automatically a Xen reboot), and if that fails it tries to do a Xen reboot. The reason we don't try a Xen reboot first is that the xen reboot launches an external command which connects to the Xen hypervisor, and that won't work in case the root filesystem is broken and/or the xend daemon is not working.
|
|
ANCILLARY_FILES
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Dec 20 13:27:01 2010 | http://epydoc.sourceforge.net |