http://support.microsoft.com/kb/2249906?wa=wsignin1.0
icacls “C:\Program Files\Microsoft Learning\20417\Drives\20417A-LON-DC1\Virtual Hard Disks\20417A-LON-DC1.vhd” /grant “NT VIRTUAL MACHINE\ 09C72D4C-53D1-44B5-A2F6-43830044D4C7”:F
===============================================================
Hyper-V virtual machines may not start, and you receive an error: “‘General access denied error’ (0x80070005)”
SYMPTOMS
{83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to Power on with Error ‘General
access denied error’
IDE/ATAPI Account does not have sufficient privilege to open attachment
‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’
Account does not have sufficient privilege to open attachment
‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’
If you click See details, the following error is listed:
5FC5C385-BD98-451F-B3F3-1E50E06EE663)‘VMName’ Microsoft Emulated IDE Controller (Instance ID
{83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to Power on with Error ‘General
access denied error’ (0x80070005). (Virtual machine ID
5FC5C385-BD98-451F-B3F3-1E50E06EE663)‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment
‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)
‘VMName’: Account does not have sufficient privilege to open attachment
‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)
Notes
- This error message references either the Microsoft Emulated IDE Controller or the Microsoft Synthetic SCSI Controller.
- This error message references either a virtual hard disk (.vhd) file or a snapshot file (.avhd).
- The Virtual Machine ID is unique to each virtual machine.
CAUSE
RESOLUTION
- Note the Virtual Machine ID that is listed in the “‘General access denied error’ (0x80070005)” error message.For example, consider the following error message:
‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment
‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)In this example, the Virtual Machine ID is 5FC5C385-BD98-451F-B3F3-1E50E06EE663.
- Open an elevated command prompt.
- To give the Virtual Machine ID (SID) access to the .vhd or .avhd file, type the following command, and then press ENTER:
icacls <Path of .vhd or .avhd file> /grant “NT VIRTUAL MACHINE\<Virtual Machine ID from step 1>“:FFor example, to use the Virtual Machine ID that was noted in step 1, type the following command, and then press ENTER:icacls “E:\VMs\VMName\Disk0.vhd” /grant “NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663”:F
- Start the virtual machine.
MORE INFORMATION
If you click See details, the following error is listed:
To resolve this issue, perform the steps in the Resolution section to add the Virtual Machine SID to the .xml file.
Example command to add the Virtual Machine SID to the .xml file:
icacls “E:\VMs\VMName\7E77503A-A26B-4BB5-9846-396F49A30141.xml” /grant “NT VIRTUAL MACHINE\7E77503A-A26B-4BB5-9846-396F49A30141”:F