VirtualBox Kernel Module no longer builds under -current kernel update of 17-Nov-2017
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VirtualBox Kernel Module no longer builds under -current kernel update of 17-Nov-2017
I just updated my kernel today but now the VirtualBox kernel module no longer builds. This affects 5.1.30 and 5.2.0 (at least).
The last messages in the log file are here:
Code:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:741:24: error: ‘SKB_GSO_UDP’ undeclared (first use in this function); did you mean ‘SKB_GSO_ESP’?
fGsoType = SKB_GSO_UDP;
^~~~~~~~~~~
SKB_GSO_ESP
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:741:24: note: each undeclared identifier is reported only once for each function it appears in
In file included from /tmp/vbox.0/include/iprt/types.h:29:0,
from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:34,
from /tmp/vbox.0/linux/VBoxNetFlt-linux.c:24:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxCanForwardAsGso’:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1276:53: error: ‘SKB_GSO_UDP’ undeclared (first use in this function); did you mean ‘SKB_GSO_ESP’?
if (RT_UNLIKELY( skb_shinfo(pSkb)->gso_type & ~(SKB_GSO_UDP | SKB_GSO_DODGY | SKB_GSO_TCPV6 | SKB_GSO_TCPV4) ))
^
/tmp/vbox.0/include/iprt/cdefs.h:1631:53: note: in definition of macro ‘RT_UNLIKELY’
# define RT_UNLIKELY(expr) __builtin_expect(!!(expr), 0)
^~~~
/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxForwardToIntNetInner’:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1526:47: error: ‘SKB_GSO_UDP’ undeclared (first use in this function); did you mean ‘SKB_GSO_ESP’?
if ( (skb_shinfo(pBuf)->gso_type & (SKB_GSO_UDP | SKB_GSO_TCPV6 | SKB_GSO_TCPV4))
^~~~~~~~~~~
SKB_GSO_ESP
make[2]: *** [scripts/Makefile.build:314: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [Makefile:1503: _module_/tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile.include.footer:97: vboxnetflt] Error 2
AFAIK, vboxpci is not required for VirtualBox to work. It seems to work on my computer with the same error. It might just prevent passthrough (if that's what it's used for).
The version on www.virtualbox.org/wiki/Testbuilds is now VirtualBox 5.1.31 and that compiled fine on current with kernel 4.14.0 (incl guest additions and extension pack)
The version on www.virtualbox.org/wiki/Testbuilds is now VirtualBox 5.1.31 and that compiled fine on current with kernel 4.14.0 (incl guest additions and extension pack)
I get the same error in dmesg from vboxpci.
To the other poster, who said it would run without, in my case, my Win7 virtual machine will not start.
To the other poster, who said it would run without, in my case, my Win7 virtual machine will not start.
Correction. When I installed the 5.1.31 guest extensions the virtual machine started. This may mean the 5.2.1 version would have worked if I had done that (though I though I had).
Then only applied this part of Willy's patch changing vfs_write (the changes for /vboxnetflt/linux/VBoxNetFlt-linux.c did not need to be made for 5.1.31)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.