Solved

"An error occurred while attempting to start selected virtual machines"

Posted on 2013-06-18
12
6,377 Views
Last Modified: 2016-10-13
Hello.

We are attempting to Virtualise one of our servers.  We have installed Hyper-V, and VVM2008.  We are trying to start a VM in Hyper-V, but get the following error.

Please see attached image.


Any suggestions.  Thanks.
hyperv.jpg
0
Comment
Question by:SpencerKarnovski
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 11

Accepted Solution

by:
Pradeep Dubey earned 500 total points
ID: 39255755
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
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.

http://support.microsoft.com/kb/2249906
0
 

Author Comment

by:SpencerKarnovski
ID: 39255875
Hello pradeep08_81,

Thanks for your assistance here.  

We tried adding <b>"icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-" </b> entering the path, and our own VM SID (generated by the error) and we still get the error.

The icacls entered correctly via the cmd, in that is passed successfully without any errors.  

Frustrating.
0
 
LVL 9

Expert Comment

by:VirastaR
ID: 39255984
Hi,

Check the syntax again,

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

Your VM ID is : 59872F92-842E-4887-AC29-A53A20AD8089 (As per screenshot)

if not try steps in this:
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html

Hope that helps :)
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39256029
If this is not working then check for *.avhd files in the same directory where the vhd files are stored (check for the default location also for avhd files) if they are there then run the command with the avhd file path and same VM SID.

It will resolve the issue.
http://support.microsoft.com/kb/2249906
0
 

Author Comment

by:SpencerKarnovski
ID: 39258706
Thanks for the links - very informative.  Turns out that it was a profile issue.  We added administrator credentials when creating the VM, but we was logged on the physical server (the one we was copying) with the same credentials.  So when creating the VE, we used different admin credentials and got it to work.

Thanks for your help.
0
 
LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39258947
Spencer,

It seems you forget to give points. I have given the answer.
0
 

Author Comment

by:SpencerKarnovski
ID: 39258955
Yeh, sorry - points will be added to you via admin.
0
 
LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39259834
Spencer,

Question is open now. Its your turn to give points.

:-)
0
 

Author Comment

by:SpencerKarnovski
ID: 39261993
Hey pradeep08_81,

Points assigned mate.  

Could you help me out, do you have any idea what sort of network disruption will happen when we assign a local area virtual connections (in Hyper-V) to an externally teamed NIC?

We would like do this live, but the server is our main DC - so I need to research what is going to happen "if" we click yes.

Please see image,

Thanks.
wtf.jpg
0
 
LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39285417
SpencerKarnovski,

Sorry for delay, please ask new question.
0
 

Expert Comment

by:Krunal Patel
ID: 41843095
"An error occurred while attempting to start selected virtual machines"

Tried accessing below link but 404 error is visible.
http://servermanagement24x7.com/hyper-v-general-access-denied-error-0x80070005.html

I still could not delete the VMs and it is eating all the space on the machine.

I tried the icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F) option but it still doesnot allow to delete the VM.

Please help
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question