On 2/11/15 16:19 , Anil Jangity via smartos-discuss wrote:
> I am creating a new OEL KVM dataset. I was able to bring it up but the 
> networking isn’t working.
> I end up getting eth2 and eth3. eth0 and eth0 are missing.
> 
> Looking at 70-persistent-net.rules file, I do see 4 interfaces/4 MAC 
> addresses. However log’s show:
> 
> net eth0: ‘eth0’ renaming to ‘eth3’
> net eth0: ‘eth1’ renaming to ‘eth2’
> 
> I think I have a standard config:
> 
>   "nics": [
>         {
>           "nic_tag": "admin",
>           "model": "virtio",
>           "ip": “x.x.x.x",
>           "netmask": "255.255.255.224",
>           "gateway": “x.x.x.x",
>           "primary": true
>         },
>         {
>           "nic_tag": "be",
>           "model": "virtio",
>           "ip": “y.y.y.y",
>           "netmask": "255.0.0.0"
>         }
>   ],
> 
> I am not too familiar with Linux, any ideas? Strangely, the base KVM I 
> installed worked fine (the one this image is based on — where I installed 
> using ISO).

Given what you've posted above from 70-persistent-net.rules, this makes
sense. What udev is trying to do here is to maintain the same device
name even if it is enumerated in a different order.

It does this by effectively saying that it will record various hardware
information, such as the mac address, and use that to name the device.

When you created the new VM, you had the old base VM's mac address
entries in there, therefore it considered the names eth0 and eth1 as
something that belong to a device that was temporarily missing.

The solution here is that as part of creating your image, you'll likely
want to clear out the persistent networking rules in udev, so that when
a fresh image boots up, udev doesn't have any history of knowing the
names and will write out using the expected names.

In this case, you don't see any eth0 or eth1, simply because those names
have been reserved for what it considers a different device.

I hope that clarifies what's going on here.

Robert


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to