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

Re: [Xen-users] Trouble with manual bridging on Xen3/CentOS 5

  • To: Digimer <linux@xxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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
> --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
ip link


Kindest regards,
Giam Teck Choon

Xen-users mailing list



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