Monday to Saturday 8:00–19:00, Sunday closedFree courier collection throughout Switzerland · drop-off in Lugano, Zurich and Sant'Antonino

Business

Hyper-V: broken AVHDX chain and orphaned checkpoints

Every Hyper-V checkpoint, and every backup that uses one, adds a differencing disk on top of the virtual machine's VHDX. The VM then writes only to the newest AVHDX file, which points to its parent, which points to its own parent. When that chain breaks, the VM stops, and the newest data sits in a file that no longer knows what it belongs to.

Published 3 min readBy Mirush Murataj

Cover of the RecDati guide: Hyper-V: broken AVHDX chain and orphaned checkpoints
An AVHDX only holds changes; without its parent it cannot be read.

In short

  • An AVHDX only holds changes; without its parent it cannot be read.
  • Never delete AVHDX files to free space, and never edit the chain without copies.
  • Rebuild the chain order from the parent paths, then merge on copies.

How a checkpoint chain works

When you create a checkpoint, Hyper-V freezes the current VHDX and creates a new differencing disk, an .avhdx file. From then on, every write goes to the AVHDX; reads that are not in it go to the parent. Several checkpoints create a chain: base VHDX, then AVHDX 1, AVHDX 2, and so on. Deleting a checkpoint triggers a merge: the changes are written back into the parent.

Backup software (Veeam, Altaro, Windows Server Backup and others) creates a checkpoint for each backup, then removes it. If the removal fails, the AVHDX remains, and the next backup adds another one.

How it breaks

  • Checkpoints left behind by failed backups, piling up for weeks until the volume is full and the VM pauses.
  • A merge interrupted by a host crash or a full disk.
  • Files moved or restored by hand, so the paths stored in the AVHDX files point to the wrong place.
  • A parent VHDX modified directly, for example attached to another VM or mounted in Windows. Its identifier changes and the children no longer match.
  • AVHDX files deleted to free space because they "looked like temporary files".

The messages

  • The chain of virtual hard disks is corrupted. There is a mismatch in the identifiers of the parent virtual hard disk and differencing disk.
  • Cannot find the parent disk or a VM that fails to start with error 0x80070002.
  • Hyper-V Manager shows no checkpoints, but the folder contains AVHDX files.

Before touching anything

  1. Stop the VM and any backup job for it.
  2. Copy the whole folder, VHDX and every AVHDX, to another volume. All further work happens on the copy.
  3. Free space on the host volume if it is full, without deleting anything from the VM folders.

Rebuilding the order

For each file, Get-VHD -Path <file> shows its ParentPath and its VhdType (Differencing). Starting from the file the VM configuration points to, follow each ParentPath back to the base VHDX. The modification dates help, but the parent paths are authoritative.

If a path points to an old location, set it again: Set-VHD -Path child.avhdx -ParentPath parent.vhdx. If Hyper-V refuses because of an ID mismatch, -IgnoreIdMismatch forces it, which is only safe if you are sure the parent has not been changed since the child was created. Then merge from the newest file down: Merge-VHD -Path newest.avhdx -DestinationPath base.vhdx, or use Edit Disk > Merge in Hyper-V Manager.

When a link is missing

If an AVHDX in the middle of the chain was deleted, the files above it contain only changes relative to data that no longer exists. They cannot simply be merged. What remains possible:

  • The base VHDX plus the files below the gap give a consistent but older state of the VM.
  • The files above the gap still contain recent blocks, often whole files, databases pages or mailbox data, which a lab can extract and combine with the older state.

When the lab helps

  • Missing or damaged AVHDX files.
  • A merge that failed halfway and left both files inconsistent.
  • The VHDX files are on a damaged volume, a failed RAID or a RAW ReFS volume.

We work on copies, read the block allocation tables of each VHDX and AVHDX, and rebuild the virtual disk block by block, newest data first.

Preventing it

  • Monitor checkpoints: a VM with an AVHDX older than a day usually means a backup did not clean up.
  • Keep at least 20% free space on volumes that hold VMs.
  • Use production checkpoints, and never keep checkpoints as a backup.

See virtual machines data recovery, server data recovery and ReFS volume shows as RAW on Windows Server.

Frequently asked questions

Can I delete old AVHDX files to free space?

No. They contain the VM's newest data. Delete checkpoints from Hyper-V Manager so they are merged, never the files.

The VM runs but Hyper-V shows no checkpoints, only AVHDX files in the folder. Is that a problem?

Yes. The VM is running on a chain that Hyper-V no longer manages. Copy the folder and merge it on a maintenance window.

Is -IgnoreIdMismatch dangerous?

It is safe only if the parent disk has not been modified since the child was created. Otherwise the merged disk is corrupted.

Official sources and useful links

  • Microsoft Learn: Official Microsoft technical documentation: Windows Server, ReFS, Storage Spaces and Hyper-V.

Is your data important?

Do not try anything that could make the fault worse. The diagnosis is free and you get a fixed quote before any work starts.

Request a free diagnosis Virtual machines data recovery

Device not responding any more? Unplug it and let us take a look.

Get a price