VirtualBox

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1660 closed defect (fixed)

Vista host fails to resume from sleep if VirtualBox running -> fixed in SVN

Reported by: satya Owned by:
Component: VMM/HWACCM Version: VirtualBox 2.0.2
Keywords: suspend resume Cc:
Guest type: other Host type: other

Description

I have noticed this happen very conistently. I have Ubuntu Hardy running in VirtualBox 1.6 on a Vista SP1 Business host. The physical computer is a Dell D620 laptop with a nVidia Quadro NVS 110m display card.

Attachments (4)

VBox.log.1 (38.8 KB ) - added by satya 16 years ago.
VirtualBox Log
Ubuntu.xml (4.2 KB ) - added by satya 16 years ago.
VirtualBox XML configuration
vbox210resume_kern.log (20.7 KB ) - added by marcoc 15 years ago.
kern.log of resume boot after suspend with VM active (VirtualBox 2.1.0 on Ubuntu 8.04)
Devel_CE50-2008-12-17-18-26-09.log (75.8 KB ) - added by marcoc 15 years ago.
VBox.log file of same session of kern.log attached yesterday (truncated repeating messages at end to fit in max size)

Download all attachments as: .zip

Change History (32)

by satya, 16 years ago

Attachment: VBox.log.1 added

by satya, 16 years ago

Attachment: Ubuntu.xml added

VirtualBox XML configuration

comment:1 by Frank Mehnert, 16 years ago

Component: otherVMM/HWACCM
Host type: otherWindows

comment:2 by heheh, 16 years ago

Have exactly the same issue. The vista host hangs after I reopen the lid of thinkpad.

comment:3 by Sander van Leeuwen, 16 years ago

#1938 has been marked as a duplicate (vmldptr fault after suspend).

comment:4 by Sander van Leeuwen, 16 years ago

Version: VirtualBox 1.6.0VirtualBox 2.0.0

comment:5 by Sander van Leeuwen, 16 years ago

Keywords: suspend resume added

comment:6 by Sander van Leeuwen, 16 years ago

priority: majorcritical

comment:7 by Sander van Leeuwen, 16 years ago

Will not be fixed in the next maintenance release (not enough time left). For now simply don't suspend the host machine when a VM is running.

We'll try to address this in 2.0.4.

comment:8 by dmex, 16 years ago

Has done the same on Windows Hosts for the last 8 months, If the PC enters sleep mode while Virtualbox is running it either BSODs on resume or doesnt resume at all.

There are APIs in Windows to prevent sleep mode while Virtualbox is running or there's another API to allow Virtualbox to save the Guest before letting Windows enter sleep mode.

comment:9 by Sander van Leeuwen, 15 years ago

Host type: Windowsother

comment:10 by Sander van Leeuwen, 15 years ago

Applies to both Linux and Windows hosts. (see e.g. #2023)

comment:11 by Sander van Leeuwen, 15 years ago

Version: VirtualBox 2.0.0VirtualBox 2.0.2

comment:12 by Tim RIchardson, 15 years ago

I guess a fix didn't make it into 2.0.4? (Linux user)

comment:13 by Sander van Leeuwen, 15 years ago

No, sorry. It's scheduled for the next major release. The code in SVN already contains the fix for Windows hosts.

in reply to:  13 comment:14 by pebo, 15 years ago

Replying to sandervl73:

It's scheduled for the next major release.

Does it mean it won't neither be fixed in 2.0.6? (which I suppose is the next version the come out)

The code in SVN already contains the fix for Windows hosts.

There is no chance for non-OSE users to benefit from that, is there?

comment:15 by Tim RIchardson, 15 years ago

I made a quick and dirty workaround for Debian (saving the session whenever suspend or hibernate happens), which at least avoids dataloss. The idea will work on all linuxes, I think. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502043#22

comment:16 by Sander van Leeuwen, 15 years ago

Summary: Vista host fails to resume from sleep if VirtualBox runningVista host fails to resume from sleep if VirtualBox running -> fixed in SVN

The new release isn't very far off. Currently both Linux & Windows hosts suspend and resume properly.

comment:17 by fzzzt, 15 years ago

I realize this is supposed to be fixed, just wanted to say I have this problem BUT it only happens if the VM that is running when the computer goes into sleep mode has hardware support on. If hardware virtualization is disabled, my Vista host sleeps/resumes normally.

comment:18 by Sander van Leeuwen, 15 years ago

fzzzt: This whole ticket is about VT-x/AMD-V and suspend/resume.

comment:19 by marcoc, 15 years ago

NOT fixed in 2.0.6 - at least on my Linux host (Ubuntu 8.04 on AMD64) running Windows 2000 guests. Just installed 2.0.6 hoping that it contained this long-awaited fix.

Suspending and resuming the host machine makes the VM window unresponsive. Must kill the process to get rid of it. Trying to start a VM again ends up in another unresponsive window. Must reboot the whole system to be able to use VirtualBox again.

comment:20 by Frank Mehnert, 15 years ago

We didn't write that this issue is fixed in 2.0.6. The change was a bit more intrusive so it will be contained in the next release.

comment:21 by Sander van Leeuwen, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in 2.1.

by marcoc, 15 years ago

Attachment: vbox210resume_kern.log added

kern.log of resume boot after suspend with VM active (VirtualBox 2.1.0 on Ubuntu 8.04)

comment:22 by marcoc, 15 years ago

Doesn't look fixed in 2.1. Same behavior as before. I did the following:

  • remove 2.0.6 (2.1 won't install over)
  • install 2.1 via the .deb package for hardy
  • start a VM (Win2000, 512M)
  • suspend Ubuntu
  • resume Ubuntu

Now the VM is frozen in its state before suspend. BTW I think something bad happened during the resume boot. I attach a copy of kern.log. HTH Marco

comment:23 by Frank Mehnert, 15 years ago

Macroc, you are reporting this problem with a Linux host, right? Could you attach a VBox.log file of such a session as well as the output of dmesg again?

by marcoc, 15 years ago

VBox.log file of same session of kern.log attached yesterday (truncated repeating messages at end to fit in max size)

comment:24 by marcoc, 15 years ago

It works! Sorry for bothering you with a non-existent problem. Just I didn't reboot Linux after installing 2.1. The installer didn't require a reboot and I was too eager to try the new feature. Then I had to, due to the VM lockup, and now it's working fine. Thanks to you all, now I can suspend my laptop with all VM's when it's time to go :-)

comment:25 by Frank Mehnert, 15 years ago

Hmm, It should work but it should not be necessary to reboot your host. Please try some more times to make sure the problem is really fixed for you.

comment:26 by Sander van Leeuwen, 15 years ago

You should still be very careful when leaving VMs running and putting the laptop to sleep. If it runs out of battery, you could end up with corrupted VMs.

Currently only Windows hosts save any active VM when the battery level goes below 10%. We'll add the same feature to both Linux and Mac OS X in the near future.

comment:27 by marcoc, 15 years ago

Sorry, maybe I'm not using the correct term: whenever I wrote "suspend" I meant saving state to disk and turn off, that should be "hibernate". Yesterday my laptop ran out of battery by mistake with a VM active and automatically hibernated, as configured. When I turned it back on, surprisingly, the VM was still alive after resume.

comment:28 by Sander van Leeuwen, 15 years ago

marcoc: that was the whole point of the fix/change in VirtualBox :)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use