Michael DeHaan wrote:
> Alan Pevec wrote:
>> Michael DeHaan wrote:
>>   
>>> If you can tell me where you make that configuration change for 
>>> libvirtd, I'll update the troubleshooting example.
>>>     
>> libvirtd does the correct thing (listens only on its private i/f), it's dhcp 
>> server used by Cobbler which needs to change the config and not listen 
>> everywhere
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>   
> Do you have an example of the config file change you want to see in 
> Cobbler's default template?
> 
> If so, I can look into applying it.
> 
> Is listening "everywhere" but not locally expressable?
> 
> --Michael
> 
dnsmasq for libvirtd is hardcoded (in libvirtd itself) to use values
configured in xml files stored in /etc/libvirt/qemu/networks/. Default
network configuration file is default.xml.

Current, active dnsmasq values file is read from a symlink inside
/etc/libvirt/qemu/networks/autostart/ that points to a configuration
file one level up (../).

You can see the current active dnsmasq settings in a ps list:

# ps aux | grep dnsmasq
nobody    3219  0.0  0.0   1820   744 ?        S    Sep10   0:00
/usr/sbin/dnsmasq --keep-in-foreground --strict-order --bind-interfaces
--pid-file  --conf-file  --listen-address 192.168.122.1
--except-interface lo --dhcp-leasefile=/var/lib/libvirt/dhcp-net1.leases
--dhcp-range 192.168.122.2,192.168.122.254

Problem is, if you want to use dnsmasq's full featured dhcp server, you
can't have libvirtd running as a daemon at the same time because
libvirtd already started dnsmasq in foreground with above (hardcoded +
xml config file) mentioned values.

dhcpd, on the other hand, can be modified to listen on specific
interfaces in /etc/sysconfig/dhcpd:

# cat /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=eth0

HTH.

Marcelo
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to