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