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 imageThe Mac’s disk image: compressed runs of sectors and a koly trailer.
.HDS
Parallels virtual hard diskParallels’ 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 imageA disk or memory card copied byte for byte, with no header.
.ISO
ISO 9660 disc imageA CD, DVD or Blu-ray copied sector by sector into one file.
.MACVM
macOS virtual machine bundleA macOS guest for Apple’s Virtualization framework: disk, auxiliary storage, hardware model, identifier.
.PVM
Parallels virtual machine bundleA Parallels Desktop machine as a folder: configuration, disks, firmware variables, logs.
.QCOW2
QEMU copy-on-write disk imageQEMU’s growable virtual disk with snapshots and backing files.
.SQUASHFS
SquashFS 1 filesystemThe first version: 32 KiB blocks, no fragments, 3-byte inode headers.
.SQUASHFS
SquashFS 2 filesystemThe first version with fragments; no inode numbers or link counts.
.SQUASHFS
SquashFS 3 filesystemGzip only, bit-field inodes, fragments, sparse blocks; found in 2006 to 2009 firmware.
.SQUASHFS
SquashFS 4.0 filesystemThe current format: six compressors, xattrs, NFS export table, either byte order.
.VDI
VirtualBox Disk ImageVirtualBox’s virtual disk: a header, a block map and the written blocks.
.VHD
Virtual Hard DiskMicrosoft’s virtual machine disk: raw or dynamic data with a 512-byte footer.
.VHDX
Hyper-V virtual hard diskVHD’s successor: up to 64 TB, with a log that survives power failures.
.VMDK
VMware Virtual Machine DiskVMware’s virtual disk: a text descriptor and flat or sparse extents.