Deleting VM checkpoint leaves orphaned .avhdx file

Vltava Hora 40 Reputation points
2026-09-09T11:27:09.77+00:00

I’m currently facing an issue where deleting a VM checkpoint fails halfway through. After that, an orphaned delta .avhdx file remains detached from the chain, and the virtual machine refuses to start.

How can we manually merge .avhdx files back into the base .vhdx using the Merge‑VHD PowerShell command ?

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Oldest
  1. Jason Nguyen Tran 25,120 Reputation points Independent Advisor
    2026-09-09T12:14:38.91+00:00

    Hello,

    When a checkpoint deletion fails, the orphaned .avhdx file is left outside the merge chain, which prevents the VM from starting. The supported way to manually merge these files back into the base .vhdx is to use the Merge-VHD PowerShell command.

    The typical workflow is:

    • First, ensure the VM is powered off to avoid file locks.
    • Run Merge-VHD -Path <orphaned.avhdx> -DestinationPath <parent.vhdx> to merge the delta file back into its parent.
    • If there are multiple orphaned .avhdx files, merge them sequentially in the correct order (child into parent, then parent into its parent, until you reach the base .vhdx).
    • After the merge completes, confirm the integrity of the base disk and reattach it to the VM.

    It’s important to back up the VM files before running the merge, as mistakes in the merge order can cause data loss. Once the merge is successful, the VM should start normally again.

    I hope this gives you a safe and reliable path forward. If this answer helps resolve your issue, please don’t forget to hit “accept answer”

    Jason

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.