AVHDXMerging
AVHDXMerging
2. In case of 1 VM have many drive inside separate to each other, you have to
do it 1 drive at a time
3. Launch Hyper-V Manager, select the target VM and click Edit
Disk… button to open an Edit Virtual Hard Disk Wizard.
4. Click Next to skip the introduction page and go to the Locate Disk tab,
click Browse… to select the AVHDX file you want to delete. Click Next to
continue.
7. Review the Summary and click Finish to start merging. Then system will
take sometime (15 Minutes) to complete merging process
8. Repeat step 2 – 7 to merge all AVHDX completely then go to #9
9. Back to Setting then enable checkpoint back to normal
10.Back to checkpoint then select Delete Checkpoint Subtree
Sample:
Explanations: Deletes all checkpoints of virtual machine TestVM whose names starts with
Experiment.
Explanations: Deletes all checkpoints of virtual machine TestVM older than 90 days.
11.Restart VM to get back to operate again if checkpoint have not been delete,
VM will unable to start properly.
12. Worse case scenario if VM can’t be start normally, let’s create new VM with the same
parameter but refer to VHDX that already been merged only
Clip: https://www.youtube.com/watch?v=XEMIiBOrseA
How to delete AVHDX file Hyper-V via PowerShell – Not Recommended
Note: You need to install Hyper-V PowerShell module in advance to run cmdlets.
Power off the target Hyper-V VM, launch Windows PowerShell, and run the following command to
merge the AVHDX file:
For example:
Sample:
Explanations: Deletes all checkpoints of virtual machine TestVM whose names starts with
Experiment.
Explanations: Deletes all checkpoints of virtual machine TestVM older than 90 days.