terraform

  1. J

    [SOLVED] Terraform/OpenTofu roadmap

    Hello, I would like to know if you plan (someday, possible roadmap, Christmas gift) to create Terraform modules for PVE. Thank you, Best regards, Jbsky
  2. K

    Proxmox 9 + Terraform provider: Missing VM.Monitor permission, but it doesn't exist

    Hi everyone, I'm trying to use the Telmate/Proxmox Terraform provider with Proxmox 9, but I'm stuck on a permissions issue. When I run terraform plan, I get the following error: Error: permissions for user/token terraform@pve are not sufficient, please provide also the following permissions...
  3. U

    hello, i am looking for feedback for my proxmox ve automation project

    i am not a devops engineer. i appreciate any critique or correction. code: gitlab github Managing Proxmox VE via Terraform and GitOps This program enables a declarative, IaC method of provisioning multiple resources in a Proxmox Virtual Environment. Deployment Clone this GitLab/Hub...
  4. B

    API Token ACL for VM wildcards/no-delete

    So I've got a bit of an interesting situation on my hands. I want to allow an API token to create and manage VMs that it has created but _only_ those. I'm using a terraform integration and I don't want it to by accident go nuts and delete anything it shouldn't delete and I also want to restrict...
  5. F

    Questions Regarding Automation

    I have been working Proxmox for about a year and a half now and feel pretty comfortable with the platform. I can create VMs/containers, manage storage (using Ceph), handle networking, create cloud-init templates, etc. Now I want to take the next step and automate my infrastructure. I have some...
  6. R

    [SOLVED] Provision rocky linux with terraform

    Hi, im trying to clone existing template of rocky linux with terraform but vm on boot says "proxmox could not read from cdrom (code 0004)" i searched google before posting this and couldn't solve this problem, idk if this is problem with .qcow2 rocky image because with .img extension of ubuntu...
  7. N

    [SOLVED] Proxmox VE Problems Cloud Init Terraform

    Hi. I'm having problems cloning with Terraform my template I did following this video: https://www.youtube.com/watch?v=MJgIm03Jxdo&ab_channel=LearnLinuxTV The template works fine, as in Proxmox GUI I can clone as many VMs as I want and it works perfectly. However, when I try doing it with...
  8. P

    Can't get terraform to work to install VM

    Right now, I'm using the API key. This means I have to use 2.9.11 version of the terraform provider, because if I use the current version, there is something about permissions and my key no longer works. However, with 2.9.11, I can't get past this error. Also, is terraform really supported? I...
  9. P

    Concurrent cloning from LXC template using terraform provider

    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...
  10. Z

    Proxmox Terraform VM Clone Doesn't Apply Cloud-Init Configurations Properly

    I'm using Terraform to deploy VMs on Proxmox by cloning a template. The deployment works in the sense that the VM gets created and starts successfully. However, the VM doesn't apply the Cloud-Init configurations I provided, including: The VM doesn't use the specified name. The Cloud-Init user...
  11. D

    vm_id und node_name automatisch wählen im Cluster

    Hallo zusammen, Wir suchen aktuell nach einer Möglichkeit VMs per CLI auf unseren Proxmox Clustern zu erstellen. Aktuell arbeiten wir mit OpenStack und können darüber via CLI sehr einfach VMs erstellen: "openstack server create <bla bla>". Damit wir das in Zukunft etwas einfacher handhaben...
  12. E

    Using Terraform to snapshot and rollback VMs?

    I was wondering if anyone has been able to snapshot/rollback VMs with terraform (specifically with the bpg provider). And if not, how else have you done it? I was thinking either through the CLI or Proxmox API, you could automate the process but I wasn't sure which would be easier/less error prone
  13. Y

    Error 599 too many redirections

    Hello everyone, I am contacting support because I am encountering a persistent error when creating a VM via API and Terraform. To be more specific, my goal is to clone a specific VM from a template. My code is below. However, an error constantly appears, interrupting the process with "error...
  14. N

    shrinking disks is not supported

    Hello Experts, I've using terrform to provision. Here is my config provider.tf terraform { required_providers { proxmox = { source = "bpg/proxmox" } } } provider "proxmox" { endpoint = "https://172.23.18.4:8006/" username = "root@pam" password =...
  15. J

    Proxmox Cluster Terraform

    Hello, I am running a couple 20+ node cluster today and we are deploying VMs using terraform (bgp/proxmox) Since as far as we know in the API you have to specify which one of the nodes you want to deploy the VM to we have created a javascript in between Proxmox and terraform that translates...
  16. D

    [SOLVED] Creating clone using terraform always results in unused disk

    Hello, I have created VM template using packer. Template is working properly, if I use PVE GUI, I can use prepared cloud-init config and deploy it perfectly. However, using terraform with Proxmox plugin from Telmate/proxmox version 3.0.1-rc1, I can create full clone without issue but it always...
  17. S

    [SOLVED] automating with bpg/proxmox; How to find URL and checksum of LXC images?

    Howdy, folks. I'm trying to populate my proxmox servers' LXC templates with the bpg/proxmox Terraform provider. Pulling from Debian's site, that would look something like this: resource "proxmox_virtual_environment_download_file" "debian-12-amd64-lxc" { content_type = "vztmpl"...
  18. S

    Creating Vm without bridge causing warning.

    Hi, first of all let me thank you for this community and Proxmox team. Right now I'm doing an evaluation regarding proxmox setup. My proxmox version is 8.0.3. I want to create a virtual machine with 2 nics. I have 2 bridge on my proxmox host, one for wan traffic other one for internal network...
  19. P

    iSCSI, LVM and HA confusion

    So I have a simple 3-node Proxmox lab + Synology NAS. My goal is to be able to build images using Hashicorp Packer and create VM's using Terraform declarations based on those images later. As far as I understand in order to create a VM from an image the storage of this image must exist on a...
  20. N

    cloudinit disks not cleaned up

    Hi We are deploying cloudinit images from terraform (telmate/proxmox), by cloning a template in proxmox already configured with cloud init. The new machine gets created with the next available VMID, and a small 4MBdisk is created to feed the cloudinit settings. The disk created for cloudinit is...