Asked By
lesliewestt
0 points
N/A
Posted on - 08/22/2011
Hi dear,
Please tell me why I am receiving this error that you can’t delete Virtual machine and cannot perform any type of operation until the object in current state.
Hyper-V Manager
An error occurred while attempting to delete the virtual machine.
Deleting                                               ‘failed,
The operation cannot be performed while the object is in its current states.
                                                      Close
Answered By
Ronald01
5 points
N/A
#103497
An error occurred while attempting to delete the virtual machine.
HI Lesliwestt,
To delete virtual machine the first thing you do is to turn off or shut down the machine and make sure to delete and clean all snapshots. M y friend also tried this when he was running the Hyper-V (beta version) in his machine.
After that you should check the service of VMMS. That it is running properly by right clicking on it.
And also check the service of Image Management, because these services are very important, if any one is not working properly.
It will cause a lot more problem with your machine Secondly check some other things thatÂ
-
Either you are managing the console of Hyper-VÂ remotely or not?Â
-
Check it physically.Â
-
What type of client is RDP'ing using? Microsoft or any other?
-
The main thing is the access, that any other user can also access the machine other than admin?
Hope you will figure out your problem and solve it.
Â
An error occurred while attempting to delete the virtual machine.
Hello Leslie,
To resolve the issue that you are getting, you will need to add the Virtual Machine SID to the virtual hard disk file or to the snapshot file using the following steps:
‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment
‘E:VMsVMNameDisk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)
The Virtual Machine ID is 5FC5C385-BD98-451F-B3F3-1E50E06EE663 in the above machine.
-
You will need to open an elevated command prompt.
-
In order to assign the Virtual Machine ID (SID) access to the .vhd or .avhd file, you will need to 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 instance, to use the Virtual Machine ID that was noted above, you will have to type the following command, and then press ENTER:
icacls "E:VMsVMNameDisk0.vhd" /grant "NT VIRTUAL MACHINE5FC5C385-BD98-451F-B3F3-1E50E06EE663":F
-
After that you can start the virtual machine.
Regards,
Carl