User Tools

Site Tools


debian_ansible_hands-free_installs

This is an old revision of the document!


Debian/Ansible/Hands-Free/Installs Initiative

Per Spiffyeight77

Reference: Spiffyeight77 (modified by me for Debian 13)

Download the Official Cloud-Init Images

# Within Proxmox, create storage directory for cloud-init images

mkdir -p /var/lib/vz/template/iso/cloud-init/debian

# Navigate to debian directory

cd /var/lib/vz/template/iso/cloud-init/debian

# Download Debian 12 generic cloud image

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

# Download checksum for verification

wget https://cloud.debian.org/images/cloud/trixie/latest/SHA512SUMS

# Verify image integrity

sha512sum -c SHA512SUMS --ignore-missing

Create the VM Template

Create the Virtual Machine
qm create 9000 --name debian-13-template --memory 2048 --cores 1 --net0 virtio,bridge=vmbr0 --ostype l26 --cpu cputype=host
Import and Configure the Disk

# Import cloud-init image as VM disk

qm importdisk 9000 /var/lib/vz/template/iso/cloud-init/debian/debian-13-genericcloud-amd64.qcow2 local-lvm --format qcow2

# Attach disk to VM with VirtIO SCSI

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

# Add cloud-init drive

qm set 9000 --ide2 local-lvm:cloudinit

# Configure boot options

qm set 9000 --boot c --bootdisk scsi0

# Add serial console for cloud-init output

qm set 9000 --serial0 socket --vga serial0

# Configure the networking

qm set 9000 --ipconfig0 ip=dhcp

# Enable the qemu guest agent(recommend)

qm set 9000 --agent enabled=1
debian_ansible_hands-free_installs.1778457241.txt.gz · Last modified: by mike

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki