Last active
June 15, 2025 09:22
-
-
Save Bierchermuesli/dd36763196953618c76473b8e7e97f0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 | |
qm create 9002 --name debian12-generic --net0 virtio,bridge=jump --scsihw virtio-scsi-pci --machine q35 | |
qm set 9002 --scsi0 local-zfs:0,discard=on,ssd=1,format=raw,import-from=/Tier2/ISO/debian-12-generic-amd64.qcow2 | |
qm set 9002 --ide2 local-zfs:cloudinit | |
qm set 9002 --serial0 socket --vga serial0 | |
qm set 9002 --boot order=scsi0 | |
qm set 9002 --bios ovmf --efidisk0 local-zfs:1,format=raw,efitype=4m,pre-enrolled-keys=1 | |
qm set 9002 --sshkey ~/.ssh/authorized_keys | |
qm set 9002 --ipconfig0 ip=dhcp,ip6=dhcp | |
qm set 9001 --agent enabled=1 | |
qm template 9002 | |
qm clone 9002 69125 --name debian12 | |
apt update && apt upgrade -y && apt install -y qemu-guest-agent | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment