Red Hat Bugzilla – Bug 197172
nic_get_links() doesn't correctly handle multipart netlink replies (xenguest-install failure)
Last modified: 2007-11-30 17:11:36 EST
Problem occurs using xenguest-install.py on x86_64.
Basically, DHCP fails in anaconda/loader2 because libdhcp claims not to know
anything about eth0.
The error messages are:
INFO : sending dhcp request through device eth0
DEBUG : waiting for link eth0...
DEBUG : 5 seconds.
WARNING : no network link detected on eth0
ERROR : nic_by_name: no interface named eth0 found
CRITICAL: dhcp_nic: net_get_by_name(eth0) failed
DEBUG : dhcp: DHCP configuration failed
The problem is that nic_get_links() doesn't find eth0 in the first bunch of
nlmsgs returned from nl_recv() ... we need to keep reading messages until we get
It seems to crop up here only because eth0 is initialized after lo, vif0.[0-7],
veth[0-7], sit0 etc.
Attaching a rough patch that fixes it for me
Created attachment 131707 [details]
This problem also affects i386. Applying this patched fixed the issue for me.
Patch applied to CVS, will be in libdhcp-1.7. Thanks.
*** Bug 196739 has been marked as a duplicate of this bug. ***