Creating Virtual Machines in Proxmox the easy way
Well, kind of the easy way. I honestly had better results using this appraoch than with the Terraform plugins available for Proxmox. The solution is to run QEMU commands directly in the proxmox node’s CLI and use a cloud-init OS image.
The cloud-init images are typically in qcow2 storage format 1. I will be using the latest debian 12 Bookworm image from the official repo.
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 Next, let’s create a virtual machine template with 2gb of memory and 2 cores and set networking to use the default bridge vmbr0.