From b547530643b85f4cf5f830f3710c81c61d435417 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:33:34 +0100 Subject: [PATCH] Increase Size | Description & Download-URL of Debian VM (#837) * Update debian-vm.sh * Update debian-vm.json --- json/debian-vm.json | 4 ++-- vm/debian-vm.sh | 40 +++++++++++++++++++++++++++++++++------- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/json/debian-vm.json b/json/debian-vm.json index 99b3069e..acd0f1e6 100644 --- a/json/debian-vm.json +++ b/json/debian-vm.json @@ -20,7 +20,7 @@ "resources": { "cpu": 2, "ram": 2048, - "hdd": 2, + "hdd": 4, "os": null, "version": null } @@ -31,4 +31,4 @@ "password": null }, "notes": [] -} \ No newline at end of file +} diff --git a/vm/debian-vm.sh b/vm/debian-vm.sh index 2246f4fc..92884abf 100644 --- a/vm/debian-vm.sh +++ b/vm/debian-vm.sh @@ -370,7 +370,7 @@ fi msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location." msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}." msg_info "Retrieving the URL for the Debian 12 Qcow2 Disk Image" -URL=https://cloud.debian.org/images/cloud/bookworm/20240507-1740/debian-12-nocloud-amd64-20240507-1740.qcow2 +URL=https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2 sleep 2 msg_ok "${CL}${BL}${URL}${CL}" wget -q --show-progress $URL @@ -409,13 +409,39 @@ qm set $VMID \ -efidisk0 ${DISK0_REF}${FORMAT} \ -scsi0 ${DISK1_REF},${DISK_CACHE}${THIN}size=2G \ -boot order=scsi0 \ - -serial0 socket \ - -description "
+ -serial0 socket >/dev/null +qm resize $VMID scsi0 4G >/dev/null + DESCRIPTION=$(cat < + + Logo + - # Debian 12 VM +

Debian VM

- -
" >/dev/null +

+ + spend Coffee + +

+ + + + GitHub + + + + Discussions + + + + Issues + + +EOF +) + qm set "$VMID" -description "$DESCRIPTION" >/dev/null + msg_ok "Created a Debian 12 VM ${CL}${BL}(${HN})" if [ "$START_VM" == "yes" ]; then msg_info "Starting Debian 12 VM" @@ -423,4 +449,4 @@ if [ "$START_VM" == "yes" ]; then msg_ok "Started Debian 12 VM" fi msg_ok "Completed Successfully!\n" -echo "More Info at https://github.com/tteck/Proxmox/discussions/1988" +echo "More Info at https://github.com/community-scripts/ProxmoxVE/discussions/836"