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=7483c7454538584a3d...
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