Proxmox Qcow2 Import

Introduction

For those who aren't familiar with the concept. Different hypervisors use different file formats to represent VM images and due to the fact that Proxmox uses Qemu (Quick Emulator)/KVM (Kernel-based Virtual Machine) to provide virtualization, it in turn uses Qcow2 (Qemu Copy-On-Write) as the storage file format for virtual machines data. The process to move Qcow2 files into Proxmox may not be as straight forward as it is on VMware, but its still a relatively painless process. 

Environment Setup

First, you're going to want to need a place to store the Qcow2 files that you're going to copy and virtualize. Its probably best to put them near where VM ISOs and container images are stored like such:

mkdir /var/lib/vz/template/qcow2

After this is created you can move the qcow2 file to your proxmox instance however you see fit. If you don't have it saved quite yet, it may be easiest to simply use wget to pull the image from whatever repo you're hoping to grab it from so save the bandwidth of saving it to your disk and then moving it to Proxmox. 

Creating the VM

Importing Disks

Up to this point, we've simply created a VM without a bootable operating system. From here we will actually import the Qcow2 image and therefore make our VM usable. Ensure you have these pieces of information handy: VM ID, Proxmox Storage Cluster Name(usually just local or local-zfs), absolute file path of the QCOW2 image. 

From your terminal, importing the image is fairly easy using the built-in command: 

qm importdisk <VM_ID> <QCOW2_FILE> <PROXMOX_ STORAGE>

After that, watch the transfer fly. 

Swapping Disks

From here you should be able to boot your VM. Give yourself a pat on the back.