On a fresh install of Debian 9 with desktop, a build of the LInux Guest Additions (using the 5.2.1 r118447 ISO file as recommended) ended up building only vboxguest and vboxsf but totally skipped vboxvideo. As such, the desktop is stuck with the default 800x600 and 1024x768 resolutions and I cannot select other screen sizes.
Steps:
The tail bit of vboxadd-setup.log is as follows:twchan@zpdeb9-test2:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch twchan@zpdeb9-test2:~$ lsmod | grep vbox twchan@zpdeb9-test2:~$ sudo apt-get install build-essential linux-headers-$(uname -r) ...(snip)... twchan@zpdeb9-test2:~$ cd /mnt/cdrom twchan@zpdeb9-test2:/mnt/cdrom$ ls total 52012 3 ./ 1 AUTORUN.INF 5 runasroot.sh* 16557 VBoxWindowsAdditions-amd64.exe* 4 ../ 7 autorun.sh* 1 TRANS.TBL 263 VBoxWindowsAdditions.exe* 1 32Bit/ 1 cert/ 7580 VBoxLinuxAdditions.run* 10257 VBoxWindowsAdditions-x86.exe* 1 64Bit/ 3 OS2/ 17333 VBoxSolarisAdditions.pkg twchan@zpdeb9-test2:/mnt/cdrom$ sudo ./VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. VirtualBox Guest Additions: Starting. twchan@zpdeb9-test2:/mnt/cdrom$ ll /lib/modules/4.9.0-3-amd64/misc/ total 14140 4 drwxr-xr-x 2 root root 4096 Oct 22 13:07 ./ 4 drwxr-xr-x 4 root root 4096 Oct 22 13:07 ../ 12132 -rw-r--r-- 1 root root 12419128 Oct 22 13:06 vboxguest.ko 2000 -rw-r--r-- 1 root root 2044928 Oct 22 13:07 vboxsf.ko twchan@zpdeb9-test2:/mnt/cdrom$
Code: Select all
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.9.0-3-amd64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install
make -C /usr/src/linux-headers-4.9.0-3-amd64 KBUILD_SRC=/usr/src/linux-headers-4.9.0-3-common \
-f /usr/src/linux-headers-4.9.0-3-common/Makefile modules_install
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 ; \
/bin/false)
mkdir -p /lib/modules/4.9.0-3-amd64/misc
make -f /usr/src/linux-headers-4.9.0-3-common/scripts/Makefile.modinst
mkdir -p /lib/modules/4.9.0-3-amd64/misc ; cp /tmp/vbox.0/vboxsf.ko /lib/modules/4.9.0-3-amd64/misc ; true /lib/modules/4.9.0-3-amd64/misc/vboxsf.ko ; true /lib/modules/4.9.0-3-amd64/misc/vboxsf.ko || true && true /lib/modules/4.9.0-3-amd64/misc/vboxsf.ko
/bin/bash /usr/src/linux-headers-4.9.0-3-common/scripts/depmod.sh /sbin/depmod 4.9.0-3-amd64 ""
Building the graphics driver module
make: Nothing to be done for 'install'.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/opt/VBoxGuestAdditions-5.2.1/src/vboxguest-5.2.1/vboxvideo/Makefileskipped the build at:
Code: Select all
# We want to build on Linux 3.11 and later, plus the 3.10 EL 7.3 and later
# kernels. This file was added in 3.11 and back-ported to the EL 7.3 kernel.
ifeq ($(wildcard $(KERN_INCL)/drm/drm_rect.h),)
BUILD =
endif
/lib/modules/4.9.0-3-amd64/build/includebut the drm/drm_rect.h file was found in
/lib/modules/4.9.0-3-amd64/source/includeinstead.
Sorry for this long post, hope there is enough info to help the developers fix this.