[pve-devel] [PATCH docs 2/3] cloud init: use expected disk number in example

Fiona Ebner f.ebner at proxmox.com
Thu Sep 29 09:52:23 CEST 2022


Starting from a storage with no disks for the VM ID in question, the
imported disk will be called vm-9000-disk-0.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 qm-cloud-init.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qm-cloud-init.adoc b/qm-cloud-init.adoc
index 25cd700..618d0f7 100644
--- a/qm-cloud-init.adoc
+++ b/qm-cloud-init.adoc
@@ -69,7 +69,7 @@ qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0
 qm importdisk 9000 bionic-server-cloudimg-amd64.img local-lvm
 
 # finally attach the new disk to the VM as scsi drive
-qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-1
+qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0
 ----
 
 NOTE: Ubuntu Cloud-Init images require the `virtio-scsi-pci`
-- 
2.30.2






More information about the pve-devel mailing list