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

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

[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

About Charbel Nemnom 310 Articles
Charbel Nemnom is a Microsoft Cloud Consultant and Technical Evangelist, totally fan of the latest's IT platform solutions, accomplished hands-on technical professional with over 15 years of broad IT Infrastructure experience serving on and guiding technical teams to optimize performance of mission-critical enterprise systems. Excellent communicator adept at identifying business needs and bridging the gap between functional groups and technology to foster targeted and innovative IT project development. Well respected by peers through demonstrating passion for technology and performance improvement. Extensive practical knowledge of complex systems builds, network design and virtualization.

Be the first to comment

Leave a Reply