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

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

To: "Fajar A. Nugraha" <list@xxxxxxxxx>
Subject: Solved: Re: [Xen-users] Trouble with manual bridging on Xen3/CentOS 5
From: Digimer <linux@xxxxxxxxxxx>
Date: Sat, 30 Apr 2011 17:13:49 -0400
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 30 Apr 2011 14:15:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTimYqBER_G-EXDRt84Hxk7fdQuTmiQ@xxxxxxxxxxxxxx>
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> <BANLkTimYqBER_G-EXDRt84Hxk7fdQuTmiQ@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10
On 04/30/2011 02:41 AM, Fajar A. Nugraha wrote:
> On Sat, Apr 30, 2011 at 5: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.
> 
> Did you restart the dom0?

Yup. :)

>> # 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
> 
> Do you have xenbr0 and xenbr2 bridge?

Yup.

>> 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
> 
> The message should be clear. Is xend running? Is it listening on port
> 8000 (try "netstat -anp")?
> 
>>  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.
> 
> Duh :P
> 
> That's part of the reason why I asked "did you restart the dom0".
> "service network restart" does not necessarily do what you think it
> should do (for example, it determines what interface to take up/down
> based on config file, not what interface is actually up).

Ya... I've long gotten into the habit of rebooting my test nodes
whenever I played with Xen's networking for just this reason.

>>  So, if I manually build the bridges, how am I supposed to configure
>> Xen to use them?
> 
> I simply modify Xen config file (/etc/xen/*) to use the bridge I
> created (on vif line).

I finally got this sorted out, and here is the new patch and comments on
what was needed to make it work:

https://bugzilla.redhat.com/show_bug.cgi?id=697021#c11

Thanks for the reply!

-- 
Digimer
E-Mail: digimer@xxxxxxxxxxx
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org

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