VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Discussions related to using VirtualBox on Windows hosts.
Post Reply
AnrDaemon
Posts: 134
Joined: 7. Feb 2010, 23:41
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Linux, Windows

VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Post by AnrDaemon »

Code: Select all

Failed to open a session for the virtual machine Windows XP.

Failed to load unit 'HGCM' (VERR_SSM_UNEXPECTED_DATA).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Is there a way to start it? I'd very much like to NOT lose the session.
AnrDaemon
Posts: 134
Joined: 7. Feb 2010, 23:41
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Linux, Windows

Re: VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Post by AnrDaemon »

This seems to be the relevant part.

Code: Select all

00:00:05.080384 HGCM: Restoring [VBoxSharedFolders]
00:00:05.080429 HGCM: Restoring [VBoxGuestControlSvc]
00:00:05.080456 HGCM: Restoring [VBoxGuestPropSvc]
00:00:05.080490 HGCM: Restoring [VBoxSharedCrOpenGL]
00:00:05.080498 AssertLogRel F:\tinderbox\win-6.1\src\VBox\Main\src-client\HGCM.cpp(1498) int __cdecl HGCMService::LoadState(struct SSMHANDLE *,unsigned int): pSvc
00:00:05.080503 rc=VERR_HGCM_SERVICE_NOT_FOUND, VBoxSharedCrOpenGL
00:00:05.080534 SSM: LoadExec failed for 'HGCM' instance #0 (version 2, pass 0xffffffff): VERR_SSM_UNEXPECTED_DATA
00:00:05.080545 SSM: Unit at 0x196b6ce6, current position: offUnit=0x306 offUnitUser=0x29f
00:00:05.080550 VMSetError: F:\tinderbox\win-6.1\src\VBox\VMM\VMMR3\SSM.cpp(8921) int __cdecl ssmR3LoadExecV2(struct VM *,struct SSMHANDLE *); rc=VERR_SSM_UNEXPECTED_DATA
00:00:05.080553 VMSetError: Failed to load unit 'HGCM'
00:00:05.080603 SSM: Unit 'HGCM' contents:
00:00:05.080609 0x00000000: ac 38 00 00 06 00 00 00-12 00 00 00 11 00 00 00  .8..............
00:00:05.080613 0x00000010: 56 42 6f 78 53 68 61 72-65 64 46 6f 6c 64 65 72  VBoxSharedFolder
00:00:05.080616 0x00000020: 73 01 00 00 00 05 09 00-00 03 00 00 00 40 00 00  s............@..
00:00:05.080620 0x00000030: 00 08 00 00 00 00 00 00-00 5c 00 00 00 01 00 00  .........\......
00:00:05.080626 0x00000040: 00 01 08 00 00 00 08 00-00 00 43 3a 5c 47 61 6d  ..........C:\Gam
00:00:05.080634 0x00000050: 65 73 10 00 00 00 0c 00-0a 00 47 00 61 00 6d 00  es........G.a.m.
00:00:05.080646 0x00000060: 65 00 73 00 00 00 00 00-01 00 00 00 01 24 00 00  e.s..........$..
00:00:05.080652 0x00000070: 00 24 00 00 00 43 3a 5c-68 6f 6d 65 5c 61 6e 72  .$...C:\home\anr
00:00:05.080655 0x00000080: 64 61 65 6d 6f 6e 5c 2e-56 69 72 74 75 61 6c 42  daemon\.VirtualB
00:00:05.080659 0x00000090: 6f 78 5c 53 68 61 72 65-64 12 00 00 00 0e 00 0c  ox\Shared.......
00:00:05.080662 0x000000a0: 00 53 00 68 00 61 00 72-00 65 00 64 00 00 00 00  .S.h.a.r.e.d....
00:00:05.080665 0x000000b0: 00 01 00 00 00 01 06 00-00 00 06 00 00 00 43 3a  ..............C:
00:00:05.080669 0x000000c0: 5c 61 72 63 0c 00 00 00-08 00 06 00 61 00 72 00  \arc........a.r.
00:00:05.080672 0x000000d0: 63 00 00 00 00 00 01 00-00 00 01 13 00 00 00 13  c...............
00:00:05.080675 0x000000e0: 00 00 00 43 3a 5c 76 61-72 5c 6c 69 62 5c 64 72  ...C:\var\lib\dr
00:00:05.080679 0x000000f0: 77 65 62 75 70 64 16 00-00 00 12 00 10 00 64 00  webupd........d.
00:00:05.080682 0x00000100: 72 00 77 00 65 00 62 00-75 00 70 00 64 00 00 00  r.w.e.b.u.p.d...
00:00:05.080685 0x00000110: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080688 0x00000120: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080692 0x00000130: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080695 0x00000140: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080698 0x00000150: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080701 0x00000160: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080704 0x00000170: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080708 0x00000180: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080711 0x00000190: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080714 0x000001a0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080717 0x000001b0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080721 0x000001c0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080728 0x000001d0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080733 0x000001e0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080737 0x000001f0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080740 0x00000200: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080743 0x00000210: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080746 0x00000220: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
00:00:05.080750 0x00000230: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 14 00  ................
00:00:05.080753 0x00000240: 00 00 13 00 00 00 56 42-6f 78 47 75 65 73 74 43  ......VBoxGuestC
00:00:05.080756 0x00000250: 6f 6e 74 72 6f 6c 53 76-63 01 00 00 00 08 09 00  ontrolSvc.......
00:00:05.080759 0x00000260: 00 11 00 00 00 10 00 00-00 56 42 6f 78 47 75 65  .........VBoxGue
00:00:05.080763 0x00000270: 73 74 50 72 6f 70 53 76-63 02 00 00 00 09 09 00  stPropSvc.......
00:00:05.080766 0x00000280: 00 0e 09 00 00 13 00 00-00 12 00 00 00 56 42 6f  .............VBo
00:00:05.080769 0x00000290: 78 53 68 61 72 65 64 43-72 4f 70 65 6e 47 4c 00  xSharedCrOpenGL.
00:00:05.080772 0x000002a0: 00 00 00 13 00 00 00 12-00 00 00 56 42 6f 78 44  ...........VBoxD
00:00:05.080775 0x000002b0: 72 61 67 41 6e 64 44 72-6f 70 53 76 63 02 00 00  ragAndDropSvc...
00:00:05.080779 0x000002c0: 00 0f 09 00 00 11 09 00-00 14 00 00 00 13 00 00  ................
00:00:05.080782 0x000002d0: 00 56 42 6f 78 53 68 61-72 65 64 43 6c 69 70 62  .VBoxSharedClipb
00:00:05.080785 0x000002e0: 6f 61 72 64 01 00 00 00-0d 09 00 00 02 00 00 80  oard............
00:00:05.080788 0x000002f0: 02 01 20 19 0d 09 00 00-00 00 00 00 00 00 00 06  .. .............
00:00:05.080793 0x00000300: 04 92 19               -                         ...
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Post by fth0 »

A VM in a saved state is intended to be continued only in the same VirtualBox version. It often works between different versions, but is not guaranteed to. If you updated or downgraded the VirtualBox version, go back to the previous version, continue the VM and shut the guest OS down properly.
AnrDaemon
Posts: 134
Joined: 7. Feb 2010, 23:41
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Linux, Windows

Re: VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Post by AnrDaemon »

Welp. Thanks. I think I'll drop it then. As much as I dislike the idea, changing VB versions back and forth is probably a longer endeavor than restoring the client session.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Post by scottgus1 »

Just keep in mind that if 'restoring the client session' means getting the guest running and 'NOT lose the session', then you can't do that if you continue using the upgraded Virtualbox version while the guest is save-stated under an older version.

If you don't want to downgrade (takes 5 minutes?) then you have only the option to Discard Saved State (right-click the guest in the guest list). This will result in the guest losing all unsaved-to-disk data that was in the saved state, and the guest will reboot as if it was powered-off without shutdown. Data will be lost.

An uninstall and reinstall of Virtualbox costs only a few minutes. Just depends on how important is the data that was desired in the OP to not be lost.
AnrDaemon
Posts: 134
Joined: 7. Feb 2010, 23:41
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Linux, Windows

Re: VERR_SSM_UNEXPECTED_DATA when trying to start saved VM

Post by AnrDaemon »

"Restoring" means getting the session to the same state from clean boot. It's not problematic, just tedious. Mainly why I were using "save state" rather than shutdown.
Should probably have used hibernate. But I recall I've had issues with hibernation of Win XP in a VM.
Post Reply