On Wed, 2016-09-28 at 16:41 +0100, Daniel P. Berrange wrote:
Anyone who cares about VMs having the same IP address after resuming
from suspend *must* configure persistent DHCP mappings for their
guests.
Relying on automatic assignment will always fail in the end, may be
not immediately, may be not often, but it *will* fail at some point,
usually at the worst possible time.
I believe that setting "dhcp-authoritative" will be a major improvement
for many setups. Without it, VMs are *never* able to reacquire their
expired lease. With it, reacquiring the lease would work most of the
time (as far as I'm concerned, practically always). I reckon the
dnsmasq man page recommends it for a reason "when dnsmasq is definitely
the only DHCP server on a network".
Creating persistent DHCP entries using "virsh net-edit" is not exactly
user-friendly today. libvirt-nss is helpful, but other stuff relying on
IP address (NFS, ssh sessions, ...) would still benefit from "dhcp-
authorative".
Regards
Martin