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

Re: [Xen-users] only one NIC supported?



On Friday 03 February 2006 11:39 am, Fernando Maior wrote:

<snip>

> Hi,
> 
> This may be a wrapper script example for 4 nics on dom0, each one bridged:
> 
> ----------------->8
> #!/bin/bash
> 
> /etc/xen/scripts/network-bridge start bridge=xenbr0 netdev=eth0 vifnum=0
> /etc/xen/scripts/network-bridge start bridge=xenbr1 netdev=eth1 vifnum=1
> /etc/xen/scripts/network-bridge start bridge=xenbr2 netdev=eth2 vifnum=2
> /etc/xen/scripts/network-bridge start bridge=xenbr3 netdev=eth3 vifnum=3
> ----------------->8
> 
> Make the script be executed before starting xend, AND disable processing
> of network-bridge in xend-config.sxp.

I made this script to start just before xend and stop after xend:

#!/bin/bash

case "$1" in
    start)
        /etc/xen/scripts/network-bridge start bridge=xenbr0 netdev=eth0 vifnum=0
        /etc/xen/scripts/network-bridge start bridge=xenbr1 netdev=eth1 vifnum=1
        echo
    ;;
    stop)
        /etc/xen/scripts/network-bridge stop bridge=xenbr0 netdev=eth0 vifnum=0
        /etc/xen/scripts/network-bridge stop bridge=xenbr1 netdev=eth1 vifnum=1
        echo
    ;;
    *)
        echo "Usage: $0 [start|stop]"
    ;;
esac

The bridge is there and both NICs work in domO but only eth0 works in domU. I 
also
did put vif = [ '', '' ] in the config file for the domU:

name ="cvs"
kernel ="/boot/xen-linux-2.6.12.6-xen"
root ="/dev/sda1 ro"
memory = 64
disk = [ 
'phy:/dev/mapper/main-guest.cvs,sda1,w','phy:/dev/mapper/main-guest.cvs.swap,sda2,w'
 ]
vif = [ '', '' ]
extra="3"

..and commented out:

#(network-script network-bridge bridge=xenbr0 netdev=eth0)

..in xend-config.sxp.

What am I missing?

Regards,
David Koski
david.nospham@xxxxxxxxxxxxxxxx



_______________________________________________
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®.