Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Discussions related to using VirtualBox on Linux hosts.
Post Reply
manes
Posts: 2
Joined: 20. Jun 2022, 13:36

Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by manes »

vboxconfig stopped running in Debian testing after upgrading to Kernel 5.18.0-1-amd64:

$ uname -r

Code: Select all

5.18.0-1-amd64
# dpkg -l \*irtualb\*|grep ii

Code: Select all

ii  virtualbox-6.1                 6.1.34-150636.1~Debian~buster amd64        Oracle VM VirtualBox
# /sbin/vboxconfig

Code: Select all

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
/sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Secure Boot is disabled.

# tail -9 /var/log/vbox-setup.log

Code: Select all

/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltPortOsXmit’:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:2314:23: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
2314 |                 err = netif_rx_ni(pBuf);
|                       ^~~~~~~~~~~
|                       netif_rx
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.18.0-1-common/scripts/Makefile.build:293: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.18.0-1-common/Makefile:1858: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxnetflt] Error 2
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by fth0 »

The actual problem is that VirtualBox 6.1.34 and 6.1.97r150532 do not support Linux kernel 5.18 on the host and will produce random crashes in the guest (pun intended ;)). See 20914 and Windows 10 Guest on Linux host dies seconds after boot for details.

The VirtualBox test builds 6.1.35r151864 (and newer) are supposed to support Linux kernels 5.18, 5.17.12+, 5.15.44+, 5.10.119+ and more on the host and in the guest. Please report back if it solves the problem.
Tecuma
Posts: 1
Joined: 21. Jun 2022, 11:46

Re: Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by Tecuma »

Hello Community,

I am using Debian testing with kernel 5.18.0-1-amd64.

I had the problem with VirtualBox 1.32 that the necessary kernel modules for VirtualBox were not able to build.
After I found this information here I installed the VirtualBox testbuild 1.35.

Now these kernel modules can be build and I can run my Windows 10 guest again :D

Many thanks for the information about the testbuild.

Best regards

--Christian
manes
Posts: 2
Joined: 20. Jun 2022, 13:36

Re: Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by manes »

fth0 wrote:The actual problem is that VirtualBox 6.1.34 and 6.1.97r150532 do not support Linux kernel 5.18 on the host and will produce random crashes in the guest (pun intended ;)).
(…)
Working and stable for at least several hours now. Thanks for the hints!
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by fth0 »

Thanks for the positive feedback! :)
dausa
Posts: 1
Joined: 30. Jun 2022, 14:09

Re: Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by dausa »

Hello,
I had the same problem and I am running a Fedora 35 with 5.18.7-100.fc35 kernel.

I solved the problem by removing the old VirtualBox and reinstalling the testing version "VirtualBox-6.1.35-152011-Linux_amd64.run"

In my personal case I could not install successfully the EL7/EL8 rpm versions. So I downloaded the run file by clicking on the generic Linux 64-bit version.

This solved the problem entirely, and please know that I love you immensely :D
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Testing: vboxconfig broken with Kernel 5.18.0-1-amd64

Post by fth0 »

Thanks for reporting back. :)
dausa wrote:I am running a Fedora 35 [...] I could not install successfully the EL7/EL8 rpm versions. So I downloaded the run file by clicking on the generic Linux 64-bit version.
If you look at the download page for VirtualBox 6.1.34 for Linux, you'll note that there are different download files for Red Hat Enterprise Linux and Fedora Linux, so I'm not surprised by that.
Post Reply