Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 2249906 - Last Review: August 5, 2011 - Revision: 3.0
Hyper-V virtual machines may not start, and you receive an error: “‘General access denied error’ (0x80070005)â€
A Hyper-V virtual machine may fail to start and you receive an error that resembles the following:
An error occurred while attempting to start the selected virtual machine(s).
‘VMName’ failed to start.
Microsoft Emulated IDE Controller (Instance ID
{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:
‘VMName’ failed to start. (Virtual machine ID
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.
This issue occurs if the permissions on the virtual hard disk (.vhd) file or the snapshot file (.avhd) are incorrect.
Hyper-V virtual machines have a unique Virtual Machine ID (SID). If the Virtual Machine SID is missing from the security permissions on the .vhd or .avhd file, the virtual machine does not start, and you receive the following error:
‘General access denied error’ (0x80070005)
To resolve this issue, add the Virtual Machine SID to the virtual hard disk (.vhd) file or to the snapshot file (.avhd).
To add the Virtual Machine SID to a .vhd or .avhd file, follow these steps:
- 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>":F
For 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.
If permissions are incorrect on the Hyper-V virtual machine configuration file (.xml file), the virtual machine will fail to start with the following error:
‘Unnamed VM’ failed to initialize.
An attempt to read or update the virtual machine configuration failed because access was denied.
If you click See details, the following error is listed:
‘Unnamed VM’ failed to initialize. (Virtual machine 7E77503A-A26B-4BB5-9846-396F49A30141)
‘Unnamed VM’ failed to read or update the virtual machine configuration because access was denied: General access denied error (0×80070005). Check the security settings on the folder in which the virtual machine is stored. (Virtual machine 7E77503A-A26B-4BB5-9846-396F49A30141)
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
For more information about Hyper-V, visit the following Microsoft website:
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See
Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations.
APPLIES TO
- Microsoft Hyper-V Server 2008
- Microsoft Hyper-V Server 2008 R2
- Windows Server 2008 R2 Datacenter
- Windows Server 2008 R2 Enterprise
- Windows Server 2008 R2 Standard
- Windows Server 2008 Datacenter
- Windows Server 2008 Enterprise
- Windows Server 2008 Standard
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate