Re: Virtual network fails to start: dnsmasq: failed to create listening socket for 192.168.122.1: Address already in use
On Tue, 14 Jan 2025 14:22:57 -0500
debian@kcburns.com wrote:
> Whenever I restart dnsmasq (including a system restart), I have to
> start with a new (empty) DHCP leases file. Your DHCP leases file is
> specified in your dnsmasq configuration file (*.conf).
>
> Your config file appears to be /var/lib/libvirt/dnsmasq/default.conf
>
> Your DHCP leases file appears to be
>
Thanks, Ken.
You are correct on the config file.
Unfortunately /usr/lib/libvirt/libvirt_leaseshelper is an ELF compiled
executable. It has no man page. I hesitate to just up and run it. If
dnsmasq has a leases file anywhere, I haven't found it.
This may be because dnsmasq is called with --leasefile-ro, which will
"Completely suppress use of the lease database file." This requires the
dhcp-script to maintain the leases internally.
In other news, I rebooted another bookworm system, and its virtual
network came up without issue. Some comparisons are in order.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Reply to: