Synthetic SCSI Controller failed to Power on with Error access is denied

I was working on setting up a VM for my server farm and mis-configured one of the vhdx drives. I ended up having to delete that drive and recreate it in Hyper-V manager. When I did though, I received an error stating that I could not start the virtual machine:

An error occurred while attempting to start the selected virtual machine(s).‘VMName’ failed to start. (Virtual machine ID ‘SomeID’)‘VMName’ Microsoft Emulated IDE Controller (Instance ID ‘SomeID’): Failed to Power on with Error ‘General access denied error’ (0x80070005). (Virtual machine ID ‘SomeID’)‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment ‘C:\Users\Public\Documents\Hyper-V\Virtual hard disks\DiskName.vhdx’. Error: ‘General access denied error’ (0x80070005). (Virtual machine ID ‘SomeID’)

‘VMName’:  Account does not have sufficient privilege to open attachment ‘V:\Hyper-V\Virtual hard disks\DiskName.vhdx’. Error: ‘General access denied error’ (0x80070005). (Virtual machine ID ‘SomeID’)

Causes

Each virtual machine is started using a virtual machine account. The virtual machine account needs read and write access to the .vhd/.vhdx file, but if the file has just been copied from somewhere then it most likely lacks the necessary file permissions.
That happened in my case because I had just created the vhdx drive and did not create it from the VM itself. I just attached it to the VM. So, when I booted the VM, it gave the error.

Remediation

There are a few ways that you could remediate the issue. The simplest way, if it is a new VM, is to remove the drive in the VM settings and then re-create it from scratch. That is what fixed it for me.
Another way is to add the VM GUID to the permissions so that it can access the vhdx file properly:

  • If you don’t already have the Hyper-V Manager error dialog open (“An error occurred while attempting to start the selected virtual machine(s) …”) then try to start the virtual machine now. You need the error open.
  • Click “See details”. This will show additional details, and will look something like:

‘PC-Name’ failed to start. (Virtual machine ID B9C4F7D4-0009-4BE2-90FB-9D60B1A06BDD) ‘PC-Name’ Microsoft Emulated IDE Controller (Instance ID XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX): Failed to Power on with Error ‘General access denied error’ (0x80070005). (Virtual machine ID B9C4F7D4-0009-4BE2-90FB-9D60B1A06BDD)‘PC-Name’: IDE/ATAPI Account does not have sufficient privilege to open attachment ‘E:\Hyper-V\PC-Name\Virtual Hard Disks\MyVHD.vhdx’. Error: ‘General access denied error’ (0x80070005). (Virtual machine ID B9C4F7D4-0009-4BE2-90FB-9D60B1A06BDD)‘PC-Name’: Hyper-V Virtual Machine Management service Account does not have sufficient privolege to open attachment ‘E:\Hyper-V\PC-Name\Virtual Hard Disks\MyVHD.vhdx’. Error: ‘General access denied error’ (0x80070005). (Virtual machine ID B9C4F7D4-0009-4BE2-90FB-9D60B1A06BDD)

Where PC-Name will be the name of your virtual PC. The long sequence of letters and numbers (in my case above “B9C4F7D4-0009-4BE2-90FB-9D60B1A06BDD”) is the Virtual Machine ID. This number is significant and you need it to fix the problem.

I'm trying to start a VM I haven't started up in a while, and I think a Windows Update somehow borked the permissions of the VM account. I'm getting this error (serials and IDs replaced with underscores):

All the results I'm finding is that the VM account doesn't have NTFS permissions to read the VHDx, however, these are passthrough disks that are offline and I'm not aware of a way to directly give the NT VIRUTAL MACHINE\ VM GUID account permissions to read those disks. I'm inclined to just recreate the VM with the associated VHDx boot disk and passthrough disks (they're ZFS formatted and I have the VM configured to read them by disk GUID so I should be fine 😰) but I figured I'd reach out to see if someone else has had this problem first (and to see if there is a solution, to get it on Google to help the next guy).

Thanks!

EDIT: for shits and giggles I did end up recreating the VM with identical settings to the original and it booted fine with the disks; still curious if there's a way to fix the original VM though.

Views: 21

Read Time:2 Minute, 27 Seconds

As a Windows server administrator, you may experience issues where the virtual machine fails to start with error ‘General access denied error.’

With the Zesco power interruption issues, Zambia is constantly experiencing, your server may be brought down ungracefully at one point and the other.

Such power interruptions and shutdown of the server have more consequences to the operation of the machine as corruption to data and or complete loss of files necessary to run the Windows server.

This issue occurs when the permissions on the virtual hard disk (.vhdx) file or the snapshot file (.avhd) are incorrect.

Error of Virtual Machine failed to start

An error occurred while attempting to start the selected virtual machine(s). ‘Escalante’ failed to start. Synthetic SCSI Controller(Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to Power on with Error ‘General access denied error’ Account does not have permission to open attachment ‘E:\Virtual Machines\Escalante\Virtual Hard Disks\Escalante.vhdx. Error: ‘General access denied error’ 'Escalante' failed to start, (Virtual machine ID 9D0552D2-0DFB-40AF-A80F-B11FDD2A82BE)

However, a different error is returned when permissions on the Hyper-V virtual machine configuration file (.xml file) are incorrect

Unnamed VM’ failed to initialize. (Virtual machine 7E77503A-A26B-4BB5-9846-396F49A30141) ‘Unnamed VM’ failed to read or update the virtual machine configuration because access was denied: General access denied error (0×80070005). Check the security settings on the folder in which the virtual machine is stored. (Virtual machine 7E77503A-A26B-4BB5-9846-396F49A30141)

How To Resolve This Issue

To resolve this issue, add the Virtual Machine SID to the virtual hard disk (.vhdx) file or to the snapshot file (.avhd) by running a command.

Command to fix ‘Failed to power on virtual machine general access denied error’

To add the Virtual Machine SID to a .vhdx or .avhd file, follow these steps:


Note the Virtual Machine ID that is listed in the “‘General access denied error’ (0x80070005)” error message. This is accessed when you click on details in the Hyper-V Manager pop up window.

In my example, the Virtual Machine ID is 9D0552D2-0DFB-40AF-A80F-B11FDD2A82BE.

Open an elevated command prompt.

To give the Virtual Machine ID (SID) access to the .vhdx or .avhd file, type the following command, and then press Enter:

icacls <Path of .vhdx or .avhd file> /grant "NT VIRTUAL MACHINE\ <Virtual Machine ID as noted from the error details> ":(F)

Replace the path of your virtual machine and VM ID:

icacls "E:\Virtual Machine\Escalante\Virtual Hard Disks\Escalante.vhdx" /grant "NT VIRTUAL MACHINE\9D0552D2-0DFB-40AF-A80F-B11FDD2A82BE":(F)

According to Microsoft, this issue applies to the following Microsoft Hyper-v errors on Windows OS:

Hyper-V Server 2008

Microsoft Hyper-V Server 2008 R2

Windows Server 2008 R2

Datacenter Windows Server 2008 R2

EnterpriseWindows Server 2008 R2

Standard Windows Server 2008

DatacenterWindows Server 2008

Enterprise Windows Server 2008 Standard

Postingan terbaru

LIHAT SEMUA