mirror of
https://github.com/RogerSik/proxmox-vm-template.git
synced 2026-10-07 21:17:33 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc5d541205 | ||
|
|
f537f9fafd |
+1
-1
@@ -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
|
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" --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
|
qm set "$VM_ID" --agent enabled=1,fstrim_cloned_disks=1
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user