I keep getting an error when performing a live migration from one host to another. There were 5 VMs on the source host. I moved 4 of them to the destination host without issue. For some reason, the last one keeps failing. It will perform the migration, and
once it gets to 100%, it errors out and fails. After the failure, the VM reboots on the source host and comes back up normally (hard reset). There is no VM on the destination host, but there is a vhdx file in the proper location that is the same size as the
source vhdx file.
The only difference that I can tell between the machines is that the one that is failing is 650GB (takes around 8 hours to migrate). The next highest is 350GB (no issues).
Both hosts on the same domain. Both hosts are running Hyper-V Server 2012 R2 (not Windows Server).
Both hosts are configured with the default options and locations (mostly).
Both hosts using local storage (no NAS/SAN/shared storage).
File permissions of source vhdx look identical to all other vhdx files on my other hosts.
I have 15 other hosts set up similarly on the same domain/network. I've done hundreds of live migrations between them, and never had an issue (up until this one).
Things I've tried:
1) Migrating to a different destination host. Same issue.
2) Shutting down the VM. Deleting the VM. Creating a new VM. Attaching the same vhdx file. Same issue.
3) Migrating a different VM from the destination host to the source host, then back again. Works just fine... The issue seems to be only with this VM and/or vhdx file.
Full error:
There was an error during move operation.
Virtual machine migration operation failed at migration source.
Mirror operation failed.
Virtual machine migration operation for 'VM-NAME' failed at migration source 'SOURCE-HOST'.
Migration did not succeed. Mirror operation failed for the source VHD file 'C:\users\public\Documents\hyper-v\Virtual hard disks\VM-NAME.VHDX' to the destination file '\\DESTINATION-HOST\SOURCE-HOST.1856233294$\C\users\public\Do...\Virtual hard disks\VM-NAME.VHDX':
'General access denied error' ('0x80070005').
Thoughts on possible issues:
1) Is it possible that the permissions/kerberos tickets expire due to the long migration time?
2) Is there an issue with this path: \\DESTINATION-HOST\SOURCE-HOST.1856233294$\C\users\public\Do...\Virtual hard disks\VM-NAME.VHDX' ? The destination path should be \\DESTINATION-HOST\c$\users\public\documents\hyper-v\virtual hard disks\VM-NAME.VHDX
. I am not sure if this is some temporary share created by hyper-v, or if this is where the error is occurring. The file seems to transfer to the correct location, but maybe the final commands after it reaches 100% are using the wrong path so it fails?
3) Some other issue? Any ideas would be appreciated. If you know of anywhere I can look to get more details (logs), please let me know. If you need what is in the logs, please be specific (as there are many logs and places to look).
I wish I could call Microsoft so they could help me with this bug, but unfortunately, there is noone to call.