Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-06-18
12
Medium Priority
?
7,548 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
12 Comments
 
LVL 11

Accepted Solution

by:
Pradeep Dubey earned 2000 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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
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

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

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

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…
Suggested Courses

971 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