VirtualBox critical error after zypper dup to 20210706 snapshot and 5.13 kernel

I posted a bugzilla report:

https://bugzilla.opensuse.org/show_bug.cgi?id=1188108

with .log file attached, but thought I should also provide a quick ‘heads up’ in this forum, as I doubt I’ll be the only user affected by this problem. And now, off to restore the earlier snapshot …

I’m not alone :|:

https://forums.virtualbox.org/viewtopic.php?f=7&t=103317

Linux kernel 5.13 is not supported by VirtualBox 6.1.22. The upcoming VirtualBox 6.1.24 is expected to support it.

WOW! and what do we do without 6.1.24?
When will it arrive? Do you have a clue?

Is it possible to go back to previous kernel and how?

https://forums.virtualbox.org/viewtopic.php?f=7&t=103317#p502312 (linked already above)

[QUOTE]When will VirtualBox 6.1.24 be released?

I’d expect it to be released around July 20th 2021, but there is no guarantee.[/QUOTE]

At boot, select “Advanced options” in GRUB, then the older kernel and boot this one.

thanks for the reply

  1. … July 20 !!!
  2. I have only one kernel. Can I install previous one and how?

Hi
You should have at least two unless you changed default settings? Reboot the system and in the grub menu select advanced where you should be able to boot the previous kernel.

Anyway a 5.12.13 kernel is still available here

It also makes sense to either lock kernel package or add specific version to keep to zypp.conf multiversion.kernels.

Hi to all,
I’ve installed kernel 5.12.13-1 but:

  1. cat /var/log/virtualbox.log
=== Building 'vboxdrv' module === 
make[1]: Entering directory '/usr/src/kernel-modules/virtualbox/src/vboxdrv' 
/usr/src/kernel-modules/virtualbox/src/vboxdrv/Makefile-header.gmk:193: *** Error: unable to find the headers of the Linux kernel to build against (KERN_DIR=/lib/modules/5.12.13-1-default/build). 
 Specify KERN_VER=<version> (currently 5.12.13-1-default) and run Make again.  Stop. 
make[1]: Leaving directory '/usr/src/kernel-modules/virtualbox/src/vboxdrv' 
make: *** [Makefile:59: vboxdrv] Error 2

  1. rpm -i 0/kernel-default-devel-5.12.13-1.1.x86_64.rpm
Problem: nothing provides 'kernel-devel = 5.12.13-1' needed by the to be installed kernel-default-devel-5.12.13-1.1.x86_64 
 Solution 1: do not install kernel-default-devel-5.12.13-1.1.x86_64 
 Solution 2: break kernel-default-devel-5.12.13-1.1.x86_64 by ignoring some of its dependencies

uname -r => 5.12.13-1-default

Hi
my proposal is that, there should be a check so that to stop installation of a kernel, if anyone has installed a program that should not work after installing new kernel.

Not clear to me which version of VirtualBox you have installed, anyway:
1- if you installed the openSUSE build of VBox you should install also virtualbox-kmp-default matching the kernel you want to use (5.12.13 here);
2- if you installed the Oracle VBox and need to build the matching kernel modules, you need to install kernel-devel available here and kernel-default-devel matching your kernel (again 5.12.13 in this example).

Hi Orso!
I have 2-Oracle VBox and now it’s running thanks to you!
MANY THANKS!

Nice to read you are up and running again.
Now please remember to add 5.12.13-1 to the list of kernels to keep; edit file /etc/zypp/zypp.conf

sudo nano /etc/zypp/zypp.conf 

and edit the multiversion.kernels line so that it reads:

multiversion.kernels = latest,latest-1,running,5.12.13-1

then save ( CTRL+O if you are using nano) and exit (CTRL+X).
You may revert that change once a VBox compatible with kernel 5.13 appears.

Thanks for the detailed information. But isn’t it 5.12.12-1 the latest before 5.13?

[FONT=monospace]mi@tux:~> uname -a 
Linux tuxedo 5.12.12-1-default #1 SMP Fri Jun 18 11:07:46 UTC 2021 (0e46a2c) x86_64 x86_64 x86_64 GNU/Linux
[/FONT]

Come to think of it… I most probably missed a version.

For kernel5.13 add to grub:

randomize_kstack_offset=off

See:
https://bugzilla.opensuse.org/show_bug.cgi?id=1188105

Works! Thank you!

Hi, I am in the same situation but I am not very confindent with grub configuration changing. Could you detail little bit more where I should put this line?
Do you mean I have to add it at the end of the /etc/default/grub file?
Have I to issue an update-grub command or similar?

Thanks in advance,
Marco

Hi
Fire up YaST -> Bootloader -> Kernel Parameters tab , add the above into the Optional Kernel Command Line parameters. Click ok and grub will be updated for you :slight_smile: