Skip to content

Instantly share code, notes, and snippets.

@rubi022
Last active May 22, 2022 11:03
Show Gist options
  • Save rubi022/553972b98f2936acdfea236c6d5de508 to your computer and use it in GitHub Desktop.
Save rubi022/553972b98f2936acdfea236c6d5de508 to your computer and use it in GitHub Desktop.
proxmox cloudinit templates
qm create 9007 --memory 2048 --net0 virtio,bridge=vmbr0
# import the downloaded disk to local-lvm storage
qm importdisk 9007 CentOS-7-x86_64-GenericCloud-2111.qcow2 cru-zfs
# finally attach the new disk to the VM as scsi drive
qm set 9007 --scsihw virtio-scsi-pci --scsi0 cru-zfs:vm-9007-disk-0
qm set 9007 --ide2 local:cloudinit
qm set 9007 --boot c --bootdisk scsi0
qm set 9007 --serial0 socket --vga serial0
qm template 9007
qm clone 9007 123 --name c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment