If you have a Hyper-V VM which is stuck in the "Restoring" state, perform the following steps:
- Right-click the Start menu > Run > services.msc.
- Locate and double-click Hyper-V Virtual Machine Management.
- Set Startup type to Manual.
- Restart the PC. This may take a while. Don't switch off the PC!
- Once rebooted, navigate to C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines by typing or pasting that path into the navigation bar at the top of an Explorer window.
- Locate and rename the .VMRS file to add an extra character, e.g. A at the start of the filename.
- Leave that Explorer window open for now, as you'll need it later.
- Right-click the Start menu > Run > services.msc.
- Locate and double-click Hyper-V Virtual Machine Management.
- Set Startup type to Automatic.
- Click the Start button in that window.
- Click OK.
- Rename the .VMRS file back to the original name.
- Open Hyper-V Manager using its shortcut on the taskbar.
- Right-click the IPOPP VM in the list and choose Delete Saved State.
- The status will change a couple of times, then the State will change from Saved to Off.
You should now be able to start the VM again.
To prevent this from happening, ensure the VM is shut down cleanly and the PC is shut down cleanly.