From 98a835a987ed4f90c534dd27c6e51007e47c938e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 16 Feb 2006 22:50:52 +0000 Subject: * configure.in src/Makefile.am: adding dependency to libxml2 * include/libvirt.h* src/libvirt.c src/xend_internal.[ch] src/xml.[ch]: added XML parsing for Xen domain descriptions needed for creates, plugged in a converter to s-exp and xend call. Modified the virDomainCreateLinux() to reflect that XML based description. Seems to work. * python/tests/create.py: added a test case which seems to work not tested much yet * docs/*: regenerated Daniel --- tests/create.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 tests/create.py diff --git a/tests/create.py b/tests/create.py new file mode 100755 index 0000000..c31eaa4 --- /dev/null +++ b/tests/create.py @@ -0,0 +1,46 @@ +#!/usr/bin/python -u +import libvirt +import sys + +conn = libvirt.openReadOnly(None) +if conn == None: + print 'Failed to open connection to the hypervisor' + sys.exit(1) + +xmldesc=""" + test + + linux + /boot/vmlinuz-2.6.15-1.43_FC5guest + /boot/initrd-2.6.15-1.43_FC5guest.img + root=/dev/sda1 ro selinux=0 3 + + 131072 + 1 + + + + + + + + +