Last active
January 30, 2025 03:41
-
-
Save venkatamutyala/19aec3bf2c60520fd483efdd8a2de238 to your computer and use it in GitHub Desktop.
Shell script to create a cloud-init VM template in proxmox using debian 12 generic cloud qcow2
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
| #!/usr/bin/env bash | |
| ## ref:https://www.youtube.com/watch?v=UQaCrByk53E | |
| wget https://cloud.debian.org/images/cloud/bookworm/20250115-1993/debian-12-genericcloud-amd64-20250115-1993.qcow2 | |
| qm create 6000 --name debian-12-cloud-init --net0 virtio,bridge=vmbr0 | |
| qm importdisk 6000 debian-12-genericcloud-amd64-20250115-1993.qcow2 local-lvm | |
| qm set 6000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-6000-disk-0 | |
| qm set 6000 --ide2 local-lvm:cloudinit | |
| qm set 6000 --boot c --bootdisk scsi0 | |
| qm set 6000 --serial0 socket --vga serial0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment