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

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

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


PS: My modified network-bridge:

dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=2 netdev=eth2 bridge=xenbr2

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

Xen-users mailing list



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