VirtualBox

Opened 8 years ago

Closed 8 years ago

#14981 closed defect (fixed)

Failed to load unit 'hda' when restoring guest session

Reported by: jms-vbox Owned by: pentagonik
Component: other Version: VirtualBox 5.0.12
Keywords: Cc:
Guest type: Windows Host type: Linux

Description

VirtualBox version: VirtualBox VM 5.0.12 r104815 linux.amd64 with latest guest additions installed (5.0.12) Host: LINUX_64BITS_UBUNTU_15_10, 32GB RAM Guest: Windows 10 64bit, 4GB RAM

When trying to restore guest session of Win10 a message window appears with following error message:

Failed to load unit 'hda' (VERR_SSM_LOADED_TOO_LITTLE).

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

I can start guest by discarding saved state and starting from beginning, but error will repeat every time when I try to restore. I think this started after update to 5.0.12 (from 5.0.10).

Attachments (8)

VBox.log.zip (29.1 KB ) - added by jms-vbox 8 years ago.
Guest log file
VBox.log (208.0 KB ) - added by Raffaello D. Di Napoli 8 years ago.
Ubuntu guest failing to load saved state
VBox.2.log (104.5 KB ) - added by Raffaello D. Di Napoli 8 years ago.
Windows 7 guest successfully loading saved state
VBox.log.2.zip (28.7 KB ) - added by jms-vbox 8 years ago.
VBox_1st_after_login.txt (100.9 KB ) - added by jms-vbox 8 years ago.
VBox_2nd_after_login.txt (176.3 KB ) - added by jms-vbox 8 years ago.
VBox.3.log (173.7 KB ) - added by jms-vbox 8 years ago.
Log file with version 5.0.13-104900
VBox.4.log (176.8 KB ) - added by jms-vbox 8 years ago.
Log file with version 5.0.13-104913

Download all attachments as: .zip

Change History (28)

by jms-vbox, 8 years ago

Attachment: VBox.log.zip added

Guest log file

comment:1 by devsk, 8 years ago

I get the error during starting a saved Windows 10 VM but the error is (VERR_SSM_STRUCTURE_MAGIC) instead.

comment:2 by Raffaello D. Di Napoli, 8 years ago

I get the same error text, but with a different VERR reason:

Failed to load unit 'hda' (VERR_INVALID_PARAMETER).

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

Host is Gentoo Linux amd64, guest is Ubuntu Linux i386.

The guest was started last night, along with a Windows 7 guest; after saving the state of both VMs, I hibernated my machine as always. This morning I resumed the Ubuntu guest first, getting the error above; then I skeptically tried Windows 7, which surprisingly resumed just fine; so I tried once again Ubuntu, getting the same error.

Looking at the log I see also VERR_SSM_LOADED_TOO_MUCH after the first VERR_INVALID_PARAMETER.

I don’t know if this is relevant at all or not (“hda” makes me think of an issue with the first virtual IDE hd), but I see mentioned a screen resolution of 1152x769, while I set all my VMs to 1152x768. After discarding the saved state that I can’t load I’ll see if I really made the guest 1px taller than intended, or if this is an off-by-one error in VirtualBox.

by Raffaello D. Di Napoli, 8 years ago

Attachment: VBox.log added

Ubuntu guest failing to load saved state

by Raffaello D. Di Napoli, 8 years ago

Attachment: VBox.2.log added

Windows 7 guest successfully loading saved state

comment:3 by Raffaello D. Di Napoli, 8 years ago

I just confirmed that the guest screen resolution is correct; I really did inadvertently make it 1152x768.

I attached the logs for the two guests I resumed this morning; hopefully this will help you find any differences. Their configuration is fairly similar, though one is using KVM and the other Hyper-V acceleration, and the Windows 7 guest has over 5 times the amount of RAM of the Ubuntu guest (4 vs .75 GB).

The guests were both running last night when I suspended both, simultaneously.

I forgot to mention, I’m running 5.0.12 r104815, installed just a few days ago (upgraded from 4.3.x).

comment:4 by pentagonik, 8 years ago

The saved state handling should be fixed since r104839. Please give this test build a try:

https://www.virtualbox.org/download/testcase/VirtualBox-5.0.13-104845-Linux_amd64.run

comment:5 by pentagonik, 8 years ago

Owner: set to pentagonik
Status: newassigned

by jms-vbox, 8 years ago

Attachment: VBox.log.2.zip added

comment:6 by jms-vbox, 8 years ago

I uninstalled 5.0.12 and installed that test build, I didn't update guest additions.

I still can't load saved Windows10 session, error message is same as in opening message. I attached new log file.

comment:7 by Frank Mehnert, 8 years ago

jms, are you able to reliable reproduce this error with the 5.0.13 test build? So far we try to reproduce but are not successful.

comment:8 by jms-vbox, 8 years ago

I tried again with 5.0.13 and I noticed that this issue could be related to state of guest.

Again I uninstalled 5.0.12 and installed 5.0.13, I can see in dmesg that 5.0.13 modules are loaded:

vboxdrv: Found 8 processor cores
vboxdrv: TSC mode is Invariant, tentative frequency 2691447265 Hz
vboxdrv: Successfully loaded version 5.0.13 (interface 0x00240000)
vboxpci: IOMMU not found (not registered)
vboxdrv: ffffffffc11d1020 VMMR0.r0
vboxdrv: ffffffffc071f020 VBoxDDR0.r0
vboxdrv: ffffffffc0015020 VBoxDD2R0.r0

I first started Windows10 guest session from scratch and saved session right after I logged in to my corporate account (VBox_1st_after_login.txt). I was able to start this saved session without any problem. Then after this saved session's login process proceeded further by starting all applications Skype for Business etc (all icons are visible at Windows notification area). I saved this "complete" session. This session was not able to start, error message is like following (VBox_2nd_after_login.txt):

Failed to load unit 'hda' (VERR_SSM_STRUCTURE_MAGIC).

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

So for me it seems that the state of guest operating system could have an impact to this issue. I can not reproduce this with my Windows7 guest.

Last edited 8 years ago by jms-vbox (previous) (diff)

by jms-vbox, 8 years ago

Attachment: VBox_1st_after_login.txt added

by jms-vbox, 8 years ago

Attachment: VBox_2nd_after_login.txt added

comment:9 by pentagonik, 8 years ago

Please try one of these newest build available here which should fix the issue.

(Frank: Better always update the testbuilds wiki page)

Last edited 8 years ago by Frank Mehnert (previous) (diff)

comment:10 by jms-vbox, 8 years ago

Unfortunately problem still exists in latest test build. I installed package VirtualBox-5.0.13-104900-Linux_amd64.run. Log file is attached. Error message copied from error dialog:

Failed to open a session for the virtual machine Win10.

Failed to load unit 'hda' (VERR_SSM_LOADED_TOO_LITTLE).

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

by jms-vbox, 8 years ago

Attachment: VBox.3.log added

Log file with version 5.0.13-104900

comment:11 by pentagonik, 8 years ago

Another testbuild 104913 is available here: https://www.virtualbox.org/wiki/Testbuilds

comment:12 by jms-vbox, 8 years ago

Problem exists with test build VirtualBox-5.0.13-104913-Linux_amd64.run too. This time error message was:

Failed to open a session for the virtual machine Win10.

Failed to load unit 'hda' (VERR_SSM_STRUCTURE_MAGIC).

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

Like before, I created saved session (which I tried to restore) using this same build 104913. Log file is attached.

by jms-vbox, 8 years ago

Attachment: VBox.4.log added

Log file with version 5.0.13-104913

comment:13 by Tim T ASP, 8 years ago

May be related to #15001.

comment:14 by Frank Mehnert, 8 years ago

Thanks for the additional logs. The latest test builds contain a fix which should finally fix this problem.

comment:15 by jarvin, 8 years ago

I disabled audio and then re-enabled again as per this forum advice to no avail until I switched Intel HD Audio over to ICH AC97, now the restoring the saved state works.

It is 100% reproducible on my Windows 10 host (Intel i7 machine, VBox 5.0.13 test build) for Fedora 23 64 bit and Ubuntu Gnome 15.10 64 bit, in both directions, meaning switching to Intel HD Audio gives errors on a state restore, and switching to ICH AC97 works okay on state restore.

So, this is just the Intel HD Audio driver issue!

in reply to:  14 comment:16 by jms-vbox, 8 years ago

Replying to frank:

Thanks for the additional logs. The latest test builds contain a fix which should finally fix this problem.

Latest test build (5.0.13-104993-Linux_amd64) fixes this issue, I can't reproduce the error any more. Thank you for your help.

comment:17 by Frank Mehnert, 8 years ago

jms, thank YOU for the extensive tests and providing several log files, that was VERY helpful!

in reply to:  15 comment:18 by Frank Mehnert, 8 years ago

Replying to jarvin:

I disabled audio and then re-enabled again as per this forum advice to no avail until I switched Intel HD Audio over to ICH AC97, now the restoring the saved state works.

It is 100% reproducible on my Windows 10 host (Intel i7 machine, VBox 5.0.13 test build) for Fedora 23 64 bit and Ubuntu Gnome 15.10 64 bit, in both directions, meaning switching to Intel HD Audio gives errors on a state restore, and switching to ICH AC97 works okay on state restore.

So, this is just the Intel HD Audio driver issue!

Which test build did you test? Please make sure to test 5.0.13 >= 104993!

comment:19 by jarvin, 8 years ago

Tested Intel HD Audio regarding the state restore against VBox 5.0.13.105046. It works!

Many thanks!

comment:20 by pentagonik, 8 years ago

Resolution: fixed
Status: assignedclosed

Great, thanks for testing! Closing this defect.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use