Concurrent cloning from LXC template using terraform provider

perfust

New Member
Dec 6, 2024
1
0
1
Vienna
Hi all,

I am trying to clone multiple instance of one of my LXC templates using Terraform (Telmate Provider) (as I am always doing with VMs) but with the containers, I am getting this lock issue as PVE is not capable to clone multiple containers from the same template at once. It throws the error as soon as my counter is more than one, and I would need 15 for my use-case. This is the first time I am trying to use the counter with LXCs but it doesn't seem reasonable that this feature wouldn't be provided. I am sure that users don't create 50 LCXs one by one by hand or by shell commands?! Or do they?

I have tried multiple different LXC templates, but they all seem to have the same issue. Linked cloning/Full cloning also didn't make any difference.

Error Output:
Code:
Error: error cloning LXC container: 500 CT is locked (disk), error status:  (params: {"full":false,"hostname":"lxcdockerdev-1","newid":1301,"node":"proxvm13","target":"proxvm13","vmid":"8121"})
│
│   with module.dockerdev-[1].proxmox_lxc.lxc,
│   on modules/lxc/main.tf line 1, in resource "proxmox_lxc" "lxc":
│    1: resource "proxmox_lxc" "lxc" {

I am happy to hear any thought/inputs/experiences from the rich community.

Thank You very much in advance. Have a great weekend.
 
Last edited:

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!