User Tools

Site Tools


based_on_gemini

Per Gemini (spoiler alert: didn't work)

Create the Debian Cloud-Init Template on Proxmox

Run these commands in the Proxmox host shell:

# 1. Download the latest Debian 13 Cloud Image (Generic QCOW2)

wget https://cloud.debian.org/images/cloud/trixie/latest/debian-13-generic-amd64.qcow2

# 2. Create a new VM (ID 9000 used as an example)

qm create 9000 --name "debian-13-template" --memory 2048 --net0 virtio,bridge=vmbr0

# 3. Import the disk into your Proxmox storage (replace 'local-lvm' with your storage name)

qm importdisk 9000 debian-13-generic-amd64.qcow2 local-lvm

# 4. Attach the disk to the VM

qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0

# 5. Add Cloud-Init CD-ROM drive

qm set 9000 --ide2 local-lvm:cloudinit

# 6. Configure serial console (required for some cloud images) and boot order

qm set 9000 --boot c --bootdisk scsi0 --serial0 socket --vga serial0

# 7. Convert it to a template

qm template 9000

Prepare the Ansible Control Node

# 1. Update the OS

sudo apt update && sudo apt upgrade -y

# 2. Install Python's package manager

sudo apt install python3-pip -y

# 3. Install Ansible and the 'Bridges' globally
# We include 'requests' because proxmoxer needs it to talk over HTTPS

sudo pip install ansible==13.6.0 proxmoxer requests --break-system-packages

# 4. (Optional) Ensure the latest Proxmox logic is available

sudo ansible-galaxy collection install community.proxmox
based_on_gemini.txt · Last modified: by mike

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki