On Wed, Nov 15, 2017 at 04:52:56PM +0100, Gandalf Corvotempesta wrote:
I'm thinking if support for XVA files could be added to qemu-img
The file-format is well known (it's just a tar archive) and there are scripts
that are able to convert an XVA file to a RAW image. (ie:
https://gist.github.com/miebach/0433947bcf053de23159)
Running these script on their own is very time consuming, as you have to
extract the XVA, convert any disk image from "single chunks" to a raw image
and then use qemu-img to convert from raw to qcow.
Maybe a native support will be able to skip some steps. (like the
conversion from
"single chunks" to raw and raw to qcow2)
Why not use the offset/size support in the raw driver?
We use that to access files inside OVA files (also a tar file with a
funny extension) in virt-v2v:
https://github.com/libguestfs/libguestfs/blob/994ca8d87361a4eb52a05bb4496...
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top