My homelab consists of several Debian-based VMs and LXC/Docker containers running together.
I've always delayed deployments because provisioning VMs has historically been a lengthy and error-prone task.
This repo helps me deploy VMs reliably and quickly within Proxox VE environment using Terraform and Cloudinit templates.
Tools required for Proxmox and local host
List of apps and plugins I find useful for VMs
Issues and fixes to things I've encountered
- https://pve.proxmox.com/wiki/Cloud-Init_FAQ#Usage_in_Proxmox_VE
- https://github.com/Telmate/terraform-provider-proxmox/blob/master/docs/guides/cloud_init.md
- https://github.com/Telmate/terraform-provider-proxmox/blob/master/docs/resources/vm_qemu.md
- https://github.com/Telmate/terraform-provider-proxmox/blob/master/docs/resources/lxc.md
- https://registry.terraform.io/providers/Telmate/proxmox/2.9.14/docs/resources/lxc
- terraform-lxd/terraform-provider-lxd#54
- https://cloudinit.readthedocs.io/en/latest/explanation/format.html
- https://github.com/hashicorp/terraform-provider-cloudinit/blob/main/docs/resources/config.md
- https://number1.co.za/managing-lxc-lxd-linux-containers-with-terraform/
wget https://cdimage.debian.org/cdimage/cloud/bullseye/latest/debian-11-generic-amd64.qcow2
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
- https://www.libguestfs.org/virt-customize.1.html
- https://www.libguestfs.org/virt-builder.1.html#users-and-passwords
- https://code.tools/man/1/virt-builder/#lbAN -- This was more helpful than the rest
alias k='kubectl
alias kc='k config view --minify | grep name'
alias kdp='kubectl describe pod'
alias c='clear'
alias kd='kubectl describe pod'
alias ke='kubectl explain'
alias kf='kubectl create -f'
alias kg='kubectl get pods --show-labels'
alias kr='kubectl replace -f'
alias ks='kubectl get namespaces'
alias l='ls -lrt'
alias kga='k get pod --all-namespaces'
alias kgaa='kubectl get all --show-labels'
- https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
- https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
- https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables