Am 22. Oktober 2016 00:03:30 MESZ, schrieb Emmanuel Kasper <emmanuel@libera.cc>:
Le 21/10/2016 à 16:08, Richard W.M. Jones a écrit :
On Thu, Oct 20, 2016 at 10:43:26PM +0200, Emmanuel Kasper wrote:
Hi
I've been looking for a standalone tool to create OVA/OVF VM files based
on a disk image and found none. So I was thinking to write my own.
Would you be interested in having such a tool in the libguestfs umbrella ?

There is this:

http://git.annexia.org/?p=import-to-ovirt.git

which can generate OVF, and with not very much extra work could
generate OVAs.

The problem is that OVF is not a reliable standard. Sure, there is a
standards organiz! ation behind it, but there is in practice no interop.
You have to know the target hypervisor in order to be able to create
OVF which will work, and the OVF is quite different for each target.


Thanks for the hint for import-to-ovirt, the code is easy to read and
follow, and is close to what I want to achieve.

A good part of the script is ovirt specific but I am going to reuse the
part where you generate the OVF file.

I'll send you a link when I have something to show.



Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

So I adapted on my spare time import-to-ovirt and I have now my import2vbox.
I had to adapt the generated ovf and disable the rh(e)v specific stuff but nothing extraordinary complicated.
Code is here:

https://github.com/EmmanuelKasper/import2vbox

Thanks for the initial pointer to import-to-ovirt

Emmanuel


--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.