[libvirt-users] libvirt/dnsmasq is not adhering to static DHCP assignments

Michal Privoznik mprivozn at redhat.com
Tue Oct 31 06:20:37 UTC 2017


On 10/31/2017 06:27 AM, Dagmawi Biru wrote:
> Hi,
> 
> It looks like that's the issue:
> # cat /var/lib/libvirt/dnsmasq/osc_mgmt.hostsfile
> 52:54:00:2c:85:92,192.168.80.1,openstack-controller-00
> 
> But it makes me wonder...libvirt should be generating and managing this
> file right? Do I need to edit this myself or should libvirt be updating
> this file? If so then why isn't it?
> 

Have you restarted the libvirt network after you've edited it?
virsh net-destroy osc_mgmt
virsh net-start osc_mgmt

The hostsfile is generated when network is started. It's the same as
editing domain XML while it is running. Changes get applied on next start.

Michal




More information about the libvirt-users mailing list