[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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!