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

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

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Trouble with manual bridging on Xen3/CentOS 5
From: Digimer <linux@xxxxxxxxxxx>
Date: Fri, 29 Apr 2011 18:08:42 -0400
Delivery-date: Fri, 29 Apr 2011 15:10:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9
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.

  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

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
====

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