[Users] Set mic order on vm

In our setup I need to have eth0 set to a certain MAC address. When I add the three nics to a new vm, nic1 is not eth0. (ovirt starts with "nic1" as the first suggested name of the nic) Any ideas? Thanks! -Bret

----- Original Message -----
In our setup I need to have eth0 set to a certain MAC address. When I add the three nics to a new vm, nic1 is not eth0. (ovirt starts with "nic1" as the first suggested name of the nic)
Any ideas?
It is the guest OS that is responsible for assigning the names of the interfaces. In Linux specifically it's udev that does it, so you might want to try writing a udev rule for that. Perhaps try following this guide (if it's Fedora 15+): https://alteeve.ca/w/Changing_Ethernet_Device_Names_in_EL7_and_Fedora_15%2B Or this guide (if it's RHEL6 or older Fedora): https://alteeve.ca/w/Changing_the_ethX_to_Ethernet_Device_Mapping_in_EL6_and...
Thanks!
-Bret

On 10/23/2012 08:31 AM, Mike Kolesnik wrote:
----- Original Message -----
In our setup I need to have eth0 set to a certain MAC address. When I add the three nics to a new vm, nic1 is not eth0. (ovirt starts with "nic1" as the first suggested name of the nic)
Any ideas?
It is the guest OS that is responsible for assigning the names of the interfaces. In Linux specifically it's udev that does it, so you might want to try writing a udev rule for that.
Perhaps try following this guide (if it's Fedora 15+): https://alteeve.ca/w/Changing_Ethernet_Device_Names_in_EL7_and_Fedora_15%2B
Or this guide (if it's RHEL6 or older Fedora): https://alteeve.ca/w/Changing_the_ethX_to_Ethernet_Device_Mapping_in_EL6_and...
something to consider ovirt-engine to provide the guest via the payload feature, so a cloud-init extension can take care of it out of the box.
Thanks!
-Bret
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 23/10/12 08:22, Bret Palsson wrote:
In our setup I need to have eth0 set to a certain MAC address. When I add the three nics to a new vm, nic1 is not eth0. (ovirt starts with "nic1" as the first suggested name of the nic)
Any ideas?
1. What OS you have on the guest? 2. Did you create the VM from template? If the answer to 1 is Fedora/RHEL and the answer to 2 is yes, the following wiki page can help - http://wiki.ovirt.org/wiki/Sealing_Linux_VM Livnat
Thanks!
-Bret _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

1. CentOS 6.3 2. I didn't create from a template, but I will try that. Thanks for the wiki link. I'll take a look at it right now. -Bret On Oct 23, 2012, at 1:56 AM, Livnat Peer <lpeer@redhat.com> wrote:
On 23/10/12 08:22, Bret Palsson wrote:
In our setup I need to have eth0 set to a certain MAC address. When I add the three nics to a new vm, nic1 is not eth0. (ovirt starts with "nic1" as the first suggested name of the nic)
Any ideas?
1. What OS you have on the guest? 2. Did you create the VM from template?
If the answer to 1 is Fedora/RHEL and the answer to 2 is yes, the following wiki page can help -
http://wiki.ovirt.org/wiki/Sealing_Linux_VM
Livnat
Thanks!
-Bret _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (4)
-
Bret Palsson
-
Itamar Heim
-
Livnat Peer
-
Mike Kolesnik