Sur :)<br><br><div class="gmail_quote">2012/10/3 Simon Grinberg <span dir="ltr"><<a href="mailto:simon@redhat.com" target="_blank">simon@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><br><br><hr><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
<div class="im"><b>From: </b>"Kevin Maziere Aubry" <<a href="mailto:kevin.maziere@alterway.fr" target="_blank">kevin.maziere@alterway.fr</a>><br></div><b>To: </b>"Antoni Segura Puimedon" <<a href="mailto:asegurap@redhat.com" target="_blank">asegurap@redhat.com</a>><br>
<b>Cc: </b>"Michael Tsirkin" <<a href="mailto:mtsirkin@redhat.com" target="_blank">mtsirkin@redhat.com</a>>, "Dor Laor" <<a href="mailto:dlaor@redhat.com" target="_blank">dlaor@redhat.com</a>>, <a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a><br>
<b>Sent: </b>Wednesday, October 3, 2012 3:02:47 PM<div class="im"><br><b>Subject: </b>Re: [Users] Question about network card order<br><br></div><div class="im">The mac adress are unknown until the creation of the VM, so udev won't help here :(<br>
</div></blockquote><br>But after the creation of the VM and before the first run you have the option to edit/view those MAC addresses.<br>Give whatever you want before the first run. <br><div><div class="h5"><br><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
<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><br>
<br>
----- Original Message -----<br>
> From: "Kevin Maziere Aubry" <<a href="mailto:kevin.maziere@alterway.fr" target="_blank">kevin.maziere@alterway.fr</a>><br>
</div><div><div>> To: "Igor Lvovsky" <<a href="mailto:ilvovsky@redhat.com" target="_blank">ilvovsky@redhat.com</a>><br>
> Cc: "Dor Laor" <<a href="mailto:dlaor@redhat.com" target="_blank">dlaor@redhat.com</a>>, "Michael Tsirkin" <<a href="mailto:mtsirkin@redhat.com" target="_blank">mtsirkin@redhat.com</a>>, <a href="mailto:users@ovirt.org" target="_blank">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" target="_blank">ilvovsky@redhat.com</a> ><br>
><br>
><br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> > From: "Kevin Maziere Aubry" < <a href="mailto:kevin.maziere@alterway.fr" target="_blank">kevin.maziere@alterway.fr</a> ><br>
> > To: <a href="mailto:users@ovirt.org" target="_blank">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><div><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" target="_blank">+33 (0)1 41 16 38 41</a><br>
> > Mob : <a href="tel:%2B33%20%280%297%2062%2055%2057%2005" target="_blank">+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" target="_blank">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" target="_blank">+33 (0)1 41 16 38 41</a><br>
> Mob : <a href="tel:%2B33%20%280%297%2062%2055%2057%2005" target="_blank">+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" target="_blank">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 lang="EN-US">Kevin Mazière<br>
</span><span lang="EN-US">Responsable Infrastructure<br>
</span><span lang="EN-US">Alter Way
– Hosting<br>
</span>
<span>1 rue Royal - 227 Bureaux de la Colline</span><br>
<span>92213 Saint-Cloud Cedex</span><br>
<span>Tél :</span>
<span> <a href="tel:%2B33%20%280%291%2041%2016%2038%2041" value="+33141163841" target="_blank">+33 (0)1 41 16 38 41</a> </span><span><br></span>
<span>Mob :</span>
<span> <a href="tel:%2B33%20%280%297%2062%2055%2057%2005" value="+33762555705" target="_blank">+33 (0)7 62 55 57 05</a> </span><span><br>
<span> <a href="http://www.alterway.fr/" target="_blank">http://www.alterway.fr</a> </span></span><br>
<br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@ovirt.org" target="_blank">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>
</blockquote><br></div></div></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>