Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Discussions about using Linux guests in VirtualBox.
bixlpe
Posts: 4
Joined: 17. Sep 2019, 17:06

Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by bixlpe »

I'm using VirtualBox 6.0.12 and just installed kernel version 1062 on Centos 7 (64 bit) and have been unable to recompile guest additions. The error is:

Setup:
Host: MacOS Mojave
Guest: Centos 7 kernel Linux 3.10.0-10621.1.2.el7.x86_64
VBox: 6.0.12 with Extensions Pack 6.0.12 installed
VM display setup: Video memory 128MB, Screens 2, Graphics controller VBoxVGA
VM System setup: Base memory: 8G, Chipset PIIX3, Enable I/O APIC, 4 CPU, Enable PAE/NX
Building the main Guest Additions 6.0.12 module for kernel 3.10.0-1062.1.1.el7.x86_64.
Building the shared folder support module.
Building the graphics driver module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-1062.1.1.el7.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
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.";
Full log file is attached. This worked fine on kernel 957 so I assume this is an incompatibility between the 1062 kernel and 6.0.12 guest additions.
Attachments
vboxadd-setup.log
(9.18 KiB) Downloaded 114 times
Last edited by socratis on 18. Sep 2019, 16:33, edited 1 time in total.
Reason: Enclosed the information in [quote][pre] tags for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by socratis »

bixlpe,
Can you try the latest 6.0.13 test builds? The fix is allegedly already included there...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
bixlpe
Posts: 4
Joined: 17. Sep 2019, 17:06

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by bixlpe »

I tried installing 6.0.13 but it's not working. Getting this error:
Kernel driver not installed (rc=-1908)
Make sure the kernel module has been loaded successfully.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
This error popped up when I tried to start the guest and I saw another popup when I installed 6.0.13 that said that something couldn't be installed but it disappeared before I could capture it. It's possible something got blocked by my security settings and it's a company-owned machine so I can't change those. Re-installed 6.0.12 for now and will just use kernel version 957 until I can get 6.0.13 to work.
Last edited by socratis on 18. Sep 2019, 19:57, edited 1 time in total.
Reason: Enclosed the information in [quote] tag for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by socratis »

bixlpe wrote:It's possible something got blocked by my security settings and it's a company-owned machine so I can't change those
Are you using SecureBoot by any chance?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
bixlpe
Posts: 4
Joined: 17. Sep 2019, 17:06

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by bixlpe »

I suspect so but I can't boot up into recovery mode to find out because I don't have administrator credentials (this is why I use a VM!). Do you know when 6.0.13 is going to be released?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by socratis »

The ".odd" builds are the test builds. The ".even" builds are the release builds, and there's only one. There's never a report of when releases are happening, your knowledge is as good as anyone's not in the developers' camp.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
bixlpe
Posts: 4
Joined: 17. Sep 2019, 17:06

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by bixlpe »

Ah ok, good to know. Thanks for your help, really appreciate it!
jcolley
Posts: 4
Joined: 29. Sep 2019, 03:15

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by jcolley »

Same issue here with both 6.0.12 and 6.0.13

HOST: CentOS 7 3.10.0-1062.1.1.el7.x86_64
GUEST: CentOS 7 3.10.0-1062.1.1.el7.x86_64

Not sure what to do , maybe downgrade virualbox back to 5.x
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by socratis »

From ticket #18917: VBox 6.0.10 GAs fail to compile on Red Hat/CentOS/OL 7.7; also Red Hat 8.1 Beta:
This has been fixed in trunk and the fix has also been backported to VirtualBox 6.0.x (x > 12) and 5.2.x (x > 32). The fix is also available in any 6.0.x Testbuilds with a revision >= r133264 or any 5.2.x Testbuilds with a revision >= r133285.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
jcolley
Posts: 4
Joined: 29. Sep 2019, 03:15

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by jcolley »

Maybe, im still having the same issue after the upgrade to the test build 6.0.13 r133568
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by socratis »

@jcolley
Can you post the exact error message? "Same issue" doesn't tell too much...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Larry Menard
Posts: 27
Joined: 25. Aug 2015, 16:34
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Windows 7 & 10, CentOS 5, 6 & 7, Ubuntu 16.04
Location: Orillia, Ontario, Canada

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by Larry Menard »

I am having the same issue, and it seems to be resolved by installing the current test build (6.0.13 r 133568).

Full steps:
  1. Shut down all running VMs
  2. Uninstall currently-installed VirtualBox ("Settings" -> "Add or remove programs")
  3. Install VirtualBox 6.0.13 r 133568
  4. Restart the (Windows 10) host
  5. Start the test CentOS 7 VM
  6. Update the VBox Guest Additions in the VM
  7. Restart the VM
Seems to be working fine. Thanks for the pointer Socratis.
jcolley
Posts: 4
Joined: 29. Sep 2019, 03:15

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by jcolley »

Code: Select all

[root@new-host VBox_GAs_6.0.13]# /bin/bash -x VBoxLinuxAdditions.run 
+ CRCsum=3618449829
+ MD5=2bce4b7ec8c997fe7ec7b36c08dbcf68
+ TMPROOT=/tmp
+ label='VirtualBox 6.0.13 Guest Additions for Linux'
+ script=/bin/sh
+ scriptargs='./install.sh VBoxLinuxAdditions.run'
+ targetdir=install
+ filesizes=8601600
+ keep=n
+ print_cmd_arg=
+ type printf
+ print_cmd=printf
+ unset CDPATH
+ finish=true
+ xterm_loop=
+ nox11=n
+ copy=none
+ ownership=y
+ verbose=n
+ initargs=
+ true
+ case "$1" in
+ break
+ case "$copy" in
+ test n = n
+ tty -s
+ :
+ test install = .
+ test n = y
+ tmpdir=/tmp/selfgz2832430641
+ dashp=
+ mkdir /tmp/selfgz2832430641
++ pwd
+ location=/run/media/jcolley/VBox_GAs_6.0.13
+ test x '!=' x1
+ MS_Check VBoxLinuxAdditions.run
+ OLD_PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin
+ MD5_ARG=
++ exec
+ MD5_PATH=/bin/md5sum
+ test -x /bin/md5sum
+ test -x /bin/md5sum
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ MS_Printf 'Verifying archive integrity...'
+ printf 'Verifying archive integrity...'
Verifying archive integrity...++ head -n 404 VBoxLinuxAdditions.run
++ wc -c
++ tr -d ' '
+ offset=9652
+ verb=
+ i=1
+ for s in '$filesizes'
++ echo 3618449829
++ cut '-d ' -f1
+ crc=3618449829
+ test -x /bin/md5sum
++ basename /bin/md5sum
+ test md5sum = digest
++ echo 2bce4b7ec8c997fe7ec7b36c08dbcf68
++ cut '-d ' -f1
+ md5=2bce4b7ec8c997fe7ec7b36c08dbcf68
+ test 2bce4b7ec8c997fe7ec7b36c08dbcf68 = 00000000000000000000000000000000
++ MS_dd VBoxLinuxAdditions.run 9652 8601600
++ eval '/bin/md5sum '
+++ /bin/md5sum
++ cut -b-32
+++ expr 8601600 / 1024
++ blocks=8400
+++ expr 8601600 % 1024
++ bytes=0
++ dd if=VBoxLinuxAdditions.run ibs=9652 skip=1 obs=1024 conv=sync
+ md5sum=2bce4b7ec8c997fe7ec7b36c08dbcf68
+ test 2bce4b7ec8c997fe7ec7b36c08dbcf68 '!=' 2bce4b7ec8c997fe7ec7b36c08dbcf68
+ test x = xy
+ crc=0000000000
+ verb=n
+ test 0000000000 = 0000000000
+ test xn = xy
++ expr 1 + 1
+ i=2
++ expr 9652 + 8601600
+ offset=8611252
+ echo ' All good.'
 All good.
++ head -n 404 VBoxLinuxAdditions.run
++ wc -c
++ tr -d ' '
+ offset=9652
+ test xn = xy
+ MS_Printf 'Uncompressing VirtualBox 6.0.13 Guest Additions for Linux'
+ printf 'Uncompressing VirtualBox 6.0.13 Guest Additions for Linux'
Uncompressing VirtualBox 6.0.13 Guest Additions for Linux+ res=3
+ test n = n
+ trap 'echo Signal caught, cleaning up >&2; cd $TMPROOT; /bin/rm -rf $tmpdir; eval $finish; exit 15' 1 2 3 15
++ MS_diskspace /tmp/selfgz2832430641
++ test -d /usr/xpg4/bin
++ tail -1
++ awk '{print $4}'
++ df -kP /tmp/selfgz2832430641
+ leftspace=13453712
+ test 13453712 -lt 8408
+ for s in '$filesizes'
+ eval cat
++ cat
+ cd /tmp/selfgz2832430641
+ UnTAR x
+ tar xvf -
+ MS_Progress
+ read a
+ MS_dd VBoxLinuxAdditions.run 9652 8601600
++ expr 8601600 / 1024
+ blocks=8400
++ expr 8601600 % 1024
+ bytes=0
+ dd if=VBoxLinuxAdditions.run ibs=9652 skip=1 obs=1024 conv=sync
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
.+ read a
+ test xy = xy
+ PATH=/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ cd /tmp/selfgz2832430641
++ id -u
+ chown -R 0 .
++ id -g
+ chgrp -R 0 .
++ expr 9652 + 8601600
+ offset=8611252
+ echo

+ cd /tmp/selfgz2832430641
+ res=0
+ test x/bin/sh '!=' x
+ test xn = xy
+ eval /bin/sh ./install.sh VBoxLinuxAdditions.run
++ /bin/sh ./install.sh VBoxLinuxAdditions.run
VirtualBox Guest Additions installer
Removing installed version 6.0.13 of VirtualBox Guest Additions...
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: Kernel headers not found for target kernel 
3.10.0-1062.1.1.el7.x86_64. Please install them and execute
  /sbin/rcvboxadd setup
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.
+ res=1
+ test 1 -ne 0
+ test xn = xy
+ test n = n
+ cd /tmp
+ /bin/rm -rf /tmp/selfgz2832430641
+ eval true
++ true
+ exit 1
[root@new-host VBox_GAs_6.0.13]#
Last edited by socratis on 2. Oct 2019, 22:25, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by socratis »

@Larry Menard
Larry Menard wrote:Seems to be working fine. Thanks for the pointer Socratis.
Glad you got it going 'Larry Menard'...


@jcolley
jcolley wrote:
VirtualBox Guest Additions: Kernel headers not found for target kernel
3.10.0-1062.1.1.el7.x86_64. Please install them and execute
  /sbin/rcvboxadd setup
I believe the error message is quite clear, self-explanatory, no? I don't think I (or anyone else) can add anything more to that...

BTW, thanks for showing me a new way to troubleshooting, "/bin/bash -x VBoxLinuxAdditions.run", I was not aware of that! ;)

However it wasn't needed in your case, because your problem was going to be mentioned in a normal (not a debug) run...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
jcolley
Posts: 4
Joined: 29. Sep 2019, 03:15

Re: Unable to compile guest additions in Centos 7 (1062 kernel) running on 6.0.12

Post by jcolley »

Yeah, but on the host , I have the proper kernel-headers.

rpm -qa | grep kernel-headers
kernel-headers-3.10.0-1062.1.1.el7.x86_64
Post Reply