]> git.proxmox.com Git - pve-docs.git/blobdiff - qm-cloud-init.adoc
totp: fix copy/paste mistake
[pve-docs.git] / qm-cloud-init.adoc
index 618d0f71f385595e1aef3e67bcf3384e53275382..8686ed7c7e556de610ff6c0a0ca96fdca6ff95d5 100644 (file)
@@ -43,7 +43,7 @@ Preparing Cloud-Init Templates
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 The first step is to prepare your VM. Basically you can use any VM.
-Simply install the Cloud-Init packages inside the VM that you want to
+Simply install the Cloud-Init packages *inside the VM* that you want to
 prepare. On Debian/Ubuntu based systems this is as simple as:
 
 ----
@@ -62,14 +62,11 @@ image provided by Ubuntu at https://cloud-images.ubuntu.com.
 # download the image
 wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
 
-# create a new VM
-qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0
+# create a new VM with VirtIO SCSI controller
+qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci
 
-# import the downloaded disk to local-lvm storage
-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-0
+# import the downloaded disk to the local-lvm storage, attaching it as a SCSI drive
+qm set 9000 --scsi0 local-lvm:0,import-from=/path/to/bionic-server-cloudimg-amd64.img
 ----
 
 NOTE: Ubuntu Cloud-Init images require the `virtio-scsi-pci`