Bug 436256

Summary: Suspend to disk fails
Product: [openSUSE] openSUSE 11.1 Reporter: Rastislav Krupansky <rastislav.krupansky>
Component: YaST2Assignee: Martin Kudlvasr <mkudlvasr>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: dmacvicar, jreidinger
Version: Beta 2   
Target Milestone: ---   
Hardware: x86   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: snapshot
pm-suspend log
yast2 logs
menu.lst

Description Rastislav Krupansky 2008-10-16 19:57:30 UTC
Created attachment 246087 [details]
snapshot

Hi.
I am trying suspend to disk in VirtualBox.
If i choose suspend to disk via kickoff menu -> leave -> suspend to disk, nothing happens. If i choose suspend to disk via kpowersave, suspend fails with error on attached snapshot.
Comment 1 Rastislav Krupansky 2008-10-16 19:58:04 UTC
Created attachment 246088 [details]
pm-suspend log
Comment 2 Forgotten User ZhJd0F0L3x 2008-10-17 09:46:21 UTC
ERROR: no resume parameter on kernel commandline, can not suspend

It looks like either
- you have no swap partition, or
- YaST did, for some reason, not put the correct resume= parameter into the boot loader config.
Comment 3 Forgotten User ZhJd0F0L3x 2008-10-17 09:47:50 UTC
And when you continue testing, don't forget to check
http://en.opensuse.org/Bugs:Most_Annoying_Bugs_11.1_dev#Suspend ;-)
Comment 4 Rastislav Krupansky 2008-10-17 10:06:42 UTC
(In reply to comment #2 from Stefan Seyfried)
> ERROR: no resume parameter on kernel commandline, can not suspend
> 
> It looks like either
> - you have no swap partition, or
> - YaST did, for some reason, not put the correct resume= parameter into the
> boot loader config.
> 

i have swap. it was created automatically during installation and i did not change any options for swap.

(In reply to comment #3 from Stefan Seyfried)
> And when you continue testing, don't forget to check
> http://en.opensuse.org/Bugs:Most_Annoying_Bugs_11.1_dev#Suspend ;-)
> 

i´m sorry to create probably duplicate. i did not look through most annyoings bugs (my fault).
if it would be fixed, i´ll wait on Beta3 and i´ll give you a feedback.

if you don´t need next info, i´m removing status needinfo.
Comment 5 Forgotten User ZhJd0F0L3x 2008-10-17 11:58:12 UTC
(In reply to comment #4 from Rastislav Krupansky)
> (In reply to comment #2 from Stefan Seyfried)
> > ERROR: no resume parameter on kernel commandline, can not suspend
> > 
> > It looks like either
> > - you have no swap partition, or
> > - YaST did, for some reason, not put the correct resume= parameter into the
> > boot loader config.
> > 
> 
> i have swap. it was created automatically during installation and i did not
> change any options for swap.

Then it is a YaST bug, to not add a "resume=/your/swap/partition" argument to the boot command line.

You can now do that by yourself by editing /boot/grub/menu.lst and rebooting, but make sure to add

splash = n

to /etc/suspend.conf, otherwise it will still not suspend (because of the most annoying bug ;-)

Reassigning to YaST team.
Comment 6 Stanislav Visnovsky 2008-10-17 14:07:26 UTC
Please, attach YaST2 logs.
Comment 7 Rastislav Krupansky 2008-10-17 18:35:07 UTC
Created attachment 246352 [details]
yast2 logs
Comment 8 Rastislav Krupansky 2008-10-20 05:52:36 UTC
logs were provided
Comment 9 Josef Reidinger 2008-10-20 06:38:21 UTC
From logs I see that resume argument is added, only possible problem can be that bootloader set it as  resume=/dev/disk/by-id/ata-VBOX_HARDDISK_VB323632bc-772f3278-part1 .
Comment 10 Josef Reidinger 2008-10-23 08:32:58 UTC
Does VirtualBox support resume? It fail when I test it even with kernel device in resume.
Comment 11 Martin Kudlvasr 2008-10-27 18:15:25 UTC
I assume you're trying hibernate in virtualbox to test hibernate in openSUSE. I agree it would be useful for testing.

I tried suspend to disk with OS11.1b3 (host) and OS11.1b3 (hosted). Leave -> Suspend to disk worked. After starting the machine again, it was resuming and at the end of resuming it crashed. The (end of the) vbox log says:

00:00:48.943 
00:00:48.943 !!Assertion Failed!!
00:00:48.943 Expression: <NULL>
00:00:48.943 Location  : /usr/src/packages/BUILD/VirtualBox-2.0.2/src/recompiler/VBoxRecompiler.c(4260) cpu_abort
00:00:48.943 fatal error in recompiler cpu: Trying to execute code with memory type addr_code=00000000f99ea020 addend=fffffffffed00000 at 00000000f99ea428. (iHandlerMemType=0x70 iMMIOMemType=0x60)
00:00:48.943 

looks like the final stage of restoration - execution of the data loaded into memory is a problem for virtualbox.
Comment 12 Josef Reidinger 2008-10-29 07:48:50 UTC
OK, so now I must find why log says that resume isn't attached even if my log says that it is. 
Can you please provide your bootloader configuration file (if you use grub then /boot/grub/menu.lst)?
Comment 13 Rastislav Krupansky 2008-11-03 20:39:02 UTC
Created attachment 249462 [details]
menu.lst
Comment 14 Josef Reidinger 2008-11-04 15:31:02 UTC
OK, I see that resume parameters to kernel is correctly set, so it must be problem in VirtualBox or kernel.
Comment 15 Martin Kudlvasr 2008-11-20 14:33:38 UTC
It is a problem in virtualbox, but I think this is a feature. Virtualbox tries to maintain some level of security by not allowing to execute arbitrary memory.
Fixing this bug is far beyond packages capabilities. I reported this bug upstream as an enhancement. 
http://www.virtualbox.org/ticket/2633