Page 1 of 1

vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 22. Oct 2017, 07:41
by twchan
Hi,

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:
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$
The tail bit of vboxadd-setup.log is as follows:

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.
I traced the build a little further, and found that
/opt/VBoxGuestAdditions-5.2.1/src/vboxguest-5.2.1/vboxvideo/Makefile
skipped 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
It seems that with Debian 9.2, the linux-headers-$(uname -r) did not populate all the header files under where VBoxLinuxAdditions expected it. KERN_INCL was
/lib/modules/4.9.0-3-amd64/build/include
but the drm/drm_rect.h file was found in
/lib/modules/4.9.0-3-amd64/source/include
instead.

Sorry for this long post, hope there is enough info to help the developers fix this.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 22. Oct 2017, 07:56
by twchan
Hi,

And here's a hack-around to get vboxvideo to build:
sudo mkdir -p /lib/modules/$(uname -r)/build/include/drm
sudo touch /lib/modules/$(uname -r)/build/include/drm/drm_rect.h
Then launch VBoxLinuxAdditions.run as normal.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 23. Oct 2017, 14:08
by michael
I will install a Debian 9 guest and have a look. Sounds like a Debian bug, but hopefully I will soon know more.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 31. Oct 2017, 05:03
by SteeVee
Greetings, all. Any updates to this? I tried the hack-around suggested by twhan, no luck.

EDIT: Nevermind, the latest iso on the main page worked for me, VBoxGuestAdditions_5.2.1-118868.iso. Thanks Devs!!

EDIT x2: I tried the latest .iso as I previously posted with a fresh install of 9.2.1 - XFCE, and it did not work. I had to do the hack-around suggested by twchan, then re-installed the GA's again, then I was set after a restart.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 31. Oct 2017, 05:55
by socratis
Keep your eyes open for announcements in the Downloads section and i n the Development Snapshots section of the Test Builds.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 31. Oct 2017, 11:13
by michael
Not yet. I have a fix locally, but I have not tested it sufficiently yet.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 31. Oct 2017, 15:52
by tenaka18
twchan wrote:Hi,

And here's a hack-around to get vboxvideo to build:
sudo mkdir -p /lib/modules/$(uname -r)/build/include/drm
sudo touch /lib/modules/$(uname -r)/build/include/drm/drm_rect.h
Then launch VBoxLinuxAdditions.run as normal.
it works like a charm with VBoxGuestAdditions_5.2.1-118868 .

thank you.

Re: vboxvideo build is skipped, Debian 9.2, GA 5.2.1-r118447

Posted: 3. Nov 2017, 18:28
by michael
The most recent Additions update on the Download page[1] should work without hacks.

[1] https://www.virtualbox.org/wiki/Downloads