VMFS is VMware’s clustered file system for ESX and ESXi datastores, versions 3, 5 and 6, holding virtual disks and machine configuration. It is the target of virtual machine recovery from failed hosts, and the format is not officially published.
Overview
VMFS is a clustered file system: several hosts can mount one datastore at the same time and coordinate with on-disk locks. A logical volume manager header sits near 1 MiB into the partition, followed by file system metadata: the file descriptor cluster, resource clusters for blocks, sub-blocks and pointer blocks, and a heartbeat region. Files, mostly virtual disk (.vmdk) and virtual machine configuration files, are addressed by file descriptors that reference blocks through pointer blocks.
Versions 3, 5 and 6 differ in block size handling, maximum sizes and partitioning (VMFS 5 uses GPT).
History
VMFS 1 and 2 shipped with ESX 1.x and 2.x; VMFS 3 with ESX 3 (2006).
VMFS 5 arrived with vSphere 5.0 (2011) and VMFS 6 with vSphere 6.5 (2016).
Structures
Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.