Libvirtd and dnsmasq

From Libvirt Wiki
Revision as of 11:29, 25 November 2010 by ChrisBoyle (talk | contribs) (De-spam)
Jump to: navigation, search

Running your own dnsmasq with libvirtd

On linux host servers, libvirtd uses dnsmasq to service the virtual networks, such as the default network. A new instance of dnsmasq is started for each virtual network, only accessible to guests in that specific network.

If you are running your own "global" dnsmasq, then this can cause your own dnsmasq to fail to start (or for libvirtd to fail to start its dnsmasq and the given virtual network). This happens because both instances of dnsmasq might try to bind to the same port number on the same network interfaces.

You have to change the global <code>/etc/dnsmasq.conf</code> as follows:

<i>Either:</i>

interface=eth0

<i>or:</i>

listen-address=192.168.0.1

(Replace interface or listen-address with the interface(s) or address(es) you want your global dnsmasq to answer queries on).

<i>And</i> uncomment this line to tell dnsmasq to only bind specific interfaces, not try to bind all interfaces:

bind-interfaces