[Pkg-libvirt-maintainers] Bug#615907: virt-manager: Fails to create networks

Michael Goetze mgoetze at mgoetze.net
Mon Feb 28 22:42:51 UTC 2011


Package: virt-manager
Version: 0.8.4-8
Severity: important

In the host details of "localhost (QEMU)", I tried to create a new
virtual network. I set it to be isolated with no DHCP. In the dialog box
"Ready to create network", I get the following traceback every time I
click on "finish":

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createnet.py", line 349, in
finish
    self.conn.create_network(xml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 730, in
create_network
    net.create()
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 866, in create
    if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: internal error '/sbin/iptables --table filter --delete
INPUT --in-interface virbr1 --protocol udp --destination-port 69 --jump
ACCEPT' exited with non-zero status 1 and signal 0: iptables: Bad rule
(does a matching rule exist in that chain?).


I have no idea why libvirt tries to delete this rule, but whatever, I
created it. When I click on "finish" again, I get:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createnet.py", line 349, in
finish
    self.conn.create_network(xml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 730, in
create_network
    net.create()
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 866, in create
    if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: internal error 'dnsmasq --strict-order --bind-interfaces
--pid-file=/var/run/libvirt/network/mgmt.pid --conf-file=
--listen-address 172.25.5.1 --except-interface lo' exited with non-zero
status 2 and signal 0:
dnsmasq: failed to bind listening socket for 172.25.5.1: Address already
in use


So I stop my dnsmasq listening on 0.0.0.0, add that iptables rule
*again*, and then the network is finally created. I have no idea why
libvirt wants to start dnsmasq for a network without DHCP.

Anyway, this finally gets me a new network, but this is very ugly.





More information about the Pkg-libvirt-maintainers mailing list