Last active
September 29, 2024 19:35
-
-
Save chris2k20/dba14515071bd5a14e48cf8b61f7d2e2 to your computer and use it in GitHub Desktop.
Revisions
-
chris2k20 revised this gist
Mar 29, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export IMAGENAME="jammy-server-cloudimg-amd64.img" export IMAGEURL="https://cloud-images.ubuntu.com/jammy/current/" export STORAGE="local-zfs-cache" export VMNAME="ubuntu-2204-cloudinit-template" export VMID=902204 export VMMEM=2048 export VMSETTINGS="--net0 virtio,bridge=vmbr0" -
chris2k20 revised this gist
Mar 29, 2024 . 1 changed file with 5 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,12 @@ #!/bin/bash # Creates a Ubuntu Cloud-Init Ready VM Template in Proxmox # # Update the image name and URL for Ubuntu 22.04 LTS export IMAGENAME="jammy-server-cloudimg-amd64.img" export IMAGEURL="https://cloud-images.ubuntu.com/jammy/current/" export STORAGE="local-zfs-cache" export VMNAME="ubuntu-2204-cloudinit-template" export VMID=9000 export VMMEM=2048 export VMSETTINGS="--net0 virtio,bridge=vmbr0" -
chris2k20 revised this gist
Jan 3, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -22,4 +22,5 @@ qm set ${VMID} --ide2 ${STORAGE}:cloudinit && qm set ${VMID} --boot c --bootdisk scsi0 && qm set ${VMID} --serial0 socket --vga serial0 && qm template ${VMID} && echo "TEMPLATE ${VMNAME} successfully created!" && echo "Now create a clone of VM with ID ${VMID} in the Webinterface.." -
chris2k20 revised this gist
Nov 23, 2020 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,20 @@ #!/bin/bash # Creats a ubuntu Cloud-Init Ready VM Template in Proxmox # # https://gist.github.com/chris2k20/dba14515071bd5a14e48cf8b61f7d2e2 # export IMAGENAME="focal-server-cloudimg-amd64.img" export IMAGEURL="https://cloud-images.ubuntu.com/focal/current/" export STORAGE="local-zfs-cache" export VMNAME="ubuntu-2004-cloudinit-template" export VMID=9000 export VMMEM=2048 export VMSETTINGS="--net0 virtio,bridge=vmbr0" wget -O ${IMAGENAME} --continue ${IMAGEURL}/${IMAGENAME} && qm create ${VMID} --name ${VMNAME} --memory ${VMMEM} ${VMSETTINGS} && qm importdisk ${VMID} ${IMAGENAME} ${STORAGE} && qm set ${VMID} --scsihw virtio-scsi-pci --scsi0 ${STORAGE}:vm-${VMID}-disk-0 && -
chris2k20 created this gist
Nov 22, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ #!/bin/bash # Creats a ubuntu Cloud-Init Ready VM Template in Proxmox # # wget https://cloud-images.ubuntu.com/groovy/current/groovy-server-cloudimg-amd64.img # wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img export IMAGENAME="focal-server-cloudimg-amd64.img" export IMAGEURL="https://cloud-images.ubuntu.com/focal/current/" export STORAGE="local-ssd" export VMNAME="ubuntu-2004-cloudinit-template" export VMID=9000 export VMMEM=2048 export VMSETTINGS="--net0 virtio,bridge=vmbr0" wget ${IMAGEURL}/${IMAGENAME} && qm create ${VMID} --name ${VMNAME} --memory ${VMMEM} ${VMSETTINGS} && qm importdisk ${VMID} ${IMAGENAME} ${STORAGE} && qm set ${VMID} --scsihw virtio-scsi-pci --scsi0 ${STORAGE}:vm-${VMID}-disk-0 && qm set ${VMID} --ide2 ${STORAGE}:cloudinit && qm set ${VMID} --boot c --bootdisk scsi0 && qm set ${VMID} --serial0 socket --vga serial0 && qm template ${VMID} && echo "TEMPLATE ${VMNAME} successfully created"