Hi all. I'm using automation to deploy VMs onto PVE, and I've come across a problem. In order to create a VM, I think I have to provide a VMID, for example in the API or with `qm create`. I can get the next free ID with `/cluster/nextid`, however if two processes try to build a VM at the same time, they'll fail if they both check `nextid` at the same time before they create a VM.
I need a way that's similar to how IPAM does "next free IP address" - it needs to reserve the one it returns so two things don't get the same number, or I need a way of call create that doesn't need a VMID.
I need a way that's similar to how IPAM does "next free IP address" - it needs to reserve the one it returns so two things don't get the same number, or I need a way of call create that doesn't need a VMID.