VirtualBox

Ticket #1660 (closed defect: fixed)

Opened 1 year ago

Last modified 7 months ago

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

Reported by: satya Assigned to:
Priority: critical 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

VBox.log.1 (38.8 kB) - added by satya on 2008-06-03 16:03:15.
VirtualBox Log
Ubuntu.xml (4.2 kB) - added by satya on 2008-06-03 16:04:01.
VirtualBox XML configuration
vbox210resume_kern.log (20.7 kB) - added by marcoc on 2008-12-17 18:19:23.
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 on 2008-12-18 11:14:43.
VBox.log file of same session of kern.log attached yesterday (truncated repeating messages at end to fit in max size)

Change History

2008-06-03 16:03:15 changed by satya

  • attachment VBox.log.1 added.

2008-06-03 16:04:01 changed by satya

  • attachment Ubuntu.xml added.

VirtualBox XML configuration

2008-08-12 18:19:43 changed by frank

  • owner changed.
  • host changed from other to Windows.
  • component changed from other to VMM/HWACCM.

2008-09-08 08:40:15 changed by heheh

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

2008-09-08 09:24:38 changed by sandervl73

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

2008-09-08 09:24:44 changed by sandervl73

  • version changed from VirtualBox 1.6.0 to VirtualBox 2.0.0.

2008-09-08 09:26:42 changed by sandervl73

  • keywords set to suspend resume.

2008-09-08 10:38:03 changed by sandervl73

  • priority changed from major to critical.

2008-09-08 10:38:50 changed by sandervl73

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.

2008-09-10 16:32:21 changed by dmex

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.

2008-09-26 09:43:13 changed by sandervl73

  • host changed from Windows to other.

2008-09-26 09:43:27 changed by sandervl73

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

2008-09-26 09:43:35 changed by sandervl73

  • version changed from VirtualBox 2.0.0 to VirtualBox 2.0.2.

2008-10-29 05:44:39 changed by timrichardson

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

(follow-up: ↓ 14 ) 2008-10-29 09:19:31 changed by sandervl73

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 ) 2008-11-02 20:00:10 changed by pebo

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?

2008-11-02 22:45:31 changed by timrichardson

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

2008-11-07 14:50:48 changed by sandervl73

  • summary changed from Vista host fails to resume from sleep if VirtualBox running to Vista 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.

2008-11-12 19:57:08 changed by fzzzt

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.

2008-11-13 10:17:30 changed by sandervl73

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

2008-11-24 22:30:50 changed by marcoc

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.

2008-11-25 08:11:38 changed by frank

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.

2008-12-17 13:56:36 changed by sandervl73

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in 2.1.

2008-12-17 18:19:23 changed by marcoc

  • attachment vbox210resume_kern.log added.

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

2008-12-17 18:20:07 changed by marcoc

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

2008-12-18 10:19:16 changed by frank

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?

2008-12-18 11:14:43 changed by marcoc

  • attachment Devel_CE50-2008-12-17-18-26-09.log added.

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

2008-12-18 20:32:22 changed by marcoc

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 :-)

2008-12-18 20:56:35 changed by frank

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.

2008-12-18 22:09:46 changed by sandervl73

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.

2008-12-19 09:22:02 changed by marcoc

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.

2008-12-19 10:00:02 changed by sandervl73

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

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy