N/APosted on - 02/16/2014
I am facing an odd error message and struggling to find the solution for it. The error triggered when I try to delete the saved state. I am just a beginner, having hard time. Account is having sufficient privilege to open attachments. To my knowledge I think I have all kind of access. Then why I get this error message? Hunting for solution please help me. Your help is really great. Thanks.
Virtual Machine Connection
The application encountered an error while attempting to change the state of ‘CentOS-V’.
‘CentOS-V’ failed to start.
Microsoft Emulated IDE Controller (Instance ID 83F86388-8DCA-41 52-9EDA-2CA8B33039B4):
Failed to Power on with Error General access denied error.
IDE/ATAPI Account does not have sufficient privilege to open attachment ‘C:UsersPublicDocumentsHyper-AVirtual hard disksCentOS-V.vhd’. Error General access denied error’.
Account does not have sufficient privilege to open attachment ‘C:UsersPublicDocumentsHyper-VVirtuai hard disksCentOS-V.vhd’. Error ‘General access denied error’.
An error occurred while attempting to change the state of ‘CenOS-V’
This problem happens in case the permissions or authorization on the snapshot file “.avhd” or the virtual hard disk file “.vhd” are not correct. Each Hyper-V virtual machines has its own unique SID or Virtual Machine ID. If ever the Virtual Machine SID has gone missing from the security permissions on the “.avhd” or “.vhd” file, the virtual machine will not start and then throwing you the error “general access denied error [0x80070005]”.
To fix this problem you need to add the Virtual Machine SID to the snapshot file “.avhd” or to the virtual hard disk file “.vhd”. To do this, in your error message you need to click on the “See details” option on the bottom left corner and then take note of the Virtual Machine ID. It should look something like this. See image.
The Virtual Machine ID in this example is 5FC5C385-BD98-451F-B3F3-1E50E06EE663. After that, open command prompt as administrator and run the following command and then hit Enter:
icacls "E:VMsVMNameDisk0.vhd" /grant "NT VIRTUAL MACHINE5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)
Here is the syntax for the command above so you can understand how the information are derived:
icacls <Path of .vhd or .avhd file> /grant "NT VIRTUAL MACHINE<Virtual Machine ID from step 1>":(F)
After running this command, start the virtual machine.