Background disk merge failed to complete: General access denied error (0x80070005)

Background disk merge failed to complete


When removing a snapshot for a virtual machine the AVHDX files do not merge to the parent disk and the Event ID 19100 is logged in the Microsoft-Windows-Hyper-V-VMMS event log.

Log Name: Microsoft-Windows-Hyper-V-VMMS-Admin
Source: Microsoft-Windows-Hyper-V-VMMS
Date: 30/06/2020 07:02:15
Event ID: 19100
Task Category: None
Level: Error
Computer: xxx-xxxxxxxxxxx.xxxxxxx.xxxxxxxxxx
‘xxx-xxxxxxxxxxxx’ background disk merge failed to complete: General access denied error (0x80070005). (Virtual machine ID xxxxxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxxxx)


Correct the permissions

In PowerShell run

get-vm | fl name, id

Which will output the ID of the virtual server you need to merge

Output example:
Name : BackupVM
Id :

For each VM ID you need to merge, assign the VMMS process full control by running the following command

icacls <Folder with VHDS> /grant “NT VIRTUAL MACHINE\<VM ID>”:(OI)F


icacls “D:\Hyper-V\Main Server\VHDX Files” /grant “NT VIRTUAL MACHINE\a0af7903-94b4-4a2c-b3b3-16050d5f80f2”:(OI)F

Merge the changes

This is due to a snapshot merge having failed due to the host machine not having correct permissions set on the VHD(x) files.

Note that your VM must be turned off to avoid any issues during the merging operation.

FYI – If you do follow the steps without the VM off as who has time to wait for a VM Disk to merge with the power off, this can be run while online although it is slight more “dangerous” as to get the VM into a working state requires breaking it further to then fix it.

  • Merge the disks while online
  • Shutdown the VM (hope it doesn’t hang)
  • You will now find the machine will not boot due to the AVHDX files being missing. Panic stations!
  • Trust me on this one now! Take a note of the locations of both existing disks.
  • Remove both AVHDX disks from the iSCSI controllers and click apply
  • Re-add the newly merged VHDX files onto the iSCSI controllers on the same controller ID’s they were on previously.
  • Boot the VM up and happy days!

To merge Hyper-V snapshots, do the following:

  • Open Hyper-V Manager.
  • Select the required VM.
  • Click Edit Disk. The Edit Virtual Hard Disk Wizard will open. Click Next.
  • Click Browse to select the latest AVHDX file. Click Next.
2020 06 30 15 47 31 Window
  • Select Merge to merge the changes stored in a differencing disk into the parent or another disk. Click Next.
2020 06 30 15 47 37 Window
  • Select To the parent virtual hard disk and click Finish.
2020 06 30 15 47 46 Window

To fully complete the process of merging Hyper-V snapshots, repeat the steps for each AVHDX file, until all of the changes have merged into the original parent disk.

Found priceless insights in this blog? Support the author’s creativity – buy them a coffee!

4 thoughts on “Background disk merge failed to complete: General access denied error (0x80070005)

  1. You need to encapsulate the end :(OI)F in quotes.
    icacls E:\hyperv /grant “NT VIRTUAL MACHINE\616a14dd-9bdb-4a85-a3a6-22084c1a7a66″”:(OI)F”

    1. Ah thanks James, must have been a typo!

      UPDATE: I have done some testing to check this and this looks to work both with and without “” for me.

  2. We had similar case. The culprit was a GPO resetting the “Log on as a service” policy, removing NT Virtual Machine\Virtual Machines.
    Restarting VMMS was fixing temporarily only the problem. Adding this group into the GPO definitely solved our problem of snapshot not merging.

Leave a Reply

Your email address will not be published. Required fields are marked *