You are on page 1of 15

10/20/2014

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

SERVER MANAGEMENT SOLUTIONS

Click To Google Search !

HyperV General access denied error


May 14, 2013

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

HyperV General access denied error | Server Management 24x7 !

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

Like Be the first of your friends to like this.

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)

Server Management 24x7


Like

Server Management 24x7


via Red Hat - APAC
October 26, 2013

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

Red Hat partners


Singapore govt to push
open source data analytics
| ZDNet
2,733 people like Server Management 24x7.

Facebook social plugin

Juno David Ant


Follow

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

HyperV General access denied error | Server Management 24x7 !

Microsoft Synthetic SCSI Controller.


This error message references either a virtual hard disk (.vhd) file or a snapshot file (.avhd).

SUBSCRIBE TO OUR NEWSLETTER


Email *

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.

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

Windows admin interview questions Describe how


the DHCP lease is obtained. Its a four-step process
consisting of (a) IP request, (b) IP offer, IP selection
and (d) acknowledgement. I cant seem to access the
Internet, dont have any access to the corporate
network and on ipconfig my address is 169.254.*.*.
What happened? []

Linux and Unix System


Administration Interview
Questions
In: Generic Solutions, Interview Questions, IT Security,
Linux, Mail Servers, Remote Monitoring, Server
Management, Server Security, System Administration,
Technical Support

Linux and Unix System Administration Interview

Grant all rights to Virtual Machines, then click OK button.

Questions 1) What is GRUB GNU GRUB is a


Multiboot boot loader. It was derived from GRUB, the
GRand Unified Bootloader, which was originally
designed and implemented by Erich Stefan Boleyn.
Briefly, a boot loader is the first software program
that runs when a computer starts. It is []

HyperV General access denied


error
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html

3/19

10/20/2014

HyperV General access denied error | Server Management 24x7 !

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

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 []

Back to the Hyper-V configuration wizard window, click Finish button.

CloudStack vs OpenStack
In: Cloudstack, Openstack

First of all, let us take a look at Google Trends and


compare amount of search queries for OpenStack
and CloudStack. Obviously, OpenStack is attracting
more attention (red CloudStack; blue OpenStack).
OpenStack has much wider community and tons of
related articles. There are installation how-tos for all
the major Linux distributions and all []

The same error popped up again; Failed to create external configuration store at .. Close
the error message window, then click Cancel
button.

Linux and Unix, OpenSource


Interview Questions and
Answers
In: Careers, cPanel, Generic Solutions, Interview
Questions, Linux, Server Management, Technical Support,
Web hosting

Linux and Unix, OpenSource Interview Questions and


Answers Explain the booting process in linux The
system BIOS checks the system and launches the first
stage boot loader on the MBR of the primary hard
disk. The Frist stage boot loader loads itself into
memory and launches the second stage boot loader
from the /boot/ partition. []

How to configure Dual Php or


two versions of php on a linux /
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html

4/19

10/20/2014

HyperV General access denied error | Server Management 24x7 !

cpanel server
In: Linux, PHP

This scenario is based on the assumption that you


already have a linux cPanel server running with PHP
version. It could either be PHP 5.2 or php 5.3.17 etc.,
any version of your choice and you now plan to have
the latest and higher version of php also installed
and running from the same server []

Back to the virtual machine list, a empty virtual machine item is created.

Linux and Unix Server


Administration Sample
Interview Questionnaire
In: Interview Questions, Linux Sample Interview
Questions

No comments

I have come upon many people searching the


internet for sample interview questions and its
answers on Linux Server Management. I have listed a
few sample question as given below, but not the
answers. Its upto you to find the answers. Lets see
how many of you come up with the right answers.
Sample Tests []

Go to its settings window.

How to install Varnish cache on


cPanel and CentOS server to
cache all static content and
optimize performance
In: cPanel, cPanel Server Management

No

comments

Varnish Cache is a web application accelerator also


known as a caching HTTP reverse proxy. You install it
in front of any server that speaks HTTP and configure

Give it a proper name, then click Apply window.

it to cache the contents. Varnish Cache is really, really


fast. It typically speeds up delivery with a factor of
300 1000x, depending on your architecture. []

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

HyperV General access denied error | Server Management 24x7 !


Apachetuner.sh is one of the best available apache
performance tuning scripts available in the internet.
This is mostly compatible with the Redhat and
CentOS version / flavours of Linux Operating System.
This script helps you to understand the current usage
of your apache server, and then tune / optimize the
server accordingly [crayon5444844b3e12a965451606/] Link to []

Windows Server 2003 Booting


Process
In: Windows Servers

No comments

Boot sequence for Windows NT, 2000, XP and 2003:


BIOS: performs Power On Self Test (POST)
BIOS: loads MBR from the boot device

It seems OK now. Then configure the other parts.

specified/selected by the BIOS MBR: contains a small


amount of code that reads the partition table, the
first partition marked as active is determined to be
the system volume MBR: loads the boot sector from
the []

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

HyperV General access denied error | Server Management 24x7 !


Like

Chat with us

Below is the final settings.

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.

HyperV General access denied error | Server Management 24x7 !

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.
3.

4.

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>:
6. For example, to use the Virtual Machine ID that was noted in step 1, type the following
command, and then press ENTER:
5.

icacls E:\VMs\VMName\Disk0.vhd /grant NT VIRTUAL MACHINE\5FC5C385-BD98-451FB3F3-1E50E06EE663:F


7.

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-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

HyperV General access denied error | Server Management 24x7 !

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

HyperV General access denied error | Server Management 24x7 !

of the file {GUID}.xml (In this scenario is the 71DB1869-534A-4B0B-B2B8-B89170FC0EF0.xml).

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

HyperV General access denied error | Server Management 24x7 !

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

HyperV General access denied error | Server Management 24x7 !

Next step, open the E5D8FBFC-4E01-4D48-AE95-1CF1630E2C24.xml, and the replace


everything that has
the 71DB1869-534A-4B0B-B2B8-B89170FC0EF0 with E5D8FBFC-4E01-4D48-AE951CF1630E2C24. Save the
file replacing the existing one.

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

HyperV General access denied error | Server Management 24x7 !

rename the files (.bin and .vsv)


that are inside that folder to match the new GUID.

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

HyperV General access denied error | Server Management 24x7 !

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

Now give access permissions to the new VM Service SID access.


Icacls C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\324E6E76-77EC-46719E25-3D4B5D3133BA.xml /grant NT VIRTUAL MACHINE\E5D8FBFC-4E01-4D48-AE951CF1630E2C24:(F) /L
Icacls C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\D6EC4773-75A6-49E784D2-3B619D1D450C.xml /grant NT VIRTUAL MACHINE\E5D8FBFC-4E01-4D48-AE951CF1630E2C24:(F) /L
Go to the settings of the VM01 and assign the proper Network switch.
Start VM01 and youre DONE!!!!
Are you NUTS!!!! Thats too much work for a VM recovery!!!! And if I had 20 VMs to recover, that
process will take the entire month
**************************************************************
Option3:
This method is simpler, well re-assign the missing Symbolic links and give permissions to the
Service SID.Using Mklink,
create the Symbolic link under C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual
Machines
Mklink C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\71DB1869-534A4B0B-B2B8-B89170FC0EF0.xml
F:\VM01\Virtual Machines\71DB1869-534A-4B0B-B2B8-B89170FC0EF0.xml
Now give access permissions to the service SID to this Symbolic link.
Icacls C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\71DB1869-534A4B0B-B2B8-B89170FC0EF0.xml/grant NT VIRTUAL MACHINE\71DB1869-534A-4B0B-B2B8B89170FC0EF0:(F) /L
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html

14/19

10/20/2014

HyperV General access denied error | Server Management 24x7 !

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!

<a href="http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html">HyperV General access denied error</a>


Like Be the first of your friends to like this.

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

You might also like