Error on restoring snapshot: Failed to locate a MMIO2 range

Discussions related to using VirtualBox on Windows hosts.
Post Reply
odie_one
Posts: 3
Joined: 5. Oct 2015, 00:46

Error on restoring snapshot: Failed to locate a MMIO2 range

Post by odie_one »

I've got a Windows 7 VM with a couple of saved snapshots. I discovered recently that I couldn't restore the snapshots anymore. The restoring progress bar goes up for a while, but then the VM is closed and I get this error:
---
Failed to open a session for the virtual machine DV.

pgm#1: Failed to locate a MMIO2 range called 'Hyper-V TSC page' owned by GIMDev/0, region 1 [ver=14 pass=final] (VERR_SSM_LOAD_CONFIG_MISMATCH).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
---
The only thing I could think of that might have messed something up was that I was fiddling around with Android emulators, installing and removing Andy and BlueStacks. I tried installing VirtualBox 5.0.6 (I think it was 5.0.2 before) with extensions and guest additions, but the same thing happens.

Is there any way to fix this without losing the snapshot? I managed to get it to boot from scratch, but it's the snapshot that's essential to me. Any help would be greatly appreciated. I attached the log (zip because of 128kb limit).
Thanks
Attachments
DV-2015-10-04-16-15-21.zip
(45.53 KiB) Downloaded 34 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by socratis »

You did the right thing by zipping the log file, but it seems to be corrupted. Could you try it again please?
  $ file ~/Desktop/DV-2015-10-04-16-15-21.zip
  ~/Desktop/DV-2015-10-04-16-15-21.zip: data
 Edit: I was able to open the zip from the command line, no need to re-post it. No clue why Dbl-clicking (Archive Utility) failed, while from the command line (unzip) it simply worked. Beats me... 
Last edited by socratis on 5. Oct 2015, 12:08, edited 1 time in total.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by Martin »

VERR_SSM_LOAD_CONFIG_MISMATCH
The snapshot seems to contain a saved state which is not compatible?
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by Ramshankar »

Your VM was configured with Hyper-V while you saved the state. However, while restoring, the paravirtualization provider is set to "None". How did you change the VM config. for a saved state? The VirtualBox GUI certainly doesn't allow changing this setting for a saved-state of a VM.
Oracle Corp.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by socratis »

Ramshankar wrote:Your VM was configured with Hyper-V while you saved the state. However, while restoring, the paravirtualization provider is set to "None".
Would you mind sharing the knowledge on how you were able to detect that information from the log file?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by mpack »

Well, Ramshanker may have other clues, but Hyper-v is mentioned in the OPs error message, but "Hypervisor present" is not set as a guest flag in the log file.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by Ramshankar »

socratis wrote:
Ramshankar wrote:Your VM was configured with Hyper-V while you saved the state. However, while restoring, the paravirtualization provider is set to "None".
Would you mind sharing the knowledge on how you were able to detect that information from the log file?
GIM - Guest Interface Manager (the component that deals with paravirtualization providers)
PGM - Paging Manager & Monitor (the component that deals with guest memory and paging)

VMs configured with a paravirt. provider always have a GIM device (GIMDev) attached to the VM automatically. This device, during VM initialization, may register special MMIO2 ranges of the guest memory for things like the Hyper-V TSC page, hypercall page etc. The error indicates that the saved state has these MMIO2 regions but PGM is unable to find a match for it in the current VM.

If you search the VBox.log for "GIM", you'll see no "GIMDev". This is because the VM is configured with GIM provider as "None" as can be seen from this log snippet:

Code: Select all

00:00:01.865791 [/GIM/] (level 1)
00:00:01.865792   Provider <string>  = "None" (cb=5)
...
00:00:01.909032 GIM: Using provider 'None' (Implementation version: 0)
mpack wrote:Well, Ramshankar may have other clues, but Hyper-v is mentioned in the OPs error message, but "Hypervisor present" is not set as a guest flag in the log file.
The HVP present bit is only a consequential indicator. You can set this bit even for VMs that don't have any paravirt. providers, as it's a hardware CPUID feature bit. The CFGM indicator of the paravirt. provider being configured for a VM is the line I quoted above from the VBox.log.
Oracle Corp.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by mpack »

Ah, I see. Thanks for the info.
odie_one
Posts: 3
Joined: 5. Oct 2015, 00:46

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by odie_one »

Ramshankar wrote:Your VM was configured with Hyper-V while you saved the state. However, while restoring, the paravirtualization provider is set to "None". How did you change the VM config. for a saved state? The VirtualBox GUI certainly doesn't allow changing this setting for a saved-state of a VM.
I don't think I did. I was looking at the .vbox file at some point when trying to figure out what the issue is but I don't believe I ever edited it. Are you suggesting that editing the .vbox file could help?
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by Ramshankar »

Could you please upload the .vbox file? It may be our bug...
Oracle Corp.
odie_one
Posts: 3
Joined: 5. Oct 2015, 00:46

Re: Error on restoring snapshot: Failed to locate a MMIO2 ra

Post by odie_one »

Including the .vbox file - changed extension to txt, since file upload didn't allow vbox extension. Thanks for your help.
Attachments
DV.txt
(80.38 KiB) Downloaded 90 times
Post Reply