This commit is contained in:
jostein@valkyrie3.skyfritt.net 2025-10-08 21:52:37 +02:00
parent 957c5b2af8
commit d4eb573820

View file

@ -41,12 +41,12 @@ virt-customize -a debian-13-genericcloud-amd64.qcow2 --run-command "sed -i 's/Pa
qemu-img convert -O qcow2 -c -o preallocation=off debian-13-genericcloud-amd64.qcow2 debian-13-genericcloud-amd64-shrink.qcow2 #convert & compress qcow2 image qemu-img convert -O qcow2 -c -o preallocation=off debian-13-genericcloud-amd64.qcow2 debian-13-genericcloud-amd64-shrink.qcow2 #convert & compress qcow2 image
``` ```
#send image to PVE host: send image to PVE host:
``` ```
scp debian-13-genericcloud-amd64-shrink.qcow2 root@........................... #enter desired location on host node scp debian-13-genericcloud-amd64-shrink.qcow2 root@........................... #enter desired location on host node
``` ```
In PVE host: ### In PVE host:
* Create a VM 200 # use {vmid} you wish * Create a VM 200 # use {vmid} you wish
* Name: Debian-Trixie-CloudINIT-Template #name I used * Name: Debian-Trixie-CloudINIT-Template #name I used
@ -54,13 +54,13 @@ In PVE host:
* Set to not run on completion * Set to not run on completion
In Host node shell: ##### In Host node shell:
``` ```
qm importdisk 200 debian-13-genericcloud-amd64-shrink.qcow2 Storage --format qcow2 #change 200 to the actual {vmid} you used above & required Storage location, I used 'Storage' qm importdisk 200 debian-13-genericcloud-amd64-shrink.qcow2 Storage --format qcow2 #change 200 to the actual {vmid} you used above & required Storage location, I used 'Storage'
``` ```
In GUI of VM 200 (or your {vmid} as above): ##### In GUI of VM 200 (or your {vmid} as above):
* Remove the CD/DVD drive # I don't need one * Remove the CD/DVD drive # I don't need one
* Add unused disk as scsi0, ssd on discard on default nocache #my choices, adjust accordingly * Add unused disk as scsi0, ssd on discard on default nocache #my choices, adjust accordingly
@ -72,7 +72,7 @@ In GUI of VM 200 (or your {vmid} as above):
Done! #I make a backup of this VM template once done. Done! #I make a backup of this VM template once done.
Testing: ### Testing:
* Create a Full clone * Create a Full clone
* Set Cloud-Init settings of the clone as required & regenerate Cloud-Init image * Set Cloud-Init settings of the clone as required & regenerate Cloud-Init image