Skip to content

How to Convert VMDK to QCOW2 for Proxmox

Convert a VMware VMDK to QCOW2 for Proxmox: use qemu-img convert or qm importdisk, attach the disk, set the controller, and boot the migrated VM cleanly.

SDSysadmin Desk November 23, 2026 8 min read
Photographic illustration for How to Convert VMDK to QCOW2 for Proxmox: homelab server rack and virtualization cluster dashboard

VMDK is VMware’s disk format, QCOW2 is the one Proxmox uses on file-based storage, and converting between them is a single command. The conversion itself is the easy part — qemu-img or qm importdisk does it in one line. What actually decides whether the migrated VM boots is everything around the disk: which controller you attach it to, whether the firmware matches, and whether the guest has the drivers it needs.

This guide covers both conversion paths and the boot work that follows. You’ll see when to use qemu-img convert for a standalone file versus qm importdisk to convert and import in one step, how to attach the disk so the guest actually boots, and the gotchas that turn a clean conversion into a black screen. Steps target Proxmox VE 8.x.

If you’re migrating whole VMs off VMware rather than just converting a disk, the broader workflow — including the built-in ESXi import wizard — is in migrating VMware VMs to Proxmox. This article focuses on the disk conversion itself.

Power the source VM off first

Before anything: shut the source VM down cleanly. A VMDK copied from a running machine is inconsistent, and a converted disk from a live snapshot can carry filesystem damage you’ll spend hours chasing. Power off, then convert. The conversion only needs the static disk file, not a running VM.

If the source VM has snapshots, collapse them in VMware before exporting, so you’re converting a single consistent disk rather than a chain of delta files.

Decide: convert manually, or let importdisk do it

There are two paths, and picking the right one saves effort.

qemu-img convert vs qm importdisk

qemu-img convert Low-level tool. Produces a qcow2 file you then place and attach yourself. Use it to stage a file, convert on another machine, or when you specifically want a qcow2 on disk.
qm importdisk Proxmox wrapper. Converts the VMDK and imports it into an existing VM on your chosen storage in one step, picking the right format automatically. Use it for a normal migration.

For a straightforward migration into Proxmox, qm importdisk is less work and gets the format right for your storage automatically. Reach for qemu-img when you need the raw conversion on its own.

Path A: Convert with qemu-img

Get the VMDK onto the Proxmox host first — scp it to a directory you can reach, for example /var/lib/vz/import/. Then convert:

# convert a VMDK to QCOW2
qemu-img convert -f vmdk -O qcow2 web01.vmdk web01.qcow2

The flags are straightforward: -f vmdk is the input format, -O qcow2 is the output format, then the source and destination filenames. For a large disk this takes a while and is I/O-bound, so run it where there’s fast local storage.

Check the result before you trust it:

# inspect the converted image — format, virtual size, actual size
qemu-img info web01.qcow2

qemu-img info confirms the output is a valid qcow2 and shows the virtual size (what the guest sees) versus the actual size on disk (qcow2 is thin, so this is smaller).

Once you have the qcow2 (or raw) file, you still need to attach it to a VM. Create an empty VM in the GUI (matching the source’s OS type, memory, CPU, and firmware), note its VMID, then bring the disk in — covered in the attach section below.

Path B: Convert and import with qm importdisk

This is the path most migrations should take. Create the target VM shell first in the GUI — set the OS type, memory, CPU, and crucially the firmware to match the source — and note its VMID. Then import the VMDK straight in:

# import a VMDK into existing VM 200, converting into 'local-lvm' storage
qm importdisk 200 /var/lib/vz/import/web01.vmdk local-lvm

qm importdisk reads the VMDK, converts it, and writes it into the target storage in that storage’s native format — a raw volume on LVM-Thin or ZFS, or qcow2 on a directory store. No manual format choice, no separate attach copy. When it finishes, the disk shows up in the VM’s Hardware tab as an Unused Disk.

Attach the disk and choose the controller

Whichever path you took, the converted disk now needs attaching to the VM with the right controller — and this is the decision that makes or breaks the first boot.

Open the VM’s Hardware tab. If you used qm importdisk, the disk is listed as Unused Disk 0; double-click it to attach. If you converted with qemu-img to a directory storage, you may need to place the file where Proxmox expects it or import it, then attach.

Disk controller choice at first boot

SATA or IDE Universally bootable. Windows and Linux both have built-in drivers, so the migrated guest boots without prep. Slower, but it gets you in the door.
VirtIO SCSI The fast paravirtualized controller you want long-term. Needs the VirtIO driver in the guest first, or Windows bluescreens on boot.

For a Windows guest, attach the disk as SATA for the first boot, get Windows running, install the VirtIO drivers from inside it, then switch the controller to VirtIO SCSI and reboot. For a modern Linux guest, VirtIO works immediately because the drivers ship in the kernel.

Match the firmware and boot order

Two more settings separate “the disk is attached” from “the VM boots.”

Firmware. In the VM’s Options → BIOS, match the source VM. A VMware guest that used EFI firmware needs OVMF (UEFI) in Proxmox with an EFI disk added; a BIOS guest stays on the default SeaBIOS. Mismatch this and the disk imports perfectly but the firmware never finds the bootloader — you’ll land at a UEFI shell or a no-bootable-device message.

Boot order. After attaching the real disk, check Options → Boot Order and make sure the converted disk is enabled and first. A disk that isn’t ticked in the boot order won’t be booted from, which looks like a failed conversion but isn’t.

Quick reference

The whole job, condensed:

VMDK to QCOW2, start to boot

  • Power the source VM off; collapse any snapshots in VMware
  • Copy the descriptor VMDK to the Proxmox host
  • Convert: qemu-img convert -f vmdk -O qcow2 (or use qm importdisk)
  • Create the target VM with firmware matching the source
  • Attach the disk — SATA first for Windows, VirtIO SCSI for Linux
  • Set boot order to the disk; install VirtIO drivers on Windows, then switch to VirtIO

The commands you’ll actually use most:

# manual conversion to qcow2
qemu-img convert -f vmdk -O qcow2 web01.vmdk web01.qcow2

# verify the result
qemu-img info web01.qcow2

# or convert + import into VM 200 on local-lvm in one step
qm importdisk 200 web01.vmdk local-lvm

Wrapping up

Converting VMDK to QCOW2 is a one-line job; making the converted VM boot is where the real work is. Let qm importdisk handle the conversion into the right format for your storage when you can, reach for qemu-img convert when you need a standalone file, and remember that a disk that won’t boot is nearly always a controller or firmware mismatch — not a failed conversion.

For the end-to-end VMware migration, including exporting OVF and the VirtIO driver steps, see migrating VMware VMs to Proxmox. To choose the right target storage format before you import, LVM vs LVM-Thin vs ZFS explains when you want raw versus qcow2, and once the VM is running, back it up before retiring the VMware copy. For more walkthroughs, browse the Proxmox guides.

Frequently asked questions

Do I even need to convert VMDK to QCOW2, or can Proxmox use the VMDK directly?

You don't strictly have to convert manually. qm importdisk reads a VMDK and writes it into whatever format your target storage uses — qcow2 on a directory store, or a raw volume on LVM-Thin or ZFS — so the conversion happens automatically during import. You only run qemu-img by hand when you want a qcow2 file outside the import flow, for example to stage files first or convert on another machine.

What's the difference between qemu-img convert and qm importdisk?

qemu-img convert is the low-level tool that turns one disk format into another, producing a file you then have to place and attach yourself. qm importdisk is the Proxmox wrapper that converts the disk and imports it straight into an existing VM on your chosen storage in one step. For a normal migration, qm importdisk is less work; qemu-img is for when you need the raw conversion on its own.

Which VMDK file do I convert — there are several?

Convert the descriptor VMDK (the small text file), not the -flat.vmdk or -delta files directly. With qemu-img convert -f vmdk you point at the main descriptor and qemu-img reads the data extents it references. If the VM had snapshots, collapse them in VMware first so you're converting a single consistent disk rather than a chain of delta files.

Why won't my converted Windows VM boot after importing the disk?

The disk converted fine — the problem is almost always the controller. If you attach the disk as VirtIO SCSI, a Windows guest with no VirtIO driver bluescreens with INACCESSIBLE_BOOT_DEVICE. Attach it as SATA or IDE first so Windows boots, install the VirtIO drivers inside Windows, then switch to VirtIO. Also match the firmware (UEFI vs BIOS) to what the source VM used.

Should I convert to qcow2 or import as raw?

It depends on your storage. On a directory-based store, qcow2 gives you thin provisioning and snapshots at the file level. On LVM-Thin or ZFS, the disk should be a raw volume because those layers handle thin provisioning and snapshots themselves — stacking qcow2 on top is redundant. qm importdisk picks the right format for the target storage automatically, which is the easiest way to get this right.

Can I convert the VMDK while the source VM is still running?

No, power the source VM off first. A disk copied from a running machine is inconsistent and you'll spend longer fixing filesystem corruption than the downtime would have cost. Shut the VM down cleanly, then export or copy the VMDK and convert it. The conversion itself doesn't need the source running — it only needs the static disk file.

Sources & further reading

Official vendor documentation referenced while writing this guide.

SD

Sysadmin Desk

Infrastructure & Cloud

Hands-on guidance for infrastructure, virtualization, and containers — Hyper-V, VMware, Docker, and the day-to-day operations work that keeps environments running.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.