<div dir="ltr">Apart from the MAC address, the network interface name may change. In my tests, my network interface is renamed from ens160 in VMware to eth0 in RHV.</div><div class="gmail_extra"><br><div class="gmail_quote">On 27 February 2018 at 14:01, Pino Toscano <span dir="ltr"><<a href="mailto:ptoscano@redhat.com" target="_blank">ptoscano@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tuesday, 27 February 2018 13:34:09 CET Richard W.M. Jones wrote:<br>
> 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>
</span>Yes, this is my concern, i.e. that the guest network configuration<br>
might break.<br>
<span class=""><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>
</span>Possibly there could be also<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1451597" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1451597</a><br>
<span class=""><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.<br>
<br>
</span>This is what my question was about: I do not understand why this<br>
sysprep step (to remove the MAC addresses) is done in the first place,<br>
and without this information it is hard to put extra conversion steps<br>
in v2v.<br>
<br>
What issues were fixed by sysprep'ing the converted guest?<br>
<span class=""><br>
> 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>
</span>IMHO the first thing to do would be deciding on whether the MAC address<br>
need to be removed from the guest or not.<br>
<br>
If it is decided they need to go, then my suggestion would be to add a<br>
new command line option to tune this behaviour:<br>
- if not specified, then the MAC addresses are preserved in both guest<br>
  and metadata<br>
- if specified, then the MAC addresses will not be preserved even in<br>
  the metadata<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Pino Toscano</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>