Вы находитесь на странице: 1из 1

https://forum.proxmox.com/threads/create-vm-from-existing-qcow2-image.

33331/

Hi,

Proxmox is very "protective" when it comes to virtual disks. Depending on your


storage, you cannot simply replace them with something else.
On some storage adapters there will be easier / faster ways, but this should work
in any case:

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)

Вам также может понравиться