Академический Документы
Профессиональный Документы
Культура Документы
33331/
Hi,
Create a new VM and add a virtual disk to it that has the same (virtual) size
as the disk you want to import.
In the hardware tab of your VM, note the name of the virtual disk file.
Open a CLI and use qemu-img's "convert" function to read the qcow2-file and
export directly into the virtual disk. The exact parameters will depend on your
storage and the target image format. If in doubt, read "man qemu-img" for details.
example: to import the image "source.qcow2" into the first virtual disk of VM 101
in a Ceph storage pool called "vmpool" in "raw" format, you would issue the
following command:
qemu-img convert -O raw -p -n source.qcow2 rbd:vmpool/vm-101-disk-1
The parameter "-p" shows the progress, and "-n" tells qemu-img to write into an
existing image instead of creating a new one.
https://forum.proxmox.com/threads/how-to-build-a-vm-with-a-existing-image.17390/
(SOLVED)