From dc5d5412057bf13eb1c5b1bbf660ff202f7ab3d6 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Wed, 9 Sep 2026 13:31:48 +0200 Subject: [PATCH] enable memory hotplug for created VMs Adds memory to --hotplug and enables --numa 1 so RAM can be added to running VMs without a reboot (Proxmox requires NUMA for the guest to recognize hot-added memory). --- ubuntu-lts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-lts.sh b/ubuntu-lts.sh index 1333874..10f3913 100755 --- a/ubuntu-lts.sh +++ b/ubuntu-lts.sh @@ -93,7 +93,7 @@ echo "Install qemu-guest-agent on Ubuntu image" virt-customize -a "/tmp/$SELECTED_RELEASE-server-cloudimg-amd64.modified.img" --install qemu-guest-agent echo "Create Proxmox VM image from Ubuntu Cloud Image" -qm create "$VM_ID" --memory 1024 --balloon 0 --cores 2 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci +qm create "$VM_ID" --memory 1024 --balloon 0 --cores 2 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci --hotplug disk,network,usb,memory --numa 1 qm set "$VM_ID" --scsi0 local-lvm:0,import-from="/tmp/$SELECTED_RELEASE-server-cloudimg-amd64.modified.img" qm set "$VM_ID" --agent enabled=1,fstrim_cloned_disks=1