Error Building Shared Folder Support Module

Discussions related to using VirtualBox on Windows hosts.
Post Reply
xthx1138
Posts: 19
Joined: 2. Nov 2008, 01:08

Error Building Shared Folder Support Module

Post by xthx1138 »

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

# ./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

# 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 8 times
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Error Building Shared Folder Support Module

Post by fth0 »

Linux kernel 5.14 is supported by VirtualBox test builds 6.1.27r146191 and newer.
xthx1138
Posts: 19
Joined: 2. Nov 2008, 01:08

Re: Error Building Shared Folder Support Module

Post by xthx1138 »

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.
Post Reply