It's all about state
I believe everything should be a state in 2026.

I recently wrote my first OpenTofu configuration to manage virtual machines on Proxmox.
The need was simple: build something quickly that I could easily expand later.
The approach seemed straightforward. With Proxmox and virtualization, though, I had to think about what was underneath: the infrastructure.

When you run everything on GCP, AWS, or Azure, Terraform can be an easier starting point, especially in 2026, when an agent can do much of the work. Keep your billing limits and monitoring on, though :D
My options were limited, so I got two dedicated servers from a cloud provider (16-core AMD EPYC, 256 GB of RAM, and a 1 TB SSD).
The servers started out on Proxmox 8. After a bit of “Clauding,” I had Proxmox 9 ready to host VMs, with a ZFS storage pool that supports snapshots for replication.
I’d already written the setup as an Ansible playbook. To add a node later, I can add a line to the inventory and run the playbook.

So far, so good. The nodes were up, but I still had to configure what would run on them. That’s where OpenTofu came in. I chose it because it already did what I needed.
I had three things to figure out.
- How would I deploy new VMs?
- How would networking work?
- How would the developers and I access the VMs?
For VM deployment, a Proxmox template was an easy starting point. I created an image, configured it, ran Sysprep, and shut it down. Problem solved.
I had two nodes, each with one Ethernet interface. That ruled out physical separation, so I needed a way to keep cluster traffic separate from traffic between the VMs and the internet.
The approach:
- I ran Corosync over WireGuard between the two nodes. That encrypted the cluster traffic, while cluster and VM traffic still shared the same physical NIC on each host.
- I used EVPN to distribute reachability information and VXLAN to carry VM traffic between the nodes.
- I connected the VMs to a Proxmox SDN VNet.
- I used a CloudConnexa Network Connector and IP Services so authorized users could reach the VMs at their private IPs.
I could reach the VMs at their private IPs. When I migrated a VM to the other node, it kept the same IP and stayed reachable.
Ansible prepares the hosts, and OpenTofu manages the Proxmox resources I’ve defined. The VM template sits outside the OpenTofu plan. To add a VM or container to the cluster, I can define it in code. I especially like using OpenTofu’s CIDR functions to calculate an IP address from a subnet variable.
I used the bpg/proxmox provider: https://search.opentofu.org/provider/bpg/proxmox/latest
Then I learned about OpenTofu state. It maps the resources in my configuration to the resources OpenTofu manages in Proxmox. I store it in an S3-compatible backend so anyone working on the setup uses the same state.
Git is where I keep the Ansible playbook and OpenTofu configuration. With those files and the VM template, I can recreate the infrastructure I’ve defined. Restoring the data inside the VMs is a separate job.
Need another host? Add it to the inventory, run Ansible, then apply with OpenTofu. Need another VM? Add an entry and run tofu apply.
State has mattered for years, but over the last few years I’ve come to see it as central to systems architecture.