Skip to content

Commit b547530

Browse files
authored
Increase Size | Description & Download-URL of Debian VM (#837)
* Update debian-vm.sh * Update debian-vm.json
1 parent b78a919 commit b547530

File tree

2 files changed

+37
-11
lines changed

2 files changed

+37
-11
lines changed

json/debian-vm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"resources": {
2121
"cpu": 2,
2222
"ram": 2048,
23-
"hdd": 2,
23+
"hdd": 4,
2424
"os": null,
2525
"version": null
2626
}
@@ -31,4 +31,4 @@
3131
"password": null
3232
},
3333
"notes": []
34-
}
34+
}

vm/debian-vm.sh

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ fi
370370
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
371371
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
372372
msg_info "Retrieving the URL for the Debian 12 Qcow2 Disk Image"
373-
URL=https://cloud.debian.org/images/cloud/bookworm/20240507-1740/debian-12-nocloud-amd64-20240507-1740.qcow2
373+
URL=https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2
374374
sleep 2
375375
msg_ok "${CL}${BL}${URL}${CL}"
376376
wget -q --show-progress $URL
@@ -409,18 +409,44 @@ qm set $VMID \
409409
-efidisk0 ${DISK0_REF}${FORMAT} \
410410
-scsi0 ${DISK1_REF},${DISK_CACHE}${THIN}size=2G \
411411
-boot order=scsi0 \
412-
-serial0 socket \
413-
-description "<div align='center'><a href='https://Helper-Scripts.com'><img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png'/></a>
414-
415-
# Debian 12 VM
416-
417-
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/&#x2615;-Buy me a coffee-blue' /></a>
418-
</div>" >/dev/null
412+
-serial0 socket >/dev/null
413+
qm resize $VMID scsi0 4G >/dev/null
414+
DESCRIPTION=$(cat <<EOF
415+
<div align='center'>
416+
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
417+
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
418+
</a>
419+
420+
<h2 style='font-size: 24px; margin: 20px 0;'>Debian VM</h2>
421+
422+
<p style='margin: 16px 0;'>
423+
<a href='https://ko-fi.com/community_scripts' target='_blank' rel='noopener noreferrer'>
424+
<img src='https://img.shields.io/badge/&#x2615;-Buy us a coffee-blue' alt='spend Coffee' />
425+
</a>
426+
</p>
427+
428+
<span style='margin: 0 10px;'>
429+
<i class="fa fa-github fa-fw" style="color: #f5f5f5;"></i>
430+
<a href='https://github.com/community-scripts/ProxmoxVE' target='_blank' rel='noopener noreferrer' style='text-decoration: none; color: #00617f;'>GitHub</a>
431+
</span>
432+
<span style='margin: 0 10px;'>
433+
<i class="fa fa-comments fa-fw" style="color: #f5f5f5;"></i>
434+
<a href='https://github.com/community-scripts/ProxmoxVE/discussions' target='_blank' rel='noopener noreferrer' style='text-decoration: none; color: #00617f;'>Discussions</a>
435+
</span>
436+
<span style='margin: 0 10px;'>
437+
<i class="fa fa-exclamation-circle fa-fw" style="color: #f5f5f5;"></i>
438+
<a href='https://github.com/community-scripts/ProxmoxVE/issues' target='_blank' rel='noopener noreferrer' style='text-decoration: none; color: #00617f;'>Issues</a>
439+
</span>
440+
</div>
441+
EOF
442+
)
443+
qm set "$VMID" -description "$DESCRIPTION" >/dev/null
444+
419445
msg_ok "Created a Debian 12 VM ${CL}${BL}(${HN})"
420446
if [ "$START_VM" == "yes" ]; then
421447
msg_info "Starting Debian 12 VM"
422448
qm start $VMID
423449
msg_ok "Started Debian 12 VM"
424450
fi
425451
msg_ok "Completed Successfully!\n"
426-
echo "More Info at https://github.com/tteck/Proxmox/discussions/1988"
452+
echo "More Info at https://github.com/community-scripts/ProxmoxVE/discussions/836"

0 commit comments

Comments
 (0)