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

RE: [Xen-users] Dedicate Nic's to DomU's

To: Hans Pfeil <HPfeil@xxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Dedicate Nic's to DomU's
From: "Joseph L. Casale" <JCasale@xxxxxxxxxxxxxxxxx>
Date: Fri, 06 Jun 2008 11:31:53 -0600
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Fri, 06 Jun 2008 10:32:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <484912AD.6010.00BD.0@xxxxxxx>
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: <484912AD.6010.00BD.0@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjH6uLHq3Sgu3G9QISQKCNCSXTrCQADlUM2
Thread-topic: [Xen-users] Dedicate Nic's to DomU's
>Don't happen to have an example of all this stuff do you?  This way I could 
>just copy it over to my side.  >Thanks.
>
>-Hans

I can provide you with the files I use, but without a minimal understanding of 
it, you'll be
hard pressed to make it work for your environment anyway.

I must suggest a good book I am just wrapping it up. One of the list members, 
Todd Deshane
has co-authored *the* most excellent book on Xen, Running Xen. It not only 
details everything
you need to know to run xen, it walks you through everything step by step to do 
things correctly
and it does this most thoroughly! You will be very comfortable running xen 
after this book!

I am running 3.2.0 on this host, so the bridge names are identical to the 
original eth names.
That most certainly could be different from your version, check your docs.

You need to edit /etc/xen/xend-config.sxp
-Locate the line: (network-script network-bridge)
-Make it say something like: (network-script multi-network-bridge)
-Now create a script in /etc/xen/scripts called multi-network-bridge

# cat /etc/xen/scripts/multi-network-bridge
#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=eth0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=eth1
.
.
.
"$dir/network-bridge" "$@" vifnum=n netdev=ethn bridge=ethn

Now you edit the config for your guests, usually located in /etc/xen but you can
the docs for your distro or follow one of many tutorials available.
-You will see, or need to add a line:
vif = [ 'bridge=eth0, mac=00:16:3E:77:A5:D6', ]
-This will create one nic in the guest, and add it to the bridge named eth0 
which
contains the original eth0 physical nic in the xen server.

Good luck,
jlc

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