HyperV General Access Denied Error - Server Management 24x7 !
HyperV General Access Denied Error - Server Management 24x7 !
HyperV General Access Denied Error - Server Management 24x7 !
ABOUT US
IT OPERATIONS
SERVER MANAGEMENT
TECHNICAL SUPPORT
WEB SERVICES
CLOUD SOLUTIONS
2 1
Search
Home Cloud Solutions Microsoft Azure Microsoft Hyper-V Server Management Server Security System Administration Team
Management Time Management Web hosting Web Services Windows Servers HyperV General access denied error
by: jdavid
in: Cloud Solutions, Microsoft Azure, Microsoft Hyper-V, Server Management, Server Security, System
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
1/19
10/20/2014
Administration, Team Management, Time Management, Web hosting, Web Services, Windows Servers
No Comment
Follow 40 people are following Juno David Antony K. Be the first of your friends.
Find us on Facebook
Send
Welcome to the
World of Linux Server Management, Windows Server Management, Kernel Programming, Ethical Hacking, Cloud Solutions, Vmware Vsphere
ESXi, Xen Servers, Server hardening, Server administration etc.,
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 errorIDE/ATAPI Account does not have sufficient privilege to open attachment
E:\VMs\VMName\Disk0.vhd. Error: General access denied errorAccount 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
Server Manageme
Follow
+1
+ 27
This error message references either the Microsoft Emulated IDE Controller or the
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
2/19
10/20/2014
Subscribe!
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)
Solution 1:
I noticed that the virtual machine folder was created, but only contains an empty Virtual
Machines sub folder.Right click this folder, and
go to the Properties -> Security, select Virtual Machines user group, then click Edit
button, then select Virtual Machines user group
again, we can see that this user group doesnt have any rights over the new folder.
Windows Server
Administration Interview
Questions
In: Application Support, Interview Questions, Windows
8, Windows Servers
3/19
10/20/2014
In: Cloud Solutions, Microsoft Azure, Microsoft HyperV, Server Management, Server Security, System
Administration, Team Management, Time Management,
Web hosting, Web Services, Windows Servers
No
comments
CloudStack vs OpenStack
In: Cloudstack, Openstack
The same error popped up again; Failed to create external configuration store at .. Close
the error message window, then click Cancel
button.
4/19
10/20/2014
cpanel server
In: Linux, PHP
Back to the virtual machine list, a empty virtual machine item is created.
No comments
No
comments
Apachetuner.sh Apache
Performance Tuning Script
In: Apache, Performance Optimization
No
comments
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
5/19
10/20/2014
No comments
TERMS OF USE
TOS - The information provided in this website is only
for the general information purposes. The
information is provided by the "Server Management
24x7" Technical community members and while we
try to ensure that the information is up to date and
correct, we make no representations or warranties of
any kind, express or implied, about the accuracy,
reliability, suitability or availability with respect to the
website or the information, products, services, or
related graphics contained on the website for any
purpose. Any reliance you place on such information
is therefore strictly at your own risk.
Create a new virtual hard disk, then specify DVD drive and network drive.
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
Like
6/19
10/20/2014
Chat with us
Done.
This solution is far from perfect, but hopefully is good enough in most of cases.
Solution 2:
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.
1.
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
7/19
10/20/2014
2.
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.
3.
4.
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>:
6. For example, to use the Virtual Machine ID that was noted in step 1, type the following
command, and then press ENTER:
5.
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-9846396F49A30141)Unnamed VM failed to read or update
the virtual machine configuration because access was denied: General access denied error
(080070005). Check the security settings on
the folder in which the virtual machine is stored. (Virtual machine 7E77503A-A26B-4BB5-9846396F49A30141)
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
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
8/19
10/20/2014
NT VIRTUAL MACHINE\7E77503A-A26B-4BB5-9846-396F49A30141:F
For more information about Hyper-V, visit the following Microsoft website:
http://technet.microsoft.com/en-us/library/cc753637(WS.10).aspx
How to recover Hyper-V Virtual Machine manually..
One of these days I was testing one of my Hyper-Vs and because of a mistake of mine I
removed all the VM associations to Hyper-V
mmc console and SCVMM
Now what!!!! I knew that the supported way to add those machines back to the Hyper-V and
SCVMM was through backup/Restore or
I could import them using an previous export, but those machines were new VMs created
only for the test propose, I had no backup
or export of them.
How to import them back? Ok, no panic, first thing to check is the files, are the VM files still in
place? Yes!!! Ok, that means not all is lost
Note: The GUIDs mentioned here belong to my virtual machine, in your network the GUIDs will
differ.
How to recover Hyper-V Virtual Machine manually.
1 Option:
Easy enough, you create a new VM choose the option attach a virtual hard disk latter or Use
an existing virtual hard disk and
then map the VM to the disk used before by the other missing VM, of course, you can copy
the disk to the new VM folder to keep
all files together.
Nah.. I need the VM configuration, those configurations were critical to my tests and I dont
have the configuration paper with me. Lets try Option 2
**************************************************************
2 Option:
First go to the missing VM folder\virtual Machines\ and take note
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
9/19
10/20/2014
Now open the Hyper-V mmc and create a new VM with the same name, and point the new VM
to the same drive/folder where
the missing VM is at.
Choose the option attach a virtual hard disk latter and do a next, next, thing until you finish
the VM creation process.
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
10/19
10/20/2014
Now go to the VM folder and under Virtual Machines folder you have 2 GUIds.xml, the
original 71DB1869-534A-4B0B-B2B8-B89170FC0EF0.xml (that you take note in the first step)
and the new (in this scenario)
E5D8FBFC-4E01-4D48-AE95-1CF1630E2C24.xml that refers to the new VM (Note: The GUIDs
that you have, will differ from these).
The next step is to copy everything that is inside of the old 71DB1869-534A-4B0B-B2B8B89170FC0EF0.xml to the
new E5D8FBFC-4E01-4D48-AE95-1CF1630E2C24.xml, yes, everything Basically youre
replacing the contents of the
new {GUID}.xml with data from the old one. Save the file with the same name in the same
place replacing the existing one.
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
11/19
10/20/2014
Next step, copy the files that are inside the F:\VM01\Virtual Machines\71DB1869-534A-4B0BB2B8-B89170FC0EF0
to F:\VM01\Virtual Machines\E5D8FBFC-4E01-4D48-AE95-1CF1630E2C24, you must also
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
12/19
10/20/2014
If you have snapshots, then you also need to rename some files and folders inside Snapshots
folder. Open VM01\Snapshots
folder. Rename the folder VM01\Snapshots \71DB1869-534A-4B0B-B2B8-B89170FC0EF0 to
VM01\Snapshots\E5D8FBFC-4E01-4D48-AE95-1CF1630E2C24. Then open the
VM01\Snapshots\{GUIDofTheSnapshot}
and rename the files inside that folder (.bin and .vsv) to match the GUID of the new VM (If you
have multiple snapshots, you have
to repeat the same process to each one).
Now, open VM01\Snapshots\{GUIDofTheSnapshot}.xml and replace the values
with 71DB1869-534A-4B0B-B2B8-B89170FC0EF0 with the new VM GUID E5D8FBFC-4E014D48-AE95-1CF1630E2C24.
(If you have multiple snapshots, you have to repeat the same process to each one).
Now is time to allow access to the Service SID access to all files in VM01, from
cmdline type:Icacls F:\VM01\ /T /grant NT VIRTUAL MACHINE\E5D8FBFC-4E01-4D48-AE951CF1630E2C24:(F)
The last step is to manually create a symbolic link and grant the proper permissions to each
individual snapshot that has a {GUID}.
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
13/19
10/20/2014
xml inside the VM01\snapshots folder (in this case therere 2 snapshots)
.Mklink C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\324E6E76-77EC-46719E25-3D4B5D3133BA.xml
F:\VM01\Snapshots\324E6E76-77EC-4671-9E25-3D4B5D3133BA.xml
Mklink C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\D6EC4773-75A6-49E784D2-3B619D1D450C.xml F:\VM01\Snapshots\D6EC4773-75A6-49E7-84D23B619D1D450C.xml
14/19
10/20/2014
Then you need to give access permissions to the Service SID to all files in VM01Icacls F:\VM01\
/T /grant NT VIRTUAL MACHINE\71DB1869-534A-4B0B-B2B8-B89170FC0EF0:(F)Since
VM01 has also Snapshots,
we need to create the correspondent symbolic link and give the necessary permissions to the
files
(This process must be done to each snapshot).Mklink
C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\324E6E76-77EC-4671-9E253D4B5D3133BA.xml
F:\VM01\Snapshots\71DB1869-534A-4B0B-B2B8-B89170FC0EF0.xml
Mklink C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\D6EC4773-75A6-49E784D2-3B619D1D450C.xml
F:\VM01\Snapshots\71DB1869-534A-4B0B-B2B8-B89170FC0EF0.xml
Now, assign the permissions:
Icacls C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\324E6E76-77EC-46719E25-3D4B5D3133BA.xml /grant NT VIRTUAL MACHINE\71DB1869-534A-4B0B-B2B8B89170FC0EF0:(F) /L
Icacls C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\D6EC4773-75A6-49E784D2-3B619D1D450C.xml /grant NT VIRTUAL MACHINE\71DB1869-534A-4B0B-B2B8B89170FC0EF0:(F) /L
Go to the settings of the VM01 and assign the proper Network switch.
Start VM01 and youre DONE!!!!
ShareThis
Link to this post!
Send
Follow 40 people are following Juno David Antony K. Be the first of your friends.
Related Posts:
1. Massive datacenter to bring Windows Azure to China
2. HTTP ERROR CODES
3. Restricting su Access to System and Shared Accounts
4. Restricting Direct Login Access for System and Shared Accounts
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html
15/19