source: trunk/packages/xen-common/xen-common/tools/python/scripts/README @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 1.5 KB
Line 
1Xen API Test
2============
3
4xapi.py is a simple command line tool to test the functionality of a
5domain lifecycle supporting, Xen API talking version of Xend.
6
7Creating a VM is slightly more work under the Xen API. The differences
8with this and xm is:
9
101. None of the devices are created during vm-create. You must use
11   vbd-create and vif-create to attach a new device to the VM.
12
132. VM's that are created using vm-create will not start by
14   default. You must use vm-start to "start" the domain.
15
163. VM's that are created using vm-create will not be removed on
17   shutdown. You must remove it using vm-delete.
18
19Example Configuration Files
20---------------------------
21
22xapi.py uses a simple python configuration file similar to xm in the
23face of the lack of any other reasonable format.
24
25All the fields are directly mapped to the arguments that are in the
26Xen API constructore for the respective classes.
27
28xapi.domcfg.py: example configuration for a paravirtualised domain.
29xapi.vbdcfg.py: example configuration for a file based block device.
30xapi.vifcfg.py: example configuration for a simple bridged network
31                device.
32
33Example Session
34---------------
35
36xapi.py vm-list
37xapi.py vm-create xapi.domcfg.py
38xapi.py vbd-create <DomainName> xapi.vbdcfg.py
39xapi.py vif-create <DomainName> xapi.vifcfg.py
40
41Notes
42-----
43
44Currently lacking:
45
461. Any real authentication. XendAuthSessions need to be filled in with
47   a proper authentication implementation either using PAM or other
48   means.
49
Note: See TracBrowser for help on using the repository browser.