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
|