Is it thread-safe to create VMs?

Lotan81

New Member
Dec 6, 2022
8
0
1
Hi, we are looking for a safe way to create VMs via API calls.
Is it thread-safe to create VMs this way? (for example, can the storage assigned to one VM also be assigned to another VM?)
 
in a cluster, creation api calls are guarded against name clashes with locks (so you can create multiple vms in parallel, with different ids)
the storage plugins also handle these, and the namespace for disks are different per vm

so yes, this should work
 
  • Like
Reactions: Lotan81
in a cluster, creation api calls are guarded against name clashes with locks (so you can create multiple vms in parallel, with different ids)
the storage plugins also handle these, and the namespace for disks are different per vm

so yes, this should work
Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!