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 |
|
||
|
|||
|
|||
|
|||
|
|||
objects.MigrationStatus |
|
||
Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
str |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
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 = [XEND_CONFIG_FILE, XL_CONFIG_FILE, VIF_BRIDG
|
|||
ANCILLARY_FILES_OPT = [XL_CONFIG_FILE,]
|
|||
Inherited from |
|
|||
Inherited from |
|
Get the config file name for an instance.
|
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.
|
Balloon an instance memory to a certain value.
|
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.
|
Finalize the instance migration on the source node.
|
Get the migration status As MigrateInstance for Xen is still blocking, if this method is called it means that MigrateInstance has completed successfully. So we can safely assume that the migration was successful and notify this fact to the client.
|
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 Tue Dec 3 11:32:40 2013 | http://epydoc.sourceforge.net |