Bug 115309 - No network in dom0
Summary: No network in dom0
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Beta 4 Plus
Hardware: Other All
: P5 - None : Major
Target Milestone: ---
Assignee: Kurt Garloff
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 13:30 UTC by Mihnea Istinie
Modified: 2006-01-17 11:24 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
/var/log/messages (517.25 KB, text/plain)
2005-09-05 13:31 UTC, Mihnea Istinie
Details
/var/log/mxen (8.70 KB, text/x-log)
2005-09-05 13:32 UTC, Mihnea Istinie
Details
hwinfo (238.69 KB, text/x-log)
2005-09-05 14:27 UTC, Mihnea Istinie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihnea Istinie 2005-09-05 13:30:12 UTC
Installed Beta4plus and booted dom0.
went fine, but in the booted dom0 I had no IP provided by DHCP. (default works
fine, so I suppose it should work also when booting dom0)

I attach messages (after line 4931 should be the section where I booted xen) and
the xend log.

The machine is a 32 bit laptop. hwinfo will be also attached.
Comment 1 Mihnea Istinie 2005-09-05 13:31:54 UTC
Created attachment 48803 [details]
/var/log/messages
Comment 2 Mihnea Istinie 2005-09-05 13:32:18 UTC
Created attachment 48804 [details]
/var/log/mxen
Comment 3 Mihnea Istinie 2005-09-05 13:32:59 UTC
last entry was a typo. the file is /var/log/xend.log
Comment 4 Mihnea Istinie 2005-09-05 13:46:20 UTC
sorry, I can't attach a hwinfo at the moment, my machine reboots or hangs during
hwinfo :-/
Comment 5 Mihnea Istinie 2005-09-05 14:27:17 UTC
Created attachment 48813 [details]
hwinfo

managed to get a hwinfo...
Comment 6 Kurt Garloff 2005-09-05 21:08:10 UTC
Micha, do you have SUSEfirewall2 active and use bridging?  
What the SFW2 output in syslog ...  
But I don't see anything in your syslog that points to SFW2 :-( 
But you may not have logging enabled. 
  
Here's what I did to make it work with SFW2: 
FW_DEV_DMZ="eth0 xenbr0 vif0.0"  
and I specifically put a rule into the -custom script:  
FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"  
fw_custom_before_masq() {  
    iptables -A forward_dmz -j ACCEPT -i xenbr0 -o xenbr0  
}  
  
The latter can probably be done by some setting in the normal config file, 
but I find reading plain iptables syntax easier ... 
 
And you need /proc/sys/net/ipv4/ip_forward enabled (aka FW_ROUTE="yes" 
aka IP_FORWARD="yes" in sysctl aka proc.sys.net.ipv4.ip_forward=1 in 
sysctl.conf). 
 
When xend starts in bridge mode, it does a couple of strange things: 
* ifdown eth0 
* Rename eth0 -> peth0 
* Copy MAC address from peth0 to veth0 
* Set peth to NOARP and it's MAC address for fe:ff:ff:ff:ff:ff 
* Rename veth0 to eth0 
* ifup eth0 (with the old eth0 config) 
* Create bridge xenbr0 and enslave vif0.0 and peth0 to xenbr0 
 
The ifup only works due to the fact that the virtual veth0 somehow 
shadows the real eth0, so it may answer the ARP requests and everything 
else. I actually spent most of today trying to figure out how bridged 
networking is supposed to work. 
 
An alternative might be to set  
(network-script     network-route) 
(vif-script         vif-route) 
in xend-config.sxp and use routing rather than bridging. It's easier to 
understand. 
Unfortunately routing makes migration somewhat harder. 
Comment 7 Gerd Hoffmann 2005-09-08 08:45:09 UTC
What happens if you run "ifdown eth0; ifup eth0" after "xend start"?  Any error
messages if you try that?

Whats the network status of the machine?  Please append "brctl show" and "ip
addr ls" and "route -n" output.

"veth0/vif0.0" is the virtual network interface for domain 0, it's kida like a
two-end loopback interface.  Packages dropped into vif0.0 appear on veth0 and
visa versa.  vif0.0 is supposed to be added to xen-br0 like the other vif?.?
interfaces for the xen domains.  Domain0 uses veth0 to talk to the network via
xen-br0.  The physical interface is added to xen-br0 as well to connect all xen
domains (including dom0) to the outside world.

The intention of the interface renaming logic (eth0 => peth0, veth0 => eth0) is
to use the normal distributions way to configure network interfaces, by doing
"ifdown eth0; <create bridge setup here>; ifup eth0", hoping that this gets
corner cases like dhcp correct where the old xen2 approach of copying IP
addresses from one interface to another would simply fail.  This seems not to
work for some reason ...

I think the _real_ solution to that issue would be to have bridge setup support
in the network setup scripts, so xend wouldn't have to do tricks like this in
the first place.
Comment 8 Kurt Garloff 2005-12-20 21:46:09 UTC
The network setup scripts are much improved in the 10.0 update packages.
Could you please check whether everything works now?
Comment 9 Mihnea Istinie 2006-01-17 11:24:05 UTC
seems to be fixed on SLES10 P4 (tested on i386)