Hey everyone,
I’m struggling to deploy a container using Terraform. I want to switch my containers to LXC using OCI images. Some of them need to run as privileged (root), but I keep encountering the following error:
Error: error waiting for container created: task “UPID:pve01:003045CC:0D492B9D:6974A150:vzcreate:200:root@pam:” failed to complete with exit code: unable to create CT 200 - Invalid argument
Interestingly, it works fine when I set unprivileged = true. However, I specifically need this container to be privileged for my mounts/permissions. Even though the documentation states that unprivileged is false by default, explicitly setting it to false triggers the error.
Has anyone faced this “Invalid argument” error when using proxmox_virtual_environment_oci_image with privileged containers?
Thanks for your help!