[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re: xen is causing network problems to Dom0 - bridge problem?


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Marco Strullato" <marco.strullato@xxxxxxxxx>
  • Date: Wed, 3 Oct 2007 16:43:56 +0200
  • Delivery-date: Wed, 03 Oct 2007 07:44:48 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jiF7OqxWDjqRQL8j8z8stXedB0b74ESYCB4LyOV7Q98sikcyTk1hwUPQsIkOGKWtYhUlEeJc0xBPyXA4GZw4FxFYaCkJ5nco0ZEYfLbw/I82bgAexMkD0wRslkd+CjT0xRKvfPjQvbLwynBt7gVFlTTTMe12acwVw81Qx/ZEEUc=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Solved: I deleted the directory /var/lib/xend/state and reboot. The problem was due to a dirty configuration present into that directory

2007/10/3, Marco Strullato < marco.strullato@xxxxxxxxx>:
Hi all!
xen is causing network problems to Dom0.

I'll explain what happens during boot:
-network interface module is loaded correctly
-network starts correctly and it gets an ip from dhcp
-xend starts and make Dom0 offline.

/etc/xen/xend-config.sxp is:
(xend-unix-server yes)
(xend-unix-path /var/lib/xend/xend-socket)
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(network-script network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 256)
(dom0-cpus 0)
(vncpasswd '')

I think the problem is due to /etc/xen/scripts/network-bridge: I think the script has some problem and it does not complete the bridge creation.
If I boot Dom0 without starting xend. I get eth0 and lo running
If I boot Dom0 starting network and xend I get lo, tmpbridge and virbr0 interfaces: eth0 is missing and there are other devices that appears to be temporary devices.
If I boot Dom0 starting only network and I execute /etc/xen/scripts/network-bridge start I get eth0, lo, peth0: so it appears that the script is running fine.
if I boot Dom0 starting network, executing the script tc/xen/scripts/network-bridge start and then service xend start I get eth0, lo, peth0, tmpbridge and virbr0: xen runs well however ther are tmpbridge and virbr0 devices.
if I boot Dom0 starting network, executing the script /etc/xen/scripts/network-bridge start, executing service xend start and xm create <DomainU> I get eth0, lo, peth0, tmpbridge, virbr0 and vif1.0.

I changed the log level to debug and I wrote some set -x in the right place: I get

Xend started at Wed Oct  3 15:18:20 2007.
device eth0 already exists; can't create bridge with the same name
set hello timer failed: No such file or directory
set forward delay failed: No such file or directory
set stp status failed: No such file or directory
++ set -e
+ . /etc/xen/scripts/xen-network-common.sh
++ set -x
++ '[' -e /etc/SuSE-release ']'
++ which ifup
+ findCommand start
+ for arg in '"$@"'
+ expr index start =
+ command=start
+ return
+ evalVariables start
+ for arg in '"$@"'
+ expr index start = '>' 1
++ ip route list
++ awk '/^default / { print $NF }'
++ sed 's/.* dev //'
+ netdev=eth0
+ bridge=eth0
+ antispoof=no
+ pdev=peth0
+ tdev=tmpbridge
+ case "$command" in
+ op_start
+ set -x
+ '[' eth0 = null ']'
+ link_exists peth0
+ ip link show peth0
+ return 1
+ create_bridge tmpbridge
+ local bridge=tmpbridge
+ '[' '!' -e /sys/class/net/tmpbridge/bridge ']'
+ preiftransfer eth0
+ true
+ transfer_addrs eth0 tmpbridge
+ local src="">+ local dst=tmpbridge
+ ip addr show dev tmpbridge
+ egrep -q '^ *inet '
+ ip addr show dev eth0
+ egrep '^ *inet '
+ sed -e '
s/inet/ip addr add/
s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/[0-9]\+\)@\1@
s/eth0/dev tmpbridge/
'
+ sh -e
+ ip route list
+ sed -ne '
/dev tmpbridge\( \|$\)/ {
  s/^/ip route del /
  p
}'
+ sh -e
+ ifdown eth0
+ ip link set eth0 name peth0
+ ip link set tmpbridge name eth0
SIOCSIFNAME: Device or resource busy





What do you think?
Did you have the same problem?

Thanks



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.