Pino Toscano
2015-Mar-11 10:02 UTC
Re: [Libguestfs] [PATCH] v2v: Add the test-harness used by external tests.
On Tuesday 10 March 2015 18:31:41 Richard W.M. Jones wrote:> + (* Boot the guest. *) > + let conn = C.connect () in > + let dom = D.create_xml conn boot_xml [D.START_AUTODESTROY] inWhen using ocaml-libvirt 0.6.1.2 (as shipped in f21), this results in: File "v2v_test_harness.ml", line 174, characters 14-26: Error: Unbound value D.create_xml Indeed, the ocaml-libvirt in that version has no Domain.create_xml, nor Domain flags like START_AUTODESTROY. -- Pino Toscano
Richard W.M. Jones
2015-Mar-11 17:05 UTC
Re: [Libguestfs] [PATCH] v2v: Add the test-harness used by external tests.
On Wed, Mar 11, 2015 at 11:02:44AM +0100, Pino Toscano wrote:> On Tuesday 10 March 2015 18:31:41 Richard W.M. Jones wrote: > > + (* Boot the guest. *) > > + let conn = C.connect () in > > + let dom = D.create_xml conn boot_xml [D.START_AUTODESTROY] in > > When using ocaml-libvirt 0.6.1.2 (as shipped in f21), this results in: > > File "v2v_test_harness.ml", line 174, characters 14-26: > Error: Unbound value D.create_xml > > Indeed, the ocaml-libvirt in that version has no Domain.create_xml, > nor Domain flags like START_AUTODESTROY.Yup, I need to backport this patch to F21: http://git.annexia.org/?p=ocaml-libvirt.git;a=commit;h=7483c7454538584a3dbe4582096f058e6e877df6 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Richard W.M. Jones
2015-Mar-11 17:40 UTC
Re: [Libguestfs] [PATCH] v2v: Add the test-harness used by external tests.
On Wed, Mar 11, 2015 at 05:05:02PM +0000, Richard W.M. Jones wrote:> Yup, I need to backport this patch to F21: > > http://git.annexia.org/?p=ocaml-libvirt.git;a=commit;h=7483c7454538584a3dbe4582096f058e6e877df6Try one of these updates: https://admin.fedoraproject.org/updates/ocaml-libvirt-0.6.1.4-5.fc21 https://admin.fedoraproject.org/updates/ocaml-libvirt-0.6.1.4-5.fc22 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Reasonably Related Threads
- Re: [PATCH] v2v: Add the test-harness used by external tests.
- [PATCH] v2v: Add the test-harness used by external tests.
- [PATCH 0/1] v2v: Add the test-harness used by external tests.
- Re: libguestfs binaries missing when built from source code
- [PATCH v11 7/8] mllib: add XPath helper xpath_get_nodes