[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Multiple NICs on guest



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.