In this article we will look at an issue related to Storage Live Migration in Windows Server 2012 R2, where the source VHD/VHDX-files is not deleted when the migration completes.
A while ago we started noticing at several customers and our own lab-environment that source VHD/VHDX-files was not deleted when the migration completes. In the Hyper-V Virtual Machine Management Service (VMMS) event log on the Hyper-V host where the virtual machine is running, event 20878 was logged with the error Failed to delete file ‘<Path to VHD/VHDX-file>’: ‘General access denied error'(‘0x80070005’):
To reproduce the problem, create a new virtual machine and perform a Storage Live Migration. A strange behavior we noticed is that the issue is not present on subsequent Storage Live Migrations of the same virtual machine.
After troubleshooting the issue for a while we opened a support case with Microsoft, who eventually advised us to uninstall the following hotfix:
The issue seems to be resolved after uninstalling the hotfix. The current status is reported back to the Hyper-V development team, and we would expect an upcoming hotfix to resolve the issue without needing to uninstall KB2966407.
This article will be updated when new information is available.