Bug 1470229

Summary: [Feature Request] Add keyword(s) in network XML format to specify DHCP options
Product: [Community] Virtualization Tools Reporter: jean-christophe manciot <actionmystique>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, libvirt-maint, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-12 18:13:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jean-christophe manciot 2017-07-12 14:37:13 UTC
Description of problem:
----------------------
There is one dnsmasq configuration file per network in /var/lib/libvirt/dnsmasq, bypassing the global dnsmasq config file located in /etc/dnsmasq.conf. 

The latter allows the definition of any DHCP option to be sent to the querying client(s), such as boot file name, TFTP server address, and so on...
These options can be sent according to specific tags and client-ids.

Unless I'm missing something (maybe the wiki is not up-to-date or does not go deep enough at https://libvirt.org/formatnetwork.html), the last libvirt version (3.5.0) does not offer those possibilities.

Comment 1 jean-christophe manciot 2017-07-12 14:44:25 UTC
In /etc/dnsmasq.conf, the corresponding keywords are:
- dhcp-host which can be used to set a tag per client-id
- dhcp-option to define a requested option for clients matching a tag
- dhcp-option-force to send a non-requested option for clients matching a tag

Comment 2 Cole Robinson 2017-07-12 18:13:50 UTC

*** This bug has been marked as a duplicate of bug 824573 ***