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] Trouble with manual bridging on Xen3/CentOS 5

To: Digimer <linux@xxxxxxxxxxx>
Subject: Re: [Xen-users] Trouble with manual bridging on Xen3/CentOS 5
From: Teck Choon Giam <giamteckchoon@xxxxxxxxx>
Date: Sat, 30 Apr 2011 06:26:38 +0800
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 29 Apr 2011 15:28:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=utuJQiRmOZX8sAgec5XdMUkTEOHlPtmM1wwgX+Izg7k=; b=pv63pwsViLnKkYAqakJKQqVx4KTg81v+9VOdzvrtEKvdDB4SMWVNHGzlFSfe/zPQE1 OgPgfLd1x76kveQm1a+6pnyvVh5GUsVIALZOFecm8agbLSfsiE5b/gAtb02q1/0zDhe0 E80TTdHjMY5A1fP1mplpUkXOfbx8tR4jqkngM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=wAbwGjHeUbnuMVVq1CtVVNqZvtR41J1Hlal5XyphNEaw+EPQL8Xm1BaGA6xCFqrk2b UKhe+WHgb2tCoXqVD0dShH7rZ7gOMmGLt4V2u3mDDAviAyu/zvyM4Kxf3WkiIV5m4T/Y 1fv5yXeUlr6984D8YlfQHAmv5Q8e8H8ta1N7Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DBB36EA.2030202@xxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4DBB36EA.2030202@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Apr 30, 2011 at 6:08 AM, Digimer <linux@xxxxxxxxxxx> wrote:
> Hi all,
>
>  While trying to sort out/test some patches, I was told that it's best
> to create bridges manually in
> /etc/sysconfig/network-scripts/ifcfg-xenbr*. I did this, commented out
> (network-script network-bridge) and restarted the network and Xen.

Yes, using system network configuration will be better.  Which
distribution is this?  CentOS/RHEL 5?
You commented out (network-script network-bridge)?  If you are using
system network configuration to configure your bridge, have you try
the following instead of commented out?

(network-script /bin/true)

>
>  With the bridges manually in place, and no longer having 'pethX'
> devices, I tried to provision a VM and it failed with:
>
> ====
> # virt-install --connect xen --name vm0002_pppoe --ram 2048 --arch
> x86_64 --vcpus 1 --cpuset 1-7 --location http://10.255.0.1/f9/x86_64/img
> --os-type linux --os-variant rhel5.4 --disk
> path=/dev/drbd_x4_vg0/vm0002_1 --network bridge=xenbr0 --network
> bridge=xenbr2 --vnc --paravirt --debug

brctl show outout?

Is your manual ifcfg-xenbr0 a bridge to ifcfg-eth0 and ifcfg-xenbr2 a
bridge to ifcfg-eth2?
Where is your ifcfg-eth1 and ifcfg-xenbr1?  Normal network
configuration will have ifcfg-eth* in order... ...


>
> Fri, 29 Apr 2011 17:32:12 DEBUG    Requesting libvirt URI xen
> Fri, 29 Apr 2011 17:32:12 ERROR    unable to connect to
> 'localhost:8000': Connection refused
> Traceback (most recent call last):
>  File "/usr/sbin/virt-install", line 892, in ?
>    main()
>  File "/usr/sbin/virt-install", line 628, in main
>    conn = cli.getConnection(options.connect)
>  File "/usr/lib/python2.4/site-packages/virtinst/cli.py", line 126, in
> getConnection
>    conn = libvirt.open(connect)
>  File "/usr/lib64/python2.4/site-packages/libvirt.py", line 169, in open
>    if ret is None:raise libvirtError('virConnectOpen() failed')
> libvirtError: unable to connect to 'localhost:8000': Connection refused
> ====
>
>  Thinking that I still needed to use '(network-script network-bridge)',
> so I put it back (actually, a modified version I will link below). When
> I start xend after putting it back, I got such an incredible flood that
> all network communications were lost on the network. Obviously, I'm
> reluctant to randomly try things now.
>
>  So, if I manually build the bridges, how am I supposed to configure
> Xen to use them?
>
> Thanks!
>
> PS: My modified network-bridge:
>
> ====
> #!/bin/sh
> dir=$(dirname "$0")
> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
> "$dir/network-bridge" "$@" vifnum=2 netdev=eth2 bridge=xenbr2
> ====

It is hard to tell what went wrong without seeing the following outputs:

brctl show
ifconfig
ip link

Thanks.

Kindest regards,
Giam Teck Choon

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