Red Hat Bugzilla – Bug 501912
libvirt does not activate bridge if no IP address is assigned
Last modified: 2009-06-04 17:21:24 EDT
Description of problem:
I run some tests with DHCP servers (IPv4 and IPv6) in qemu KVM and therefore I need an isolated network inside. I found, that defined bridge is configured, but not activated, if no IPv4 settings are given.
Version-Release number of selected component (if applicable):
$ rpm -qa |grep virt
Steps to Reproduce:
1. Setup isolated network
# cat /etc/libvirt/qemu/networks/IPv6internal.xml
<bridge stp='on' forwardDelay='0' />
<ip address='192.168.100.1' netmask='255.255.255.0'>
<range start='192.168.100.128' end='192.168.100.254' />
2. Configure VMs to be isolated (e.g. a dhcp server and a client)
3. try to use DHCPv4 or DHCPv6
No packets seen on dhcp server
No wonder, bridge is down:
16: virbr1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 06:c3:8b:**:**:** brd ff:ff:ff:ff:ff:ff
Have to enable virbr1 manually by
# ip link set virbr1 up
Note, this does not happen on another bridge with bridge-DHCP enabled.
But it makes no sense imho to bring this virbr1 not up in case of no IP address is assigned.
Sounds like you're hitting this bug that one of the Suse devs provide a patch for a few weeks back:
Yes, looks like this would help, when I can expect a new RPM on rawhide including this patch?
Building this for F-11 and will push to updates-testing
Please try it out and add a +/- comment to the update
* Mon May 25 2009 Mark McLoughlin <firstname.lastname@example.org> - 0.6.2-11.fc11
- Bring up the bridge, even if it doesn't have an IP address (bug #501912)
libvirt-0.6.2-11.fc11 has been submitted as an update for Fedora 11.
libvirt-0.6.2-11.fc11 works now as expected, virbr is up while no IPv4 address is specified in xml - thank you for fast fix.
libvirt-0.6.2-11.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update libvirt'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-5515
libvirt-0.6.2-11.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.