Bug 1805998

Summary: [RFE] Pull Libvirt 5.6 dnsmasq feature into RHEL 8
Product: Red Hat Enterprise Linux 8 Reporter: Paul Gozart <pgozart>
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED ERRATA QA Contact: yalzhang <yalzhang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.1CC: dyuan, jdenemar, jloscar, lhuang, lmen, virt-maint, xuzhang
Target Milestone: rcKeywords: AutomationTriaged, FutureFeature, Triaged
Target Release: 8.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-6.0.0-17.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:53:03 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Gozart 2020-02-21 19:52:44 UTC
Description of problem:

Looking for a way to make dnsmasq config changes within a libvirt guest VM running on a RHEL 8 workstation.  The desired feature appears to be in libvirt 5.6 (https://www.libvirt.org/news.html#v5.6.0)


Version-Release number of selected component (if applicable):

8.1


RFE results:

The ability to make config changes to dnsmasq when it is running as a libvirt guest on a RHEL 8 workstation host.

Comment 8 jloscar 2020-06-18 10:15:50 UTC
The Customer is asking if this will be in a errata for RHEL 8.2?

Comment 10 yalzhang@redhat.com 2020-07-13 02:39:43 UTC
Just to confirm, is this feature request in this bug?

"network: Allow passing arbitrary options to dnsmasq

This works similarly to the existing support for passing arbitary options to QEMU, and just like that feature it comes with no support guarantees.  "

- from libvirt 5.6 news

Comment 11 yalzhang@redhat.com 2020-08-13 10:42:49 UTC
Test on libvirt-6.0.0-25.module+el8.2.1+7154+47ffd890.x86_64, the result is as expected:

1. define network with dnsmasq options:

# virsh net-dumpxml test
<network xmlns:dnsmasq='http://libvirt.org/schemas/network/dnsmasq/1.0'>
  <name>test</name>
  <uuid>1936cb80-1067-4dc8-8648-ce5f3e1efa13</uuid>
  <forward mode='nat'/>
  <bridge name='virbr2' stp='on' delay='0'/>
  <mac address='52:54:00:d9:19:80'/>
  <ip address='192.168.200.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.200.2' end='192.168.200.254'/>
    </dhcp>
  </ip>
  <ip family='ipv6' address='2001:db8:ca2:2::1' prefix='64'>
    <dhcp>
      <range start='2001:db8:ca2:2::10' end='2001:db8:ca2:2::ff'/>
    </dhcp>
  </ip>
  <dnsmasq:options>
    <dnsmasq:option value='cname=*.foo.example.com,master.example.com'/>
  </dnsmasq:options>
</network>

2. start the network the check the config files:
# virsh net-start test
Network test started

# cat /var/lib/libvirt/dnsmasq/test.conf
...
cname=*.foo.example.com,master.example.com

Comment 14 errata-xmlrpc 2020-11-04 02:53:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4676