Clone multiple vms from a template at the same time (Proxmox API)


New Member
May 31, 2023
Is it possible that you can clone a vm or a template multiple times at the same time?

And if yes what parameter must i use in this python request.

HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/clone

And if no what would be the best way to achieve to clone a template or a vm multiple times? with a loop?

A code snippet would really help in both case.
No, unfortunately it's not possible.

You could allways write a simple bash script like
for i in "${@:2}"
    qm clone $1 $i

then you could clone like
./ <original_vmid> <copy_id_1> <copy_id_2> ....
Last edited:
  • Like
Reactions: thiagotgc


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!