Fix General Access Denied Error in Hyper-V
One of the most common error when a user works with Virtual Hard Drive is the General Access Denied Error. A few days ago, I got a query related to this very issue. The person was moving the storage files from one location to another on the Virtual machine. After that, when he tried to open the machine again, he would get this error every time.
I gave him a solution and he was able to fix this error successfully. In this blog, we will share the same solution for fixing General Access Denied Error in Hyper-V. We hope that you will also be able to get rid of this error.
An error occurred while attempting to start the selected virtual machine(s).
When the See Details is clicked, the information displayed in the image below is shown.
The main reason behind the occurrence of this error is that the permissions on the VHD file are not correct. All the Hyper-V machines have unique Virtual Machine ID known as SID. In case this SID is not present in the security permissions of the VHD file, the virtual machine will not start and the error “General Access Denied Error” is encountered in Hyper-V.
There are a few solutions, which can be used to remove this error. They are:
1) Add SID To VHD File
The first method is to add the Virtual Machine ID to the VHD file. In order to do so, follow the below-mentioned steps:
- Note down the ID of the virtual machine. It can be seen in the last paragraph of the message description, as shown in the error image.
- Open Command Prompt.
- Give access of VHD file to the SID by entering the following command:
icacls <Path of .vhd file> /grant “NT VIRTUAL MACHINE\<Virtual Machine ID>” :(F)
- Press Enter.
- Exit Command Prompt and restart the Virtual Machine.
2) Grant Full Permissions to Virtual Machine Folder Without Command Prompt
In order to fix this error, give full access permissions to the folder containing all the VM files. Do this with the help of following procedure:
- Browse to the folder where VM files are stored.
- Right click on the folder and click on Properties.
- Select the user group of Virtual Machines. Click on Edit option.
- Grant all the rights to the machine and click OK.
- Click Finish option and start Virtual Machine.
With the help of above-mentioned procedures, you can easily fix General Access Denied error in Hyper-V.