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

Posted on 2013-06-18
Last Modified: 2016-10-13

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.
Question by:SpencerKarnovski
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
LVL 11

Accepted Solution

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.

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.

Author Comment

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.  


Expert Comment

ID: 39255984

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:

Hope that helps :)
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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.

Author Comment

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.
LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39258947

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

Author Comment

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

Expert Comment

by:Pradeep Dubey
ID: 39259834

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


Author Comment

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,

LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39285417

Sorry for delay, please ask new question.

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.

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

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

635 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