Hello. I have two 2012 domain joined servers running hyper-v. The domain is also 2012. The two hyper-v servers are replication partners. One is the primary which runs the virtual machines and the other one is the replica server which keeps copies of the virtual machines. All virtual machines replicate normally with no errors. Only one has problems replicating. I removed replication and created it again. Initial replication completes successfully. Also several replication cycles replicate normally. After a point the virtual machine stops replicating and the status is critical. The event log reports:
- Hyper-V could not replicate changes for virtual machine 'server1': General access denied error (0x80070005). (Virtual Machine ID D569EFAF-F74F-44DB-B253-F64C123D2FC2)
- Hyper-V suspended replication for virtual machine 'server1' due to a non-recoverable failure. (Virtual Machine ID D569EFAF-F74F-44DB-B253-F64C123D2FC2). Resume replication after correcting the failure
- Hyper-V failed to open the file 'E:\Virtual Machines\VM_HDD_Files\server1\server1_3527FD36-E705-4D69-AB98-C467EF5DEC85.hrl' for replication in primary server for virtual machine 'server1': General access denied error (0x80070005). (Virtual Machine ID D569EFAF-F74F-44DB-B253-F64C123D2FC2)
I removed and added replication several times and always have the same behavior, only for the specific virtual machine. Any help is welcome!!!!
I had the exact same issue. My problem was ultimately name resolution. I decommissioned a domain controller that was also serving as one of my DNS servers. When I went to the replica server and tried to ping the domain by name it failed. I found the IP4 DNS server information was never updated so after updating it and clearing the DNS cache (ipconfig /flushdns) then re-registering (ipconfig /registerdns) I was able to ping the domain again. Went back to the hyperv host and tried replicating again and was successful.
This took place because the general access denied error was a symptom of the machine unable to contact the domain for credential information for the group listed in the error (the SID of the VM).