Summary: | app-emulation/xen-tools-3.3.0 does not bring eth0 up | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Simon Gao <gao> |
Component: | [OLD] Server | Assignee: | Gentoo Xen Devs <xen> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | 404errorqc, dhp_gentoo, dunc, patrick |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Updated patch to /etc/xen/scripts/network-bridge to support ipv6 enabled kernels |
Description
Simon Gao
2009-02-09 22:34:31 UTC
It seems that Xen scripts can't handle network interfaces correctly when IPv6 is enabled in the kernel or loaded as module. Disable IPv6 protocol from kernel the problem went away. xen-tools version 3.2.1 or earlier does not have this problem. Disabling IPv6 isn't really a solution. I want IPv6! ;-) I've just tweaked the file ever so slightly, to grep for 'inet ' instead of 'inet' and it seems to work OK for me. Here's the diff:- dunc@(none) ~ $ diff -u /etc/xen/scripts/network-bridge.orig /etc/xen/scripts/network-bridge --- /etc/xen/scripts/network-bridge.orig 2009-04-30 17:12:18.000000000 +0100 +++ /etc/xen/scripts/network-bridge 2009-04-30 17:12:46.000000000 +0100 @@ -101,7 +101,7 @@ tdev=tmpbridge get_ip_info() { - addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e "s/$1//"` + addr_pfx=`ip addr show dev $1 | egrep '^ *inet ' | sed -e 's/ *inet //' -e "s/$1//"` gateway=`ip route show dev $1 | fgrep default | sed 's/default via //'` } Anyone else want to try this too? I'll send it to the xen-users list too. Seems the guys at xen already know and have done a different patch. Probably should add this to portage http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1142 Cheers, Dunc Would be nice =) I was the one who filed that bug report 9 months ago and was pretty shocked just now when I discovered it still hadn't been put into xen or portage.... (In reply to comment #3) > Seems the guys at xen already know and have done a different patch. > > Probably should add this to portage > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1142 > > Cheers, > > Dunc > Sigh. xen build system is making me sad. The patch cleanly applies to 3.4.0 (with adapted path to tools/hotplug/Linux), but the installed file is unpatched - looks like it gets overwritten during compilation. If anyone feel like debugging this please feel free, would be nice to have this fixed :) xen-tools-3.4.0-network-bridge-broadcast.patch is wrong! It's missing a whitespace in the egrep pattern ... so patch the patch or whatever ;-) # diff -u xen-tools-3.4.0-network-bridge-broadcast.patch.orig xen-tools-3.4.0-network-bridge-broadcast.patch --- xen-tools-3.4.0-network-bridge-broadcast.patch.orig 2009-07-04 09:17:19.440852258 +0200 +++ xen-tools-3.4.0-network-bridge-broadcast.patch 2009-07-04 09:15:04.840855157 +0200 @@ -5,7 +5,7 @@ get_ip_info() { - addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e 's/ .*//'` -+ addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e "s/$1//"` ++ addr_pfx=`ip addr show dev $1 | egrep '^ *inet ' | sed -e 's/ *inet //' -e "s/$1//"` gateway=`ip route show dev $1 | fgrep default | sed 's/default via //'` } Please fix this! It's very annoying to have a bug caused by a single whitespace. Thanks. (In reply to comment #5) > Sigh. xen build system is making me sad. > The patch cleanly applies to 3.4.0 (with adapted path to tools/hotplug/Linux), > but the installed file is unpatched - looks like it gets overwritten during > compilation. If anyone feel like debugging this please feel free, would be nice > to have this fixed :) > Still got the bug with 3.4.2 . If i ping the bog during boot, only 5 querries got answers: as xend started, eth0 stops working. My WA is to put "ifconfig eth0 192.168.x.y && route add default gw 192.168.x.1" in conf.d/local.start . I also got the message error: either "local" is duplicate, or "inet6" is a garbage in console at boot time, and ipv6 in kernel. Fresh install. The fix seems trivial; why don't Gentoo put a patch in portage ? Created attachment 221749 [details, diff]
Updated patch to /etc/xen/scripts/network-bridge to support ipv6 enabled kernels
This patch implements the fix described in comments 2 and 6, which resolved the same issue on my machine (newly built with xen-tools 3.4.2). It has not been tested with any other machine or configuration.
I had the same problem and adding the whitespace fixed it. app-emulation/xen-3.4.2-r1 / app-emulation/xen-tools-3.4.2 + 07 Apr 2010; Patrick Lauer <patrick@gentoo.org> + files/xen-tools-3.4.0-network-bridge-broadcast.patch: + Fixing xen-tools-3.4.0-network-bridge-broadcast.patch for #258378 Sorry for the delay, I'm a bad maintainer :) Could you push the patch on app-emulation/xen-tools-3.4.2 ? it also bugs since ages. |