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] Multiple NICs on guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Multiple NICs on guest
From: yashwanth <yashwanth.reddy@xxxxxxxxxxx>
Date: Fri, 15 Feb 2008 17:14:16 +0530
Delivery-date: Fri, 15 Feb 2008 03:36:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: TCS
Reply-to: yashwanth.reddy@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,
    
   I have installed xen, kernel-xen , virt-manager and rebooted on xen
kernel.When I do an ifconfig I get details of eth0,eth1,eth2 ,lo and
virbr0.
   I have three nics on my host machine.just wanted to emulate three nic
cards on guest also.

brctl show : 
bridge name     bridge id               STP enabled     interfaces
eth0            8000.000000000000       no              peth0
virbr0          8000.000000000000       yes



for emulating three nics on guest i made changes
to /etc/xen/xend-config.sxp.

in xend-config.sxp file i have just commented out (vif-script
vif-bridge) and added a line (vif-script vif-custom).

vif-custom script is as follows:

#!/bin/bash

dom=`xenstore-ls|grep -v 0|grep domid|cut -d '"' -f 2`

/etc/xen/scripts/vif-bridge $1 vif=xvif${dom}.0 mac="xx:xx:xx:xx"
bridge=eth0 
/etc/xen/scripts/vif-bridge $1 vif=xvif${dom}.1 mac="xx:xx:xx:xx"
bridge=eth0
/etc/xen/scripts/vif-bridge $1 vif=xvif${dom}.2 mac="xx:xx:xx:xx"
bridge=eth0

if i try to create a guest using virt-manager .it gives an error as
"Error:Device 0 (vif) could not be connected. Hotplug scripts not
working."

Please let me know how to proceed..

thanks
yashwanth



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

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