Comment 24 for bug 231060

Revision history for this message
Thomas Hood (jdthood) wrote :

@Serge: I was just going by what I read in comment #1 where vnet0 was named.

You are right. Adding --bind-interfaces and --exclude-interface=virbr0 allows both the general dnsmasq and the libvirt-bin dnsmasq to start.

Without --bind-interfaces and --exclude-interface=virbr0:

    dnsmasq[5279]: failed to create listening socket for 192.168.122.1: Address already in use
    dnsmasq[5279]: FAILED to start up

With --bind-interfaces and --exclude-interface=virbr0:

    dnsmasq[5737]: started, version 2.59 cachesize 150
    dnsmasq[5737]: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP conntrack IDN
    dnsmasq-dhcp[5737]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h
    dnsmasq[5737]: reading /etc/resolv.conf
    dnsmasq[5737]: using nameserver 127.0.0.1#53
    dnsmasq[5737]: read /etc/hosts - 7 addresses

$ ps -elf|grep dnsmasq
5 S dnsmasq 5441 1 0 80 0 - 8253 poll_s 14:02 ? 00:00:00 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --bind-interfaces --except-interface=virbr0
5 S 117 5737 1 0 80 0 - 6491 poll_s 14:03 ? 00:00:00 /usr/sbin/dnsmasq -u libvirt-dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override