> >>Do you want to allocate IPs on VM creation time, or VM start time?
> 
> I think at vm creation time, or nic hotplug/unplug.
> the ipam api is called, return free ip address, and we write somewhere in vm 
> config the ip address.
> (for nic hotplug/unplug, we need to handle ipam removal on config revert)
> 
> Like this, user can generate cloudinit if needed with the ip address, can do 
> custom firewall rules, we could generate dhcp... before starting the vm.

yes, I would do it at VM creation time (and any time we creathe a new nic 
device). 
That way we can store the allocated IP in the VM nic config.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to