VirtualBox

Opened 3 years ago

Last modified 3 years ago

#20198 closed defect

Virtualbox Linux drivers cannot be built with 5.11 kernel — at Initial Version

Reported by: cloudsw Owned by:
Component: host support Version: VirtualBox 6.1.18
Keywords: 5.11 kernel Cc:
Guest type: other Host type: Linux

Description

Failed to rebuild drivers after installing 5.11 kernel:

$sudo vboxconfig 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.

vbox-setup.log is attached

/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltNeedsLinkState’: /tmp/vbox.0/linux/VBoxNetFlt-linux.c:1761:47: error: dereferencing pointer to incomplete type ‘const struct ethtool_ops’

1761 | if (pDev->ethtool_ops && pDev->ethtool_ops->get_drvinfo)

| ~

/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1763:32: error: storage size of ‘Info’ isn’t known

1763 | struct ethtool_drvinfo Info;

| ~

/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1766:20: error: ‘ETHTOOL_GDRVINFO’ undeclared (first use in this function)

1766 | Info.cmd = ETHTOOL_GDRVINFO;

| ~

/tmp/vbox.0/linux/VBoxNetFlt-linux.c:1766:20: note: each undeclared identifier is reported only once for each function it appears in /tmp/vbox.0/linux/VBoxNetFlt-linux.c:1763:32: warning: unused variable ‘Info’ [-Wunused-variable]

1763 | struct ethtool_drvinfo Info;

| ~

make[2]: * [scripts/Makefile.build:279: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1 make[1]: * [Makefile:1800: /tmp/vbox.0] Error 2 make: * vboxnetflt Error 2

Change History (1)

by cloudsw, 3 years ago

Attachment: vbox-setup.log added
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use