Deleting a checkpoint does not simply discard a file. Hyper-V merges the checkpoint's .avhdx data into its parent disk, and the .avhdx is only removed once that finishes, so the volume can fill during the merge before it frees anything. Microsoft advises having free space ideally equal to the disk size. Before you delete anything, list the checkpoints with Get-VMSnapshot, read the disk chain with Get-VHD, check free space on the volume holding the files and look for .avhdx files Hyper-V Manager does not show. Never delete .avhdx files by hand.
Why a merge can need space before it gives any back
When you take a checkpoint, Hyper-V stops writing to the virtual machine's existing disk and starts writing changes to a new differencing disk, an .avhdx file, stored alongside the .vhdx. The original disk becomes the parent. Every change the VM makes after that lands in the .avhdx, which is why a checkpoint that looked harmless in March can be a very large file by June.
Deleting the checkpoint reverses the arrangement. Hyper-V merges the .avhdx data into the parent and only then deletes the .avhdx. Deleting a checkpoint sounds like it should free space. It does, eventually, after first asking for some.
Several things make the demand larger than people expect:
- A dynamically expanding parent .vhdx can grow while it absorbs changes from the child. In our reading, the most it can grow by is the smaller of the data held in the .avhdx files and the headroom between the parent's current file size and its maximum size. Microsoft gives a blunter planning figure: free space ideally equal to the size of the disk.
- The .avhdx and the parent exist side by side until the merge completes, so peak usage is higher than either the before or after figure.
- Standard checkpoints capture memory state as well as disk state, so a checkpoint can carry files beyond the .avhdx. Production checkpoints do not capture memory.
- Checkpoints created by backup software sometimes survive a failed or interrupted backup. They may not appear in Hyper-V Manager, yet their .avhdx files keep growing. Microsoft lists orphaned or stale checkpoints and insufficient disk space among the common causes of merge failures.
- A full volume affects more than the VM being merged. Other VMs stored on the same volume can be paused or crash when it runs out of space.
Read-only checks to run on the Hyper-V host
Everything in this section only reads information, so it is safe to run on a production host, including while the VM is running. Use an elevated PowerShell window on the Hyper-V host itself, signed in as a local administrator or a member of the Hyper-V Administrators group. Replace the YOUR_ tokens with your own values, keeping the quotation marks where shown.
- List the checkpoints Hyper-V knows about. Replace YOUR_VM_NAME with the VM's name as shown in Hyper-V Manager. An empty result means Hyper-V has no visible checkpoints, which matters in step 5.
- Walk the disk chain for every virtual disk attached to the VM. The output starts with the disk the VM is using (an .avhdx if a checkpoint exists) and follows each parent up to the base .vhdx. FileSizeGB is the space the file occupies now and MaxSizeGB is the virtual size of the disk. A parent whose VhdType is Dynamic can still grow towards that maximum.
Get-VMSnapshot -VMName 'YOUR_VM_NAME' | Select-Object Name, SnapshotType, CreationTime, ParentSnapshotName - Check free space on the volume holding the disk files. Replace YOUR_DRIVE_LETTER with the drive letter only, such as D. If the VM lives on a cluster shared volume, check the free space on that volume instead, because this command reports only local volumes.
foreach ($drive in Get-VMHardDiskDrive -VMName 'YOUR_VM_NAME') { $disk = Get-VHD -Path $drive.Path $disk | Select-Object Path, VhdType, @{Name='FileSizeGB';Expression={[math]::Round($_.FileSize/1GB,1)}}, @{Name='MaxSizeGB';Expression={[math]::Round($_.Size/1GB,1)}} while ($disk.ParentPath) { $disk = Get-VHD -Path $disk.ParentPath $disk | Select-Object Path, VhdType, @{Name='FileSizeGB';Expression={[math]::Round($_.FileSize/1GB,1)}}, @{Name='MaxSizeGB';Expression={[math]::Round($_.Size/1GB,1)}} } } - List the disk-related files in the VM's folder. Replace YOUR_VM_FOLDER with the folder path, for example D:\Hyper-V\FILESRV01. Compare the list with step 2. Any .avhdx that is not in the chain and not tied to a checkpoint from step 1 is an orphan. Note it down and leave it exactly where it is.
Get-Volume -DriveLetter YOUR_DRIVE_LETTER | Select-Object DriveLetter, @{Name='FreeGB';Expression={[math]::Round($_.SizeRemaining/1GB,1)}}, @{Name='TotalGB';Expression={[math]::Round($_.Size/1GB,1)}} - Write down the figures: the combined size of the .avhdx files in the chain, the parent's file size against its maximum size, and the volume's free space. Section 3 turns these into a go or no-go decision.
Get-ChildItem -Path 'YOUR_VM_FOLDER' -Recurse -File | Where-Object { $_.Extension -in '.vhdx','.avhdx','.vhd','.avhd','.mrt','.rct' } | Select-Object FullName, @{Name='SizeGB';Expression={[math]::Round($_.Length/1GB,1)}}, LastWriteTime
Deciding whether there is enough room
No source we found gives an exact formula, so treat this as a cautious planning rule rather than a guarantee. Take the larger of two numbers: Microsoft's guideline of free space ideally equal to the disk size, and the combined size of the .avhdx files you are about to merge. If the volume's free space is below that, make room first.
Here is an illustrative case. A fictional VM called FILESRV01 has a parent .vhdx of 180 GB with a 200 GB maximum, plus 60 GB of .avhdx files. The parent can only grow by about 20 GB, because it is close to its ceiling, so the realistic extra demand is modest. Microsoft's guideline would still suggest around 200 GB free, and 60 GB is the figure from the combined .avhdx files. Whether you plan to the cautious figure or the tighter one is a judgement about how much a full volume would hurt. On a volume shared with other busy VMs, plan to the cautious figure.
Also allow for time. A merge of a large or long-lived chain can run for hours, and the VM's disks are busier while it does. Pick a quiet window.
If space is tight
Make the room somewhere else rather than editing the checkpoint files. Free space on the volume by moving unrelated files off it, or move other VMs' storage elsewhere using Hyper-V's own move or export tools. Extending the underlying volume is another route if your storage allows it. Microsoft's troubleshooting table suggests freeing storage or attaching temporary external storage for the merge in exactly this situation.
Do not move, rename or delete .avhdx files directly. Each one holds changes the parent disk does not have, and Microsoft's guidance is that they should not be deleted directly. Removing one without merging discards that data and can leave the VM unable to start.
Starting the merge once the numbers work
This step is the disruptive part. Deleting a checkpoint merges its data down and permanently removes your ability to roll back to that point, so confirm you no longer need it. Microsoft's guidance is to back up critical VMs before merges or deletions, and if the VM matters you should have a restore point that does not depend on the checkpoint you are removing. There is no undo once the merge has completed.
Merging adds disk load on the host while it runs, and the VM remains usable in the meantime. If the merge fails or the volume fills, other VMs on the same volume are at risk, which is why the space check comes first.
- In Hyper-V Manager, select the VM, right-click the checkpoint in the Checkpoints pane and choose Delete Checkpoint. To remove a checkpoint and everything after it, right-click the earliest one and choose Delete Checkpoint Subtree. If those options are missing, for example on a backup-created checkpoint, select the checkpoint and press the Delete key. Alternatively, preview the PowerShell route first. The -WhatIf switch only reports what would happen.
Remove-VMSnapshot -VMName 'YOUR_VM_NAME' -Name 'YOUR_CHECKPOINT_NAME' -WhatIf - When the preview names only the checkpoint you expect, run the same command without -WhatIf. This command removes one checkpoint only, merging it into the next disk in the chain.
Remove-VMSnapshot -VMName 'YOUR_VM_NAME' -Name 'YOUR_CHECKPOINT_NAME' - Hyper-V Manager shows the merge in progress against the VM. Leave it alone until it clears, which can take hours on a long chain. Do not restart the host mid-merge.
- Confirm success. Get-VMSnapshot should no longer list the checkpoint, the disk-chain command from earlier should show the .vhdx without a leftover .avhdx, the .avhdx file should be gone from the folder and free space on the volume should have recovered. Then check the VM itself starts and behaves normally.
When to stop and hand it over
Stop and get proper help if any of these apply, because manual merging of a damaged chain is where data gets lost:
- Hyper-V Manager shows no checkpoints, but .avhdx files exist and are growing. This is often a backup product that failed to clean up, and your backup vendor will know its own checkpoint handling. In one widely reported pattern, merges started after a backup and were interrupted, and the .avhdx grew until the host volume filled. Reported workarounds included powering the VM off to trigger the merge, but none was an official fix.
- Merges fail repeatedly. Microsoft lists missing 'Log on as a service' rights for the NT VIRTUAL MACHINE\Virtual Machines group, antivirus interference and file locks among the causes, and one administrator reported a domain policy overriding that right.
- Get-VHD reports errors on part of the chain, or a parent file is missing. Microsoft says to back up all files before any repair attempt.
- The volume is already full or the VM will not start. Microsoft's fallback is to shut the VM down and merge each differencing disk into its parent with Edit Disk, working from child to parent, or Merge-VHD. Merge-VHD is an offline operation and needs the chain detached, so this is a planned-downtime job with a backup behind it.
- You have a very long chain. Microsoft suggests scheduling downtime and merging sequentially once there are more than about 50 checkpoints.
Technical terms explained
- AVHDX
- The file extension for a Hyper-V differencing disk created by a checkpoint. It holds the changes made since the checkpoint was taken, while the parent disk stays as it was.
- checkpoint
- A saved point in time for a Hyper-V virtual machine, which it can be returned to. Standard checkpoints include memory state and production checkpoints do not.
- differencing disk
- A virtual disk that stores only the changes made relative to a parent disk. A checkpoint creates one, and a merge writes its contents back into the parent.
- dynamically expanding
- A virtual disk type whose file starts small and grows as data is written, up to a maximum virtual size. Fixed disks occupy their full size from the start.
Sources and further reading
- Using checkpoints - Microsoft Learn
- Guidance for troubleshooting Hyper-V snapshots, checkpoints and differencing disks (AVHDX) - Microsoft Learn
- How to merge checkpoints that have multiple differencing disks - Microsoft Learn
- Troubleshoot Hyper-V virtual machine backup, checkpoint and storage failures - Microsoft Learn
- Merge-VHD cmdlet reference - Microsoft Learn
- Remove-VMSnapshot cmdlet reference - Microsoft Learn
- Get-VHD cmdlet reference - Microsoft Learn
- AVHDX not merging after backups - Veeam R&D Forums
- What is the proper way to cleanup excess .avhdx files created by Hyper-V? - Microsoft Q&A