Managing Proxmox Containers with Terraform

Managing Proxmox Containers with Terraform Infrastructure as Code (IaC) has revolutionized the way we manage and deploy infrastructure. In this blog post, I’ll walk you through setting up and managing LXC containers in Proxmox using Terraform, a popular IaC tool. We’ll also explore a common challenge when provisioning SSH access and how to work around it effectively. Prerequisites Before we begin, make sure you have: A Proxmox VE server up and running (I’m using version 8.x) Terraform installed on your local machine (version 1.0+) LXC templates downloaded on your Proxmox server API token created in Proxmox with the appropriate permissions Project Structure Let’s set up a simple project structure for our Terraform configuration: ...

March 26, 2025 · 7 min · guyfromtheke