The mac adress are unknown until the creation of the VM, so udev won't help here :(<br><br><div class="gmail_quote">2012/10/3 Antoni Segura Puimedon <span dir="ltr"><<a href="mailto:asegurap@redhat.com" target="_blank">asegurap@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
----- Original Message -----<br>
> From: "Kevin Maziere Aubry" <<a href="mailto:kevin.maziere@alterway.fr">kevin.maziere@alterway.fr</a>><br>
</div><div><div class="h5">> To: "Igor Lvovsky" <<a href="mailto:ilvovsky@redhat.com">ilvovsky@redhat.com</a>><br>
> Cc: "Dor Laor" <<a href="mailto:dlaor@redhat.com">dlaor@redhat.com</a>>, "Michael Tsirkin" <<a href="mailto:mtsirkin@redhat.com">mtsirkin@redhat.com</a>>, <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Wednesday, October 3, 2012 8:35:04 AM<br>
> Subject: Re: [Users] Question about network card order<br>
><br>
><br>
> Thanks for your reply.<br>
><br>
><br>
><br>
> 2012/10/3 Igor Lvovsky < <a href="mailto:ilvovsky@redhat.com">ilvovsky@redhat.com</a> ><br>
><br>
><br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> > From: "Kevin Maziere Aubry" < <a href="mailto:kevin.maziere@alterway.fr">kevin.maziere@alterway.fr</a> ><br>
> > To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> > Sent: Wednesday, October 3, 2012 9:58:44 AM<br>
> > Subject: [Users] Question about network card order<br>
> ><br>
> ><br>
> > Hello<br>
> ><br>
> ><br>
> > My first email on the mailing, I hope the first one of a longue<br>
> > serie.<br>
> ><br>
><br>
> Welcome to community :)<br>
><br>
><br>
> ><br>
> > The email concerns a Network Card order issue for which I like to<br>
> > report a have your advises.<br>
> ><br>
> ><br>
> > I've made a template which contains 2 network cards, Each one<br>
> > bridge<br>
> > on different vlan network.<br>
> > When I create a VM from this template, the network card mac address<br>
> > assignation is random... so that by default my fedora assign eth0<br>
> > to<br>
> > the smallest mac address, and so on for eth1/eth2 ...<br>
> ><br>
> ><br>
> > But no way to define network card order in template, so that<br>
> > sometime<br>
> > the smallest mac address is on eth0, sometime on eth1 (and in fact<br>
> > more often on eth1), sometime my VM works, sometime I have to<br>
> > destroy and recreate network interfaces.<br>
> ><br>
> ><br>
><br>
> Unfortunately it's a known issue that related mostly to guest kernel<br>
> rather than RHEV-M.<br>
> This is not related to order of NICs during VM start, because RHEV-M<br>
> keep the MAC assignment<br>
> and even PCI address assignment same over VM reboots.<br>
><br>
> The real reason hidden somewhere deep in kernel/udev behaviour.<br>
> We need to understand why 2 NICs with same MAC addresses and same PCI<br>
> addresses may get different names (eth0/eth1)<br>
> over machine reboot.<br>
><br>
> Michael, any ideas?<br>
><br>
><br>
> > Is there a workaround or anything else ?<br>
> ><br>
><br>
> No, I am not aware of any workaround<br>
<br>
</div></div>Wouldn't it be possible to write some matching rules in:<br>
/etc/udev/rules.d/70-persistent-net.rules<br>
<br>
for your template so you would have it consistent. Mind that you should<br>
not rename to the kernel eth namespace.<br>
<br>
Best,<br>
<br>
Toni<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> Regards,<br>
> Igor<br>
><br>
><br>
> ><br>
> > Thanks<br>
> ><br>
> ><br>
> > Kévin<br>
> ><br>
> ><br>
> > --<br>
> ><br>
> > Kevin Mazière<br>
> > Responsable Infrastructure<br>
> > Alter Way – Hosting<br>
> > 1 rue Royal - 227 Bureaux de la Colline<br>
> > 92213 Saint-Cloud Cedex<br>
> > Tél : <a href="tel:%2B33%20%280%291%2041%2016%2038%2041" value="+33141163841">+33 (0)1 41 16 38 41</a><br>
> > Mob : <a href="tel:%2B33%20%280%297%2062%2055%2057%2005" value="+33762555705">+33 (0)7 62 55 57 05</a><br>
> > <a href="http://www.alterway.fr" target="_blank">http://www.alterway.fr</a><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> > <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
> ><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> Kevin Mazière<br>
> Responsable Infrastructure<br>
> Alter Way – Hosting<br>
> 1 rue Royal - 227 Bureaux de la Colline<br>
> 92213 Saint-Cloud Cedex<br>
> Tél : <a href="tel:%2B33%20%280%291%2041%2016%2038%2041" value="+33141163841">+33 (0)1 41 16 38 41</a><br>
> Mob : <a href="tel:%2B33%20%280%297%2062%2055%2057%2005" value="+33762555705">+33 (0)7 62 55 57 05</a><br>
> <a href="http://www.alterway.fr" target="_blank">http://www.alterway.fr</a><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br> <span style="color:rgb(89,89,89);font-weight:bold" lang="EN-US">Kevin Mazière<br>
</span><span style="color:rgb(89,89,89)" lang="EN-US">Responsable Infrastructure<br>
</span><span style="color:rgb(255,0,153)" lang="EN-US">Alter Way
– Hosting<br>
</span>
<span style="color:rgb(89,89,89)">1 rue Royal - 227 Bureaux de la Colline</span><br>
<span style="color:rgb(89,89,89)">92213 Saint-Cloud Cedex</span><br>
<span style="color:rgb(89,89,89);font-weight:bold">Tél :</span>
<span style="color:rgb(89,89,89)"> +33 (0)1 41 16 38 41 </span><span style="color:rgb(89,89,89);font-weight:bold"><br></span>
<span style="color:rgb(89,89,89);font-weight:bold">Mob :</span>
<span style="color:rgb(89,89,89)"> +33 (0)7 62 55 57 05 </span><span style="color:rgb(89,89,89);font-weight:bold"><br>
<span style="color:rgb(89,89,89)"> <a href="http://www.alterway.fr/" target="_blank">http://www.alterway.fr</a> </span></span><br>