I hope the response provided some helpful insight. If you find this answer useful, please hit “accept answer” so I know it addressed your concern.
Deleting VM checkpoint leaves orphaned .avhdx file
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
2 answers
Sort by: Newest
-
Jason Nguyen Tran 27,050 Reputation points Independent Advisor
2026-09-29T05:41:29.58+00:00 -
Jason Nguyen Tran 27,050 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-VHDPowerShell 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