WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] xend: Do not mess with bridge if admin has set o

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xend: Do not mess with bridge if admin has set one up already
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 16 Jun 2010 09:39:51 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 16 Jun 2010 01:40:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1276676608.19091.12024.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsNLVTxTSOMF4/3T2q0e7HggTMBKgAAida0
Thread-topic: [Xen-devel] [PATCH] xend: Do not mess with bridge if admin has set one up already
User-agent: Microsoft-Entourage/12.24.0.100205
On 16/06/2010 09:23, "Ian Campbell" <Ian.Campbell@xxxxxxxxxx> wrote:

> On Mon, 2010-06-14 at 16:07 +0100, Ian Jackson wrote:
>> Previously, the default "network-script",
>> /etc/xen/scripts/network-bridge, would attempt to do its horrid work
>> even if you had already set everything up in /etc/network/interfaces.
> 
> I like it. One of the first patches I apply to any newly cloned Xen tree
> is:

I wonder should we supply any init/hotplug/udev scripts at all?

 -- Keir

> diff -r 2d74cb5f973f -r ed212583c51b tools/examples/xend-config.sxp
> --- a/tools/examples/xend-config.sxp Thu Jun 10 10:19:26 2010 +0100
> +++ b/tools/examples/xend-config.sxp Fri Jun 11 11:01:02 2010 +0100
> @@ -154,7 +154,7 @@
>  # two fake interfaces per guest domain.  To do things like this, write
>  # yourself a wrapper script, and call network-bridge from it, as appropriate.
>  #
> -(network-script network-bridge)
> +#(network-script network-bridge)
>  
>  # The script used to control virtual interfaces.  This can be overridden on a
>  # per-vif basis when creating a domain or a configuring a new vif.  The
> 
> Which is slightly more aggressive.
> 
>> Setting up your bridge in /etc/network/interfaces is:
>>  * easy
> 
> FWIW I typically use a stanza like:
>         iface xenbr0 inet dhcp
>                 bridge_ports eth0
>                 bridge_stp off
>                 bridge_waitport 0
>                 bridge_fd 0
>                 bridge_maxwait 0
>         
> I think only bridge_ports is strictly required but the others are
> useful. As you note in the patch the bridge-utils-interfaces(5) manpage
> describes the available settings.
> 
> Ian.
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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