[Users] Nic names : always start by eth0

Vincent Van der Kussrn vincent at vanderkussen.org
Tue Jul 30 14:40:16 UTC 2013


You need to delete the udev created files under /etc/udev.d

I believe persistent-net-70-* or something (can't check).

And then create your template

Vincent

Connected by Motorola

"Sven M. Geschke" <ovirt at nebulaone.com> wrote:

>Hi
>
>AFAIK This is more a CentOS- than an oVirt-issue. CentOS behaves identically on vSphere.
>
>If I remember correctly, this is due to the fact that the MAC-address of the virtual NIC has to change, when you create a VM from a template.
>CentOS however keeps the MAC address of the template and just adds the new MAC, which then of course becomes eth1.
>
>--SMG
>
>----- Original Message -----
>> From: "gregoire leroy" <gregoire.leroy at retenodus.net>
>> To: users at ovirt.org
>> Sent: Tuesday, July 30, 2013 7:59:35 AM
>> Subject: [Users] Nic names : always start by eth0
>> 
>> Hello,
>> 
>> I have an ovirt cluster which runs CentOS VM. I have a template to
>> create VM. On this template, there are two interfaces, eth0 and eth1.
>> When I create a VM using this template, the new interfaces are named
>> eth2 and eth3. It can be pretty annoying and I would like to know if it
>> would be possible to always start by eth0 ?
>> 
>> If I remember the discussion on IRC, it would be necessary to clean old
>> udev rules (in centos it seems to be
>> /etc/udev/rules.d/70-persistent-net.rules)
>> 
>> Thanks,
>> Regards,
>> Grégoire
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>> 
>_______________________________________________
>Users mailing list
>Users at ovirt.org
>http://lists.ovirt.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130730/7c7e4635/attachment-0001.html>


More information about the Users mailing list