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] RE: adding a second NIC

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] RE: adding a second NIC
From: "Joseph L. Casale" <jcasale@xxxxxxxxxxxxxxxxx>
Date: Mon, 21 Apr 2008 14:20:07 -0600
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Mon, 21 Apr 2008 13:23:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BBA1FC0A5568C646A0B3E4B0BFC1011801727F8E@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <BBA1FC0A5568C646A0B3E4B0BFC1011801727F8E@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acij63zUDNK/JMRkSmm+fHxljWMo+wAAZpC5
Thread-topic: adding a second NIC
>Can someone point me to information or assist me with the process of how to 
>add new NICs to existing xen >guests?

Somone just helped me here. You need to make a wrapper for the existing scripts.
Make a new file called my-network-bridge

#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1
"$dir/network-bridge" "$@" vifnum=2 netdev=eth2 bridge=xenbr2

Change the names to what is applicablke for your version of xen.

Open the config.sxp and point it to the new script, this one calls that old 
one. I think you need to make this script executable.

jlc

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