Essentially I'm hoping for an open source alternative to VMware's ovftool that will run on Linux (Debian). ovftool works fine but as it's not open source I can't redistribute it...
I have looked at virt-convert but it only does the ovf → something else conversion (not something else → ovf). It also doesn't do the vmdk packaging/compressing.
Turning the OVF into an OVA is trivial (create a manifest, tar it all up and change the file extension to .ova) so really all I need is something that can create the desired OVF file. Also I need to convert a "standard sparse" VMDK to the desired type (I forget what version it is; but it's a compressed read-only sparse vmdk - perhaps "type 3"?). qemu-img
is able to create VMDKs ok but last time I checked not the type required for OVF/OVA (having said that I think that as of v2.x QEMU may be able to read them but I still doesn't think that it can write them).
So to summarise I need a tool/tools to:
- Create the initial OVF file
- convert a standard VMDK to an "streaming optimised VMDK" — i.e. a compressed, read-only sparse disk)