[SOLVED] Import Qemu VM to ProxMox

sirkope

Member
May 2, 2020
58
1
8
53
Hi all,

I have a Qemu VM in a qcow2 file, how can I import it to ProxMox?
In which folder do I have to copy, should I have to convert it, and how can I add the disk image to an existing or a new ProxMox VM?
 
You can import a qcow disk to an existing vm via qm import. This way it gets copied to the appropriate location based on your storage layout.
 
  1. Create a VM
  2. Delete the initial disk if you want
  3. Use qm importdisk https://pve.proxmox.com/pve-docs/qm.1.html
    Bash:
    qm importdisk <vmid> <source> <storage> [OPTIONS]
    Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).
           <vmid>: <integer> (1 - N)
               The (unique) ID of the VM.
           <source>: <string>
               Path to the disk image to import
           <storage>: <string>
               Target storage ID
           --format <qcow2 | raw | vmdk>
               Target format
  4. Change boot order to your new disk
 
  • Like
Reactions: edioilha