[libvirt-users] DHCP logging settings

Daniel P. Berrange berrange at redhat.com
Wed Sep 13 17:35:50 UTC 2017

On Wed, Sep 13, 2017 at 12:59:57PM -0400, Laine Stump wrote:
> On 09/04/2017 09:17 PM, Shannon wrote:
> > I find that libvirt clogs up syslog with trivial DHCP notifications. I
> > know how to configure alternate logging with dnsmasq directly via
> > 'log-facility' and/or 'quiet-dhcp' options
> (Unfortunately there isn't currently any knob you can easily turn to
> reduce dnsmasq's logs)
> Interesting. A long time ago I was annoyed by all the logging produced
> by dnsmasq and searched the standard/sample dnsmasq.conf for an option
> to reduce the logging, but all I saw were options to *increase* it! I
> guess I didn't look far enough.
> It would be nice for libvirt to take advantage of this, but since the
> logging levels of other parts of libvirt are handled in libvirtd.conf
> and qemu.conf, maybe it would be better to add the option there rather
> than making it a part of the config for each network. (on the other
> hand, it might be nice to be able to have more verbose logs for some
> networks than for others).
> Does anyone have an opinion about this? Maybe we could have a
> "dhcp_quiet" option in libvirtd.conf? (alternately I guess we could a
> <log> element to networks, but that would require something sufficiently
> generic that it would also be useful if someone decided to, e.g., write
> a network driver that used the ISC dhcpd instead of dnsmasq).

NB it would want to be in /etc/libvirt/network.conf, since this would
be specific to the network driver.  It seems reasonable to add such
a thing.

|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

More information about the libvirt-users mailing list