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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store