On 9/13/23 15:48, Stefan Hanreich wrote:
On 9/13/23 15:21, DERUMIER, Alexandre wrote:
Can't we have simply an infinite lease time,
and simply remove leases manually from dhcp + delete ip from ipam at vm
stop/delete ?
Wouldn't this cause problems if we remove the lease at stop?
* VM 1 gets IP X via DHCP on start
* We stop VM 1 and remove the lease for IP X from the IPAM
* VM 2 starts some time after and we reserve IP X for it
* We restart VM 1 and reserve some other IP Y, but the VM will never
send a DHCP request to our DHCP server again, since it is convinced that
it still owns IP X (since we told the VM that the IP is forever theirs).
But VM 2 now also uses IP X.
Ah sorry, DHCP leases will not persist across reboots of course. So this
could work I think.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel