If you have a Hyper-V VM which is stuck in the "Restoring" state, perform the following steps:
- Right-click on the Start menu > Run > services.msc
- Locate and double-click on Hyper-V Virtual Machine Management.
- Set the Startup type to Manual.
- Reboot (this may take a while - do not switch the PC off - just wait).
- Once rebooted, navigate to C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines by typing or copying/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, eg. A at the start of the filename.
- Leave that Explorer window open for now, as you will need it later!
- Right-click on the Start menu > Run > services.msc
- Locate and double-click on Hyper-V Virtual Machine Management.
- Set the Startup type to Automatic.
- Click on 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 on 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!
Ensure the VM is shut down cleanly and the PC is shut down cleanly, to prevent this from happening.