Error Building Shared Folder Support Module

Discussions related to using VirtualBox on Windows hosts.

Error Building Shared Folder Support Module

Postby xthx1138 » 28. Sep 2021, 21:28

Upgraded debian guest from bullseye to bookworm. Rebooted to load the new 5.14.0-1-amd64 kernel, and installed the corresponding linux-headers.

Now VBoxLinuxAdditions.run errors:

Code: Select all   Expand viewCollapse view
# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.26 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.26 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-5.14.0-1-amd64
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.14.0-1-amd64.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted


Looks like the first error is some missing kernel config files:

Code: Select all   Expand viewCollapse view
# head -n 12 /var/log/vboxadd-setup.log
Building the main Guest Additions 6.1.26 module for kernel 5.14.0-1-amd64.
Building the shared folder support module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.14.0-1-amd64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make -C /usr/src/linux-headers-5.14.0-1-amd64 -f /usr/src/linux-headers-5.14.0-1-common/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                     \


The full vboxadd-setup.log is attached.

Thanks.
Attachments
vboxadd-setup.log
(21.62 KiB) Downloaded 2 times
xthx1138
 
Posts: 19
Joined: 2. Nov 2008, 01:08

Re: Error Building Shared Folder Support Module

Postby fth0 » 28. Sep 2021, 21:32

Linux kernel 5.14 is supported by VirtualBox test builds 6.1.27r146191 and newer.
fth0
Volunteer
 
Posts: 2456
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: Error Building Shared Folder Support Module

Postby xthx1138 » 29. Sep 2021, 06:25

fth0 wrote:Linux kernel 5.14 is supported by VirtualBox test builds 6.1.27r146191 and newer.


That works for me. The current 6.1.27 guest additions builds all the modules without error.

Thanks.
xthx1138
 
Posts: 19
Joined: 2. Nov 2008, 01:08


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 46 guests