[libvirt-users] dnsmasq not started when no dhcp enabled ?

Hello everybody, i've defined a simple network, with no dhcp. I'd like to use dnsmasq only as a dns server. $ virsh net-dumpxml basicswitch <network> <name>basicswitch</name> <uuid>60f491d2-d6c4-6b57-8a50-081cace8dedc</uuid> <forward mode='nat'/> <bridge name='virbr1' stp='on' delay='0' /> <ip address='192.168.100.1' netmask='255.255.255.0'> </ip> </network> I start it : $ virsh net-start basicswitch Network basicswitch started $ virsh net-list Name State Autostart ----------------------------------------- basicswitch active no But i see no dnsmasq process : $ ps fax|grep dnsmas[q] Here the output of "virsh version" : $ virsh version Compiled against library: libvir 0.8.8 Using library: libvir 0.8.8 Using API: QEMU 0.8.8 Running hypervisor: QEMU 0.12.5 What is funny is that the dnsmasq process is created on another box with different version : $ virsh version Compiled against library: libvir 0.8.3 Using library: libvir 0.8.3 Using API: QEMU 0.8.3 Running hypervisor: QEMU 0.12.5 $ ps fax|grep dnsmas[q] 7104 ? S 0:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/basicswitch.pid --conf-file= --listen-address 192.168.100.1 --except-interface lo Any advice on it ? Regards, Jean-Baptiste

On 03/08/2011 09:21 PM, jbd wrote:
....
Just updated my working box (Compiled against library: libvir 0.8.3, Using library: libvir 0.8.3, Using API: QEMU 0.8.3) to a new libvirt (Compiled against library: libvir 0.8.8, Using library: libvir 0.8.8, Using API: QEMU 0.8.8) and dnsmasq is not launched anymore. It looks like a regression. Did i miss something in the changelog or the documentation ? Jean-Baptiste

On 03/08/2011 03:21 PM, jbd wrote:
Hello everybody,
i've defined a simple network, with no dhcp. I'd like to use dnsmasq only as a dns server.
$ virsh net-dumpxml basicswitch <network> <name>basicswitch</name> <uuid>60f491d2-d6c4-6b57-8a50-081cace8dedc</uuid> <forward mode='nat'/> <bridge name='virbr1' stp='on' delay='0' /> <ip address='192.168.100.1' netmask='255.255.255.0'> </ip> </network>
I start it :
$ virsh net-start basicswitch Network basicswitch started
$ virsh net-list Name State Autostart ----------------------------------------- basicswitch active no
But i see no dnsmasq process :
$ ps fax|grep dnsmas[q]
Here the output of "virsh version" :
$ virsh version Compiled against library: libvir 0.8.8 Using library: libvir 0.8.8 Using API: QEMU 0.8.8 Running hypervisor: QEMU 0.12.5
What is funny is that the dnsmasq process is created on another box with different version :
$ virsh version Compiled against library: libvir 0.8.3 Using library: libvir 0.8.3 Using API: QEMU 0.8.3 Running hypervisor: QEMU 0.12.5
$ ps fax|grep dnsmas[q] 7104 ? S 0:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/basicswitch.pid --conf-file= --listen-address 192.168.100.1 --except-interface lo
Any advice on it ?
Sigh. Yes, there was a regression when I added IPv6 support for virtual networks. I pushed a fix last night. Thanks for the report! https://www.redhat.com/archives/libvir-list/2011-March/msg00584.html commit 7892edc9cc45e4fb1079b627bda3f571ac27041f Author: Laine Stump <laine@laine.org> Date: Fri Mar 11 11:47:58 2011 -0500 network driver: Start dnsmasq even if no dhcp ranges/hosts are specified.
participants (2)
-
jbd
-
Laine Stump