Richard W.M. Jones
unread,May 15, 2018, 7:04:59 AM5/15/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fabian Deutsch, Alexander Gallego, Mohr, Roman, David Vossel, kubevirt-dev
On Tue, May 15, 2018 at 11:18:24AM +0200, Fabian Deutsch wrote:
> All, this topic - v2v and some other playing around - actually lead me to
> the thought that we probably want a library which can do domxml to vmspec
> conversions.
> v2v, a potential libvirt-to-kubevirt kubectl would benefit from this.
While it sounds like a good idea in general, I don't think we should
use this for virt-v2v.
virt-v2v has its own concept of metadata[1]—which, to be fair, is
modelled after and closely follows a small subset of libvirt metadata.
However it's plainly cleaner and more straightforward for virt-v2v to
generate kubevirt yaml directly, rather than going through additional
steps and invoking an external program. If you look at the original
patch I posted[2], generating the yaml is only about 40 lines of code.
Rich.
[1]
https://github.com/libguestfs/libguestfs/blob/22cae846ce305c9a772044ce181cb7efc3a93500/v2v/types.mli#L59
[2] ‘method create_metadata’ in
https://www.redhat.com/archives/libguestfs/2018-March/msg00194.html
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