* [pve-devel] [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option
@ 2022-06-14 12:48 Fabian Ebner
2022-06-14 12:48 ` [pve-devel] [PATCH docs 2/2] close #4031: vm: import: simplify example for creating VM from existing disk Fabian Ebner
2022-06-17 15:18 ` [pve-devel] applied-series: [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option Thomas Lamprecht
0 siblings, 2 replies; 3+ messages in thread
From: Fabian Ebner @ 2022-06-14 12:48 UTC (permalink / raw)
To: pve-devel
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
---
qm.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qm.adoc b/qm.adoc
index e666d7d..ba0ca20 100644
--- a/qm.adoc
+++ b/qm.adoc
@@ -1381,7 +1381,7 @@ You can now create a new target VM for this image.
----
# qm create 600 --net0 virtio,bridge=vmbr0 --name vm600 --serial0 socket \
- --bootdisk scsi0 --scsihw virtio-scsi-pci --ostype l26
+ --boot order=scsi0 --scsihw virtio-scsi-pci --ostype l26
----
Add the disk image as +unused0+ to the VM, using the storage +pvedir+:
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pve-devel] [PATCH docs 2/2] close #4031: vm: import: simplify example for creating VM from existing disk
2022-06-14 12:48 [pve-devel] [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option Fabian Ebner
@ 2022-06-14 12:48 ` Fabian Ebner
2022-06-17 15:18 ` [pve-devel] applied-series: [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Fabian Ebner @ 2022-06-14 12:48 UTC (permalink / raw)
To: pve-devel
Now that the import-from feature is available.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
---
qm.adoc | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/qm.adoc b/qm.adoc
index ba0ca20..4d0c7c4 100644
--- a/qm.adoc
+++ b/qm.adoc
@@ -1377,23 +1377,13 @@ Suppose you created a Debian/Ubuntu disk image with the 'vmdebootstrap' tool:
--customize=./copy_pub_ssh.sh \
--sparse --image vm600.raw
-You can now create a new target VM for this image.
+You can now create a new target VM, importing the image to the storage `pvedir`
+and attaching it to the VM's SCSI controller:
----
# qm create 600 --net0 virtio,bridge=vmbr0 --name vm600 --serial0 socket \
- --boot order=scsi0 --scsihw virtio-scsi-pci --ostype l26
-----
-
-Add the disk image as +unused0+ to the VM, using the storage +pvedir+:
-
-----
-# qm importdisk 600 vm600.raw pvedir
-----
-
-Finally attach the unused disk to the SCSI controller of the VM:
-
-----
-# qm set 600 --scsi0 pvedir:600/vm-600-disk-1.raw
+ --boot order=scsi0 --scsihw virtio-scsi-pci --ostype l26 \
+ --scsi0 pvedir:0,import-from=/path/to/dir/vm600.raw
----
The VM is ready to be started.
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pve-devel] applied-series: [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option
2022-06-14 12:48 [pve-devel] [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option Fabian Ebner
2022-06-14 12:48 ` [pve-devel] [PATCH docs 2/2] close #4031: vm: import: simplify example for creating VM from existing disk Fabian Ebner
@ 2022-06-17 15:18 ` Thomas Lamprecht
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2022-06-17 15:18 UTC (permalink / raw)
To: Proxmox VE development discussion, Fabian Ebner
Am 14/06/2022 um 14:48 schrieb Fabian Ebner:
> Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
> ---
> qm.adoc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
applied both patches, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-17 15:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 12:48 [pve-devel] [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option Fabian Ebner
2022-06-14 12:48 ` [pve-devel] [PATCH docs 2/2] close #4031: vm: import: simplify example for creating VM from existing disk Fabian Ebner
2022-06-17 15:18 ` [pve-devel] applied-series: [PATCH docs 1/2] vm: import: avoid using deprecated bootdisk option Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox