On Thu, Nov 16, 2017 at 11:07:10AM +0100, Gandalf Corvotempesta wrote: > 2017-11-16 11:01 GMT+01:00 Richard W.M. Jones <rjo...@redhat.com>: > > As mentioned before you can use this to do a qemu-img convert using > > captive nbdkit: > > > > $ nbdkit -U - \ > > perl script=./xva-reader.pl file=./debian8cloud.xva size=4294967296 \ > > --run 'qemu-img convert -f raw $nbd -O qcow2 /var/tmp/output.qcow2 -p' > > > What if XVA is hosting 2 or more partitions ? Which partition are you > converting with this command ?
See "XXX" comments in the code, left as an exercise to the reader :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/