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] two bridges with xen 3.2.0

To: Gareth Bult <gareth@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] two bridges with xen 3.2.0
From: Jordi Moles <jordi@xxxxxxxxx>
Date: Wed, 20 Feb 2008 18:36:02 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 20 Feb 2008 09:36:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <14840826.1581203527467972.JavaMail.root@zimbra>
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: <14840826.1581203527467972.JavaMail.root@zimbra>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (X11/20071031)
Hi guys,

let's see...

i've got my own script for bridges:

*******
#!/bin/sh
XENDIR="/etc/xen/scripts"

$XENDIR/network-bridge "$@" netdev=eth0 bridge=eth0 vifnum=0
$XENDIR/network-bridge "$@" netdev=eth1 bridge=eth1 vifnum=1
*******

this is my interfaces file

*********
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
       address 192.168.1.200
       netmask 255.255.255.0
       network 192.168.1.0
       broadcast 192.168.1.255
       gateway 192.168.1.231

auto eth1
iface eth1 inet static
       address 192.168.2.200
       netmask 255.255.255.0
*********

and virtual machines have this in their conf files:

************
vif = [ 'bridge=eth0', 'bridge=eth1' ]
************

so....

when i try to create the machine... i get this:

**********
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
**********

Any idea?

Thank you.

En/na Gareth Bult ha escrit:
Ok,

/etc/network/interfaces - as you like it, don't change it for xen .. and xen 
won't change it.

Here's my config;

(xend-tcp-xmlrpc-server no)
(xend-unix-xmlrpc-server yes)
(xend-api-server ((unix)))
(xend-relocation-server yes)
(xend-relocation-port 8002)
(xend-relocation-address '<my private ip>')
(xend-relocation-hosts-allow '')
(network-script my-network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)
(vncpasswd '')
(xend-http-server yes)
(xend-port 8000)
(xend-address '<my private ip>')
(xend-unix-server yes)
(xend-unix-path /var/lib/xend/xend-socket)

Note; I called my script; "my-network-bridge", everything else is "default".

hth


----- Original Message -----
step 3.: "Jordi Moles" <jordi@xxxxxxxxx>
To: "Gareth Bult" <gareth@xxxxxxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Sent: 20 February 2008 16:07:07 o'clock (GMT) Europe/London
Subject: Re: [Xen-users] two bridges with xen 3.2.0

Hi,

i'm sorry guys, i don't quite get it.

i replaced my script with this one:

***********

#!/bin/sh
XENDIR="/etc/xen/scripts"

$XENDIR/network-bridge "$@" netdev=eth0 bridge=eth0 vifnum=0
$XENDIR/network-bridge "$@" netdev=eth1 bridge=eth1 vifnum=1


***********

on the other hand....

what about /etc/xen/xend-config.sxp ? Do i have to keep the (vif-script vif-bridge) line? Do i have to use another script?

what about /etc/network/interfaces? can i use something like this?

****************
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.1.200
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.231

auto eth1
iface eth1 inet static
        address 192.168.2.200
        netmask 255.255.255.0

****************

or do i have to replace eth0 with peth0 in this file? will debian load the newtork interfaces if i change the name?

Thank you.

En/na Gareth Bult ha escrit:
Hi,

Here's my Xen3.2 script .. working 100% on multiple boxes ...

#!/bin/sh
XENDIR="/etc/xen/scripts"

$XENDIR/network-bridge "$@" netdev=eth0 bridge=eth0 vifnum=0
$XENDIR/network-bridge "$@" netdev=eth1 bridge=eth1 vifnum=1

NOTE::

The nice people at Xen changed the default bridge from Xenbr<n> to eth<n>.

New method;
a. rename device eth0 to peth0
b. create a bridge called eth0 (!!)
c. include peth0 as a device for bridge eth0

!!

Much improved method, however, the documentation stinks ..

Gareth.


----- Original Message -----
step 3.: "Jordi Moles" <jordi@xxxxxxxxx>
To: xen-users@xxxxxxxxxxxxxxxxxxx
Sent: 20 February 2008 11:50:33 o'clock (GMT) Europe/London
Subject: [Xen-users] two bridges with xen 3.2.0

hi,

i'm trying the new 3.2.0.

i've always used two bridges since 3.0.x with the following set up:

Replace

(network-script network-bridge)

with

(network-script network-bridge-both)

in file /etc/xen/xend-config.sxp

The content of network-bridge-both is

************

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

************

As i said, this used to work for 3.0.x and 3.1.x releases.....

Now, it doesn't work anymore...

when the xen loads....

there's only this in the ifconfig command:

-lo
-peth0
-peth1

What's different from the earlier releases? Thank you.

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

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



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


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