[libvirt-users] libvirtd & dnsmasq

libvirtd is starting dnsmasq! This is on RHEL5.5 I don't see it mentioned in /etc/init.d/libvirtd or /etc/libvirt/* or /etc/sysconfig/libvirtd 4337 ? S 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253 How can I properly disable this funcationality? (I'm running dnsmasq for other purposes on the host, and the libvirtd incantation conflicts). Thanks. -- Mark D. Foster <mark@foster.cc> http://mark.foster.cc/ | http://www.freegeekseattle.org/

On Fri, Nov 19, 2010 at 09:51:33AM -0800, Mark Foster wrote:
libvirtd is starting dnsmasq! This is on RHEL5.5
I don't see it mentioned in /etc/init.d/libvirtd or /etc/libvirt/* or /etc/sysconfig/libvirtd
4337 ? S 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253
How can I properly disable this funcationality? (I'm running dnsmasq for other purposes on the host, and the libvirtd incantation conflicts).
It's because of this: --- postinstall scriptlet (using /bin/sh): /sbin/ldconfig # We want to install the default network for initial RPM installs # or on the first upgrade from a non-network aware libvirt only. # We check this by looking to see if the daemon is already installed /sbin/chkconfig --list libvirtd 1>/dev/null 2>&1 if [ $? != 0 -a ! -f /etc/libvirt/qemu/networks/default.xml ] then UUID=`/usr/bin/uuidgen` sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \ < /usr/share/libvirt/networks/default.xml \ > /etc/libvirt/qemu/networks/default.xml ln -s ../default.xml /etc/libvirt/qemu/networks/autostart/default.xml fi /sbin/chkconfig --add libvirtd --- I put in a request to get it removed. -- James M. Leddy Technical Account Manager Red Hat Inc. work: 212-510-4119 cell: 631-891-8703

Does anyone here have any experience with using KVM/libvirt with RAID1 over IP/DRBD or other HA solution? I'm trying to figure out the hardware configuration I would need to be able to survive a failure or planned shutdown of any one unit in a virtualization cluster. KVM/libvirt makes moving running VM's from one host to another a no brainer, but I'm trying to figure out the right way to be able to take a the storage backend for maintenance without disrupting the VMs. Right now I'm thinking something like KVM + libvirt + heartbeat/corosync + pacemaker + DBRM on Ubuntu 10.04 with 3 or 4 nodes - 2 hosts, 2 storage, or 1 host, 1 host + storage, 1 storage. Any thoughts? Thanks!

On 20/11/2010, at 5:17 AM, James M Leddy wrote:
It's because of this: <snip> I put in a request to get it removed.
Hmmm, pretty sure that removing it isn't the best strategy in this instance. :) dnsmasq is kind of essential to the way libvirt uses virtual networks. Having the "default" virtual network not be created, just creates a different set of problems. If a SysAdmin creates some other virtual network on the host (a fairly standard thing to do), then dnsmasq will be started up for that instead, and we're back to the same problem of conflicting with a system install of dnsmasq. The info on the wiki page is part of the right technical solution, as it allows a system wide installation of dnsmasq to not conflict with the libvirt spawned versions. Not sure how to make it more automatic though. We should definitely document it properly in the RHEL 6.x Virtualization Guide though. Something for Laine to include in this content for the VG I reckon. :) Regards and best wishes, Justin Clift

On 20/11/2010, at 4:51 AM, Mark Foster wrote:
libvirtd is starting dnsmasq! This is on RHEL5.5
Yeah. When libvirt is installed, it creates a default NAT network for guests to use. But, it's not hard to configure a system with dnsmasq already installed, to not have it get confused by libvirt. :) There's a wiki page (very short) with the two lines to change here: http://wiki.libvirt.org/page/Libvirtd_and_dnsmasq Hope that helps. :) Regards and best wishes, Justin Clift
participants (4)
-
David Ehle
-
James M Leddy
-
Justin Clift
-
Mark Foster