Virtualization

qemu-img

SafeConvert disk images

qemu-img convert -f vmdk -O qcow2 <src> <dst>

Converts vmdk/qcow2/raw, inspects and resizes images — the workhorse of VMware-to-KVM/Proxmox migrations.

Examples

  • qemu-img info disk.qcow2Format and actual size

Syntax

qemu-img info <img> / convert -f <from> -O <to> src dst / resize <img> +20G

Before you run it

Creates new files; watch space.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store