The VM Failed To Restore… The System Could Not Find The File Specified (0x80070002)… The Operation Failed Because The File Was Not Found #HyperV

|

Published on | Updated on February 24, 2021

1 Min. Read

What a nice morning when you get a call from a customer @ 6AM.

[The Virtual Machine is not turning on, I sent you the screenshot!]

Really! What you do in this case? Be kind Smile

The error in PowerShell:

VMFailedToRestore-01

And in the UI:

VMFailedToRestore-02

As you can see, the error is indicating that “Microsoft Synthetic SCSI Controller: Failed…”

So let’s query the SCSI controller for that Virtual Machine.

PS C:/>Get-VMHardDiskDrive –VMNAME <NAME> | ?{$_.ControllerType –eq ‘SCSI’}VMFailedToRestore-06

We have 3 disks attached to the SCSI controller.

Have you noticed something? The disk attached to Controller Location 2 is missing! The Path is empty\

However the disk attached to Controller Location 1 is pass-through disk using DiskNumber 9.

What is the status of the VM?

VMFailedToRestore-13

Can you Turn Off a VM in Saved State?

NO!

VMFailedToRestore-10

Can you remove the disk while the VM in Saved State?

And NO!

VMFailedToRestore-04

Can you delete the Saved State of the VM?

YES Smile

From the UI:

VMFailedToRestore-12

Or using PowerShell:

PS C:/>Get-VM | ?{$_.State -eq ‘saved’} | Remove-VMSavedState

VMFailedToRestore-14

And here you go… The VM started Smile

VMFailedToRestore-15

You might wonder why the disk failed and showing as “Not Found”?

The host rebooted, then all VMs entered in Saved State, when the host came back online, the VMs supposed to be turned on automatically, however the pass-through disk that was attached to this VM failed Surprised smile, he was using an external USB disk Thumbs down.

In conclusion Pass-though disks are not flexible and don’t use them.

Hope this help,

N’joy your weekend!

Cheers,
/Charbel

Previous

StarWind V2V Converter #StarWind

Microsoft Releases Virtual Machine Converter V3.0 #HyperV #MVMC

Next

Let me know what you think, or ask a question...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Charbel Nemnom’s Blog

Get the latest posts delivered right to your inbox

The content of this website is copyrighted from being plagiarized! You can copy from the 'Code Blocks' in Black.

Please send your feedback to the author using this form for any 'Code' you like.

Thank you for visiting!