aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/scripts/xapi.vbdcfg.py
diff options
context:
space:
mode:
authorAlastair Tse <atse@xensource.com>2006-10-06 11:48:21 +0100
committerAlastair Tse <atse@xensource.com>2006-10-06 11:48:21 +0100
commit3dae87e5fae21c79f9aa14c12482fdac150acab9 (patch)
tree41ce63589fbc9f19f7b5d34b1feb693f0c805e18 /tools/python/scripts/xapi.vbdcfg.py
parentad6aa72b7fdd244daa7a4e8237b84c5276fee133 (diff)
downloadxen-3dae87e5fae21c79f9aa14c12482fdac150acab9.tar.gz
xen-3dae87e5fae21c79f9aa14c12482fdac150acab9.tar.bz2
xen-3dae87e5fae21c79f9aa14c12482fdac150acab9.zip
[XENAPI] Example tools to create/destroy/shutdown VMs
Example Session: xapi.py vm-list xapi.py host-info xapi.py vm-create xapi.domcfg.py xapi.py vbd-create GentooAPI xapi.vbdcfg.py xapi.py vif-create GentooAPI xapi.vifcfg.py xapi.py vm-start GentooAPI xapi.py vm-shutdown GentooAPI xapi.py vm-delete xapi.py signed-off-by: Alastair Tse <atse@xensource.com>
Diffstat (limited to 'tools/python/scripts/xapi.vbdcfg.py')
-rw-r--r--tools/python/scripts/xapi.vbdcfg.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/python/scripts/xapi.vbdcfg.py b/tools/python/scripts/xapi.vbdcfg.py
new file mode 100644
index 0000000000..faae8d407d
--- /dev/null
+++ b/tools/python/scripts/xapi.vbdcfg.py
@@ -0,0 +1,12 @@
+#
+# Virtual Block Device (VBD) Xen API Configuration
+#
+# Note: There is a non-API field here called "image" which is a backwards
+# compat addition so you can mount to old images.
+#
+
+VDI = ''
+device = 'sda1'
+mode = 'RW'
+driver = 'paravirtualised'
+image = 'file:/root/gentoo-64-xenU.img'