Disk and VM image file formats

A disk image is a whole disc or hard disk stored as one file, sector by sector, with its partitions and file systems inside. Optical disc images are burned or mounted. Virtual disk images act as the hard disk of a virtual machine, and many of them only store the parts of the disk that have been written.

Formats

.DMG

Apple disk image

The Mac’s disk image: compressed runs of sectors and a koly trailer.

.HDS

Parallels virtual hard disk

Parallels’ virtual disk: a header, a block table and the clusters written.

.HFS

HFS volume image (Macintosh)

The classic Macintosh file system: boot blocks, Master Directory Block, bitmap and the catalog and extents trees.

.IMG

Raw disk image

A disk or memory card copied byte for byte, with no header.

.ISO

ISO 9660 disc image

A CD, DVD or Blu-ray copied sector by sector into one file.

.MACVM

macOS virtual machine bundle

A macOS guest for Apple’s Virtualization framework: disk, auxiliary storage, hardware model, identifier.

.PVM

Parallels virtual machine bundle

A Parallels Desktop machine as a folder: configuration, disks, firmware variables, logs.

.QCOW2

QEMU copy-on-write disk image

QEMU’s growable virtual disk with snapshots and backing files.

.SQUASHFS

SquashFS 1 filesystem

The first version: 32 KiB blocks, no fragments, 3-byte inode headers.

.SQUASHFS

SquashFS 2 filesystem

The first version with fragments; no inode numbers or link counts.

.SQUASHFS

SquashFS 3 filesystem

Gzip only, bit-field inodes, fragments, sparse blocks; found in 2006 to 2009 firmware.

.SQUASHFS

SquashFS 4.0 filesystem

The current format: six compressors, xattrs, NFS export table, either byte order.

.VDI

VirtualBox Disk Image

VirtualBox’s virtual disk: a header, a block map and the written blocks.

.VHD

Virtual Hard Disk

Microsoft’s virtual machine disk: raw or dynamic data with a 512-byte footer.

.VHDX

Hyper-V virtual hard disk

VHD’s successor: up to 64 TB, with a log that survives power failures.

.VMDK

VMware Virtual Machine Disk

VMware’s virtual disk: a text descriptor and flat or sparse extents.