<div dir="ltr">Running sysprep is quite easy today because we use the export domain, which is frequently NFS. So we simply mount it on the conversion host and run sysprep against the disks of the converted VM before it is imported.<div>Soon, we want to skip the export domain, so the disks of the VM will be in a separate domain. We can still find them and run the sysprep, but I have the feeling that it would be more logical if virt-v2v did the sysprep when target is oVirt / RHV.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 February 2018 at 13:34, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Feb 27, 2018 at 12:53:08PM +0100, Pino Toscano wrote:<br>
> On Tuesday, 27 February 2018 12:35:36 CET Tomáš Golembiovský wrote:<br>
> > Remove ties to MAC address because it is likely to change.<br>
><br>
> v2v tries to preserve the MAC address of network interfaces; few months<br>
> ago we did a fix regarding this:<br>
> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1506572" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1506572</a><br>
><br>
> The approach of this patch is IMHO not good, since it removes the MAC<br>
> address from the network-scripts, but still the rest of v2v will try<br>
> to preserve the MAC addresses.<br>
<br>
We preserve the MAC address in metadata.  On the other hand AIUI this<br>
patch only removes the association in the ifcfg files and the guest<br>
will reassociate it when it boots (albeit it might then mix up the<br>
ethernet interfaces so that's not good).<br>
<br>
There's IMHO a bigger problem which is not being addressed:<br>
<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1318922" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1318922</a><br>
<br>
> What's the reason behind this patch?<br>
<br>
There's a bit of background which is missing.  Tomáš and I had some<br>
discussions (privately, unfortunately) with the ManageIQ developers<br>
who are integrating virt-v2v into MIQ/CloudForms.  Their existing<br>
software runs a separate virt-sysprep step on guests after they have<br>
been converted by virt-v2v.  They disable all sysprep the operations<br>
except for just a couple, including ‘net-hwaddr’, so the effect is<br>
roughly the same as this patch.<br>
<br>
The question was raised why they need to do that as a separate step<br>
and why virt-v2v doesn't do it.  And indeed there was some discussion<br>
about whether or not converted guests need a new MAC address -- it's<br>
at best unclear -- it is thought that VMware might reuse MAC addresses<br>
which have "left" the hypervisor, although no one knows if that's<br>
really true or not.<br>
<br>
I don't have much opinion on this.  Maybe it's best for CFME to<br>
continue to run virt-sysprep as a separate step.<br>
<br>
Rich.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~<wbr>rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" rel="noreferrer" target="_blank">http://libguestfs.org</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin:0px!important;padding:0px!important"><b style="font-family:arial,helvetica,sans-serif;font-size:small"><font color="#cc0000"><span style="margin:0px!important;padding:0px!important">Fabien</span> <span style="margin:0px!important;padding:0px!important">Dupont</span></font></b><br></p><p style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"></p><p style="font-size:small;color:rgb(0,0,0);margin:0px!important;padding:0px!important"><span style="font-family:arial,helvetica,sans-serif;font-size:x-small">PRINCIPAL SOFTWARE ENGINEER</span><font size="1" face="arial, helvetica, sans-serif"><br style="margin:0px!important;padding:0px!important"></font></p><p style="font-size:small;margin:0px!important;padding:0px!important"><font face="arial, helvetica, sans-serif" size="1" color="#000000">Red Hat - Solutions Engineering</font></p><p style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><span style="margin:0px!important;padding:0px!important"><span style="margin:0px!important;padding:0px!important"><a href="mailto:fabien@redhat.com" target="_blank"><font color="#0b5394">fabien@redhat.com</font></a></span><font color="#000000">     </font></span><span style="margin:0px!important;padding:0px!important"><font color="#000000">M: </font><a href="tel:+33662784971" style="margin:0px!important;padding:0px!important" target="_blank"><font color="#0b5394">+33 (0) 662 784 971</font></a></span></font></p><p style="margin:0px!important;padding:0px!important"><span style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><a href="http://redhat.com" style="color:rgb(0,0,0)" target="_blank"><img src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png" width="96" height="30"></a><font color="#000000">  </font><span style="margin:0px!important;padding:0px!important"><font color="#cc0000"><b>TRIED. TESTED. TRUSTED.</b></font></span></font></span></p><p style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif"><span style="margin:0px!important;padding:0px!important"></span></font></p><div style="color:rgb(0,0,0);margin:0px!important;padding:0px!important"><div style="margin:0px!important;padding:0px!important"><font size="1" face="arial, helvetica, sans-serif">Twitter: <a href="https://twitter.com/redhatway" target="_blank">@redhatway</a> | Instagram: <a href="https://www.instagram.com/redhatinc/" target="_blank">@redhatinc</a> | Snapchat: @redhatsnaps</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>