Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-users

Re: [Xen-users] Multiple xen bridges

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Multiple xen bridges
From: Gémes Géza <geza@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 04 Mar 2006 18:37:32 +0100
Delivery-date: Sat, 04 Mar 2006 17:38:26 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <44092C9C.5070203@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <44092C9C.5070203@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322)
Hi

I've found the solution to my problem, changed the script to specify the
vifnums explicitly:

#!/bin/sh
# Exit if anything goes wrong.
set -e

# First arg is the operation.
OP=$1
shift

script=/etc/xen/scripts/network-bridge.xen

case ${OP} in
  start)
        $script start vifnum=0 bridge=xenbr0 netdev=eth0
        $script start vifnum=1 bridge=xenbr1 netdev=eth1
        $script start vifnum=2 bridge=xenbri netdev=dummy0
        ;;

    stop)
        $script stop vifnum=0 bridge=xenbr0 netdev=eth0
        $script stop vifnum=1 bridge=xenbr1 netdev=eth1
        $script stop vifnum=2 bridge=xenbri netdev=dummy0
        ;;

    status)
        $script status vifnum=0 bridge=xenbr0 netdev=eth0
        $script status vifnum=1 bridge=xenbr1 netdev=eth1
        $script status vifnum=2 bridge=xenbri netdev=dummy0
        ;;

    *)
       echo 'Unknown command: ' ${OP}
       echo 'Valid commands are: start, stop, status'
       exit 1
esac

In the hope that it could be useful to somebody.

Regards

Geza

>Hi everyone,
>
>With some successfull Xen3.0.1 single network interface configuration
>deployments behind, I've tried to setup a multinetwork xen host/DomUs
>following http://julien.danjou.info/xen.html. So I've diverted my
>/etc/xen/scripts/network-bridge to /etc/xen/scripts/network-bridge.xen
>and created a /etc/xen/scripts/network-bridge, with the following content:
>
>#!/bin/sh
># Exit if anything goes wrong.
>set -e
>
># First arg is the operation.
>OP=$1
>shift
>
>script=/etc/xen/scripts/network-bridge.xen
>
>case ${OP} in
>  start)
>        $script start bridge=xenbr0 netdev=eth0
>        $script start bridge=xenbr1 netdev=eth1
>        $script start bridge=xenbri netdev=dummy0
>        ;;
>
>    stop)
>        $script stop bridge=xenbr0 netdev=eth0
>        $script stop bridge=xenbr1 netdev=eth1
>        $script stop bridge=xenbri netdev=dummy0
>        ;;
>
>    *)
>       echo 'Unknown command: ' ${OP}
>       echo 'Valid commands are: start, stop'
>       exit 1
>esac
>
>(It's almost copy-paste from the aforementioned webpage)
>
>When I try to stop this new script it runs problemles, it kills the
>xenbr0 interface., but when I try to start it, it is complaining:
>Waiting for peth0 to negotiate link...
>Link veth0 is missing.
>This may be because you have reached the limit of the number of interfaces
>that the loopback driver supports.  If the loopback driver is a module, you
>may raise this limit by passing it as a parameter (nloopbacks=<N>); if the
>driver is compiled statically into the kernel, then you may set the
>parameter
>using loopback.nloopbacks=<N> on the domain 0 kernel command line.
>And then starts up only one bridge xenbr0.
>System: Xen-3.0.1, Dom0=Debian Sarge, with xen from debianbase.de kernel
>configured and compiled localy, without touching anything loopback
>related, just added drbd via module-assistant.
>
>Thanks in advance.
>
>Geza
>
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-users
>  
>


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

<Prev in Thread] Current Thread [Next in Thread>