Author SHA1 Message Date
RogerSikandClaude Opus 5.5 8b8b783e7d enable cpu hotplug for created VMs
Adds cpu to --hotplug so vCPUs can be added to running VMs without a
reboot (up to sockets * cores, by raising --vcpus).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 07:13:33 +02:00
RogerSik 2994d7224a Merge pull request #4 from RogerSik/feature/enable-disk-discard
enable discard and ssd emulation on template disk
2026-09-23 13:35:05 +02:00
+1 -1
View File
@@ -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 virt-customize -a "/tmp/$SELECTED_RELEASE-server-cloudimg-amd64.modified.img" --install qemu-guest-agent
echo "Create Proxmox VM image from Ubuntu Cloud Image" 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 --hotplug disk,network,usb,memory --numa 1 qm create "$VM_ID" --memory 1024 --balloon 0 --cores 2 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci --hotplug disk,network,usb,memory,cpu --numa 1
qm set "$VM_ID" --scsi0 local-lvm:0,import-from="/tmp/$SELECTED_RELEASE-server-cloudimg-amd64.modified.img",discard=on,ssd=1 qm set "$VM_ID" --scsi0 local-lvm:0,import-from="/tmp/$SELECTED_RELEASE-server-cloudimg-amd64.modified.img",discard=on,ssd=1
qm set "$VM_ID" --agent enabled=1,fstrim_cloned_disks=1 qm set "$VM_ID" --agent enabled=1,fstrim_cloned_disks=1