Proxmox VM Cloning with Cloud Init and Terraform.
The video is part of a Proxmox PVE Nested Virtualization home lab series, where we will be building out a lab environment to test Proxmox no subscription features and functionality.
Since Broadcom's acquisition of VMware, many customers are looking elsewhere for their virtualisation requirements. This video shows how to use Cloud Init with Terraform (and OpenTofu) to clone VMs.
Note: Before using TerraForm / OpenTofu, make sure you have API tokens configured - see
https://youtu.be/1AGvfKaGp3c.
In this video, we run through:
Setting up the image in Cloud Init.
The Cloud-init Terraform example file from Telmate.
Customisation of the Terraform file - including what I changed to get this to work.
Troubleshooting.
The results of the successful deployment.
The Terraform / OpenTofu files and commands to setup the Cloud Init image can be found here: https://github.com/HouseOfLogicGH/ProxmoxPVE/tree/main/TerraformOpenTofuCloudInit
Follow @HouseofLogicBlog or visit https://www.houseoflogic.co.uk for more tutorials and articles.