After moving HyperV VHDs "to a larger volume" get 'An error occurred while attempting to start the selected virtual machine(s). 'xx failed to start. Microsoft Emulated IDE Controller Instance ID xx:

Anonymous
2023-09-29T14:43:40+00:00

I do find the icacls command to run at elevated command prompt but I do not get a VIRTUAIL ID in the error. Just have a MACHINE ID in error.

Full error contents:

An error occured while attempting to start the selected virtual machine(s).

'Egnyte_Turbo' failed to start.

Microsoft Emulated IDE Controller (Instance ID 83F8638B-8DCA-4152-9EDA-2CA8B33039B4): Failed to Power on with Error 'General access denied error'.

IDE/ATAPI Account does not have sufficient privilege to open attachment 'D:\Egnyte_Turbo_Device\Virtual Hard Disks\turbo_vm-disk1_00F1A107-10E2-4710-9355-410E88521D76.avhdx'. Error: 'General access denied error'.

Account does not have sufficient privilege to open attachment 'D:\Egnyte_Turbo_Device\Virtual Hard Disks\turbo_vm-disk1_00F1A107-10E2-4710-9355-410E88521D76.avhdx'. Error: 'General access denied error'.

Windows for business | Windows Server | Storage high availability | Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-10-05T06:59:52+00:00

    Hi,

    Do you receive the error 0x80070005? If yes, you need the Virtual Machine ID. Please follow the steps belows.

    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:

    1. Note the Virtual Machine ID that is listed in the error 0x80070005 (General access denied error). 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.
    
    1. Open an elevated command prompt.
    2. To give the Virtual Machine ID (SID) access to the .vhd or .avhd file, type the following command, and then press Enter: ConsoleCopy
       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 you noted in step 1, type the following command, and then press Enter: ConsoleCopy
       icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)
      
    3. Start the virtual machine.

    Hyper-V virtual machine doesn't start with error 0x80070005 - Windows Server | Microsoft Learn

    Best Regards,

    Ian Xue

    1 person found this answer helpful.
    0 comments No comments