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-users

[Xen-users] dynamically creating domU bridges

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] dynamically creating domU bridges
From: Patrick Wolfe <pwolfe@xxxxxxxxxxxxxx>
Date: Thu, 09 Feb 2006 08:51:24 -0500
Delivery-date: Thu, 09 Feb 2006 14:07:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1139492761.14440.43.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
Organization: Employease
References: <1139492761.14440.43.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I'll try again, this time with the attachment :-)

The attached patch modifies xen3's /etc/xen/scripts/vif-bridge so
you don't have to worry about where to define new bridges, just refer
to them in a domU's config file vif statement, and if the bridge
doesn't exist already, it will be added dynamically as the domU
is created.

Note:  This patch doesn't help if you intend to automatically attach any
of dom0 virtual ethernet cables (vif0.#<->veth#) to this bridge at boot
time, since the bridge will need to be defined before the dom0 vif0.#
interface can attached to it.   In those cases, what you need to do
instead is customize /etc/xen/scripts/network-bridge (or whatever file
the (network-script filename) setting in xend-config.sxp points to.

This patch only makes it easier if you want to create additional bridges
for communciation between multiple domUs, for example HA heartbeat
networks, or backend database networks.

to apply this patch:
- save this file (for example, as ~/dynamic-vif-bridge.patch)
  don't worry about editing out these comments
- change your working directory to where the xen3 scripts are located:
        cd /etc/xen/scripts
- save backup copy of unmodified vif-bridge file:
        cp vif-bridge vif-bridge.orig
- apply patch (check for any errors):
        patch -p0 < ~/dynamic-vif-bridge.patch

-- 

Patrick Wolfe

email:   pwolfe@xxxxxxxxxxxxxx

Attachment: dynamic-vif-bridge.patch
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>