How & where virtual machine [Hyper-V] files are placed on the hard disk?

Hyper-V has a concept of the “virtual machine data root” and the “VM snapshot root”. These're the locations where the VM configuration (.XML) and saved state (.BIN & .VSV) files are stored. For example – a VM which had a VM data root of “D:\Foo” and a snapshot data root of “D:\Foo” and had two […]

Hyper-V has a concept of the “virtual machine data root” and the “VM snapshot root”. These're the locations where the VM configuration (.XML) and saved state (.BIN & .VSV) files are stored. For example – a VM which had a VM data root of “D:\Foo” and a snapshot data root of “D:\Foo” and had two snapshots. The first thing to know is what files are used to create a VM: .XML files contain VM configuration details. There’s one of these for each VM and each snapshot of a vm. They’re always named with GUID used to internally identify vm or snapshot in question .BIN files contains the memory of a VM or snapshot that’s in a saved state .VSV files contains saved state from devices associated with VM .VHD files are virtual hard disk files for VM .AVHD files are differencing disk files used for VM snapshots.

More info: Understanding where your virtual machine files are [Hyper-V]