Page 1 of 2

Fedora 29 - Guest Additions failed to start

Posted: 15. Dec 2018, 17:18
by DWF
Hi,

Fedora 29 Guest on Mac OSX 10.14.2
Trying to install VBox Addon and here is what I got:

Code: Select all

[root@fedora00 ~]# uname -r
4.19.8-300.fc29.x86_64
[root@fedora00 ~]# echo $KERN_DIR
/usr/src/kernels/4.19.8-300.fc29.x86_64/build
[root@fedora00 ~]# /run/media/dfong/VBox_GAs_5.2.22/VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.22 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.22 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
[root@fedora00 ~]# 
And looking at the log files, here is what I see:

Code: Select all

[root@fedora00 log]# cat /var/log/vboxadd-setup.log
Building the main Guest Additions module.
Building the shared folder support module.
Building the graphics driver module.
[root@fedora00 log]# tail -20 /var/log/messages 
Dec 15 10:11:06 fedora00 vboxadd-service.sh[10978]: Starting VirtualBox Guest Addition service.
Dec 15 10:11:06 fedora00 vboxadd-service.sh[10986]: VirtualBox Guest Addition service started.
Dec 15 10:11:06 fedora00 systemd[1]: Started vboxadd-service.service.
Dec 15 10:11:06 fedora00 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vboxadd-service comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTMemTmpFree (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuestIDC (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRequest (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRelease (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTLogRelGetDefaultInstanceEx (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTStrCopy (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTErrConvertToErrno (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexCreate (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexDestroy (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTAssertShouldPanic (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTLogLoggerEx (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTMemTmpAllocTag (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTAssertMsg1Weak (err -2)
Dec 15 10:11:06 fedora00 kernel: vboxsf: Unknown symbol VBoxGuest_RTAssertMsg2Weak (err -2)
Dec 15 10:11:11 fedora00 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 15 10:11:11 fedora00 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[root@fedora00 log]# 
I had read and followed this topic: viewtopic.php?f=3&t=90578
Any suggestions?

Thanks,
David

Re: Fedora 29 - Guest Additions failed to start

Posted: 15. Dec 2018, 18:39
by socratis
DWF wrote:4.19.8-300.fc29.x86_64
You don't have the same kernel as the thread that you quoted (Fedora 29 - guest additions shared folders). That one was 4.16.3-200-fc27.x86_64, not the latest and greatest one. I assume that if you "followed" the thread you already did:

Code: Select all

sudo yum install elfutils-libelf-devel
DWF wrote:Any suggestions?
I would suggest to try the latest 5.2.x test build. I seem to recall a couple of issues being addressed with F29 and the 4.19 kernels...

Re: Fedora 29 - Guest Additions failed to start

Posted: 20. Dec 2018, 00:45
by AJGringo619
I'm getting the same thing with VB 6.0 (Fedora 29, kernel 4.19.8-300.fc29.x86_64). On the bright side, the VB Guest Additions that come with F29 (version 5.2.22) seem to work OK.

EDIT: I tried the test build of GA (version 5.2.23) and it did the same thing. The RPM version has no support for automatic screen resizing or shared folders.

Re: Fedora 29 - Guest Additions failed to start

Posted: 25. Dec 2018, 00:01
by AJGringo619
UPDATE: definitely seems to be an issue with the 4.19 kernel. I got the same errors trying Manjaro 18.01 (kernel 4.19.12-2).

Re: Fedora 29 - Guest Additions failed to start

Posted: 25. Dec 2018, 20:01
by toracat
I tested kernel 4.19 (4.19.12-1.el7.elrepo.x86_64) on my RHEL 7.6 guest. I do not see any issue there. All three vbox kernel modules were built fine. I am running VirtualBox 5.2.23.

Re: Fedora 29 - Guest Additions failed to start

Posted: 25. Dec 2018, 20:06
by AJGringo619
Sorry, I should have been more specific - I'm running VB 6. I did try to build 5.2.23 on my Fedora 29 VM, but it didn't work either.

EDIT: tried GA 6.0.1 (from test-build VBoxGuestAdditions_6.0.1-127639.iso) - same result.

Re: Fedora 29 - Guest Additions failed to start

Posted: 15. Jan 2019, 12:24
by JeanR
Had the same problem here (Mac Mojave host, Fedora29 guest with kernel up to 4.19.12 using VB6 and GA6.0.0 GA,
updating to VB6.0.1 and GA 6.0.1 (from test-build VBoxGuestAdditions_6.0.1-127639.iso) didn't help either,
but upgrading the kernel to 4.19.13 yesterday seemed to have done the trick, vboxsf module loads again..

Re: Fedora 29 - Guest Additions failed to start

Posted: 15. Jan 2019, 13:16
by socratis
JeanR wrote:but upgrading the kernel to 4.19.13 yesterday seemed to have done the trick, vboxsf module loads again..
Thanks for the letting us know...

Re: Fedora 29 - Guest Additions failed to start

Posted: 15. Jan 2019, 18:16
by JeanR
Moreover, stepping back to VB6.0 and recompiling GA6.0.0 with kernel 4.19.13 the problem with the unknown symbols for vboxsf is also gone,
I even checked that shared folders do work, so if someone else can confirm this, I think you can close(solved)/invalidate this thread.
NB: seems there's an even newer kernel out now (4.19.14 that is) which I'm gonna try out now.. - and yep! - this also works:

localhost:~> modinfo vboxsf | head -2
filename: /lib/modules/4.19.14-300.fc29.x86_64/misc/vboxsf.ko
version: 6.0.0 r127566

Two more remarks:
1) the thread title should be changed to e.g. 'Shared Folder support module fails to build', rather than GA failed to start, cause that's what the problem is all about
2) the fact that you need lsmod/dmsg to detect that/why the build fails is dissatisfactory, shouldn't this be visible in the build window as well?

Re: Fedora 29 - Guest Additions failed to start

Posted: 16. Jan 2019, 20:23
by amishra
Hi,

I am facing same issue for fedora 29 on virtualbox 6.0. Host machine is windows 10.

Code: Select all

[root@localhost VBox_GAs_6.0.0]# ./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
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: Building the modules for kernel 4.19.14-300.fc29.x86_64.

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
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the modules for kernel 4.19.14-300.fc29.x86_64.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: modprobe vboxsf failed

Re: Fedora 29 - Guest Additions failed to start

Posted: 16. Jan 2019, 22:01
by JeanR
could you please check/verify in /var/log/vboxadd-setup.log, that this is indeed the same problem?
That is the 'unknown symbols' problem described by the OP (DWF) ?
Cause to me it seems, that in your case it not only fails to build vboxsf.
Also, could you post the output of 'lsmod|grep vbox', 'modprobe vboxsf' and 'dmesg |grep vboxsf', respectively?

Re: Fedora 29 - Guest Additions failed to start

Posted: 18. Jan 2019, 22:19
by JeanR
Finally found the root cause. It's not kernel 4.19.13+ that solves the problem, it's the kernel-devel package that supplies the necessary symbols.

What misled me was that I must have installed it together with the kernel-4.19.13 update and rechecking with the old 4.19.12 (which didn't get a kernel-devel because it was already installed) of course showed the problem again. Moreover the other modules (vboxguest,vboxvideo) build perfectly without it, and even for vboxsf this used to work without it in older times.

So to sum up for Fedora 'dnf install kernel-devel' and for RHEL/CentOS a 'yum install kernel-devel' is the fix.

For the various other threads with similar problems for other distros like Kali/Debian (e.g. viewtopic.php?f=3&t=91340 or viewtopic.php?f=3&t=91325), pls. find the appropriate package names on your own.

Re: Fedora 29 - Guest Additions failed to start

Posted: 19. Jan 2019, 00:05
by socratis
Here's what I have written down in my notes:

Code: Select all

( dnf | yum | apt-get | pacman | whatever )   gcc  binutils  make  bzip2  perl  kernel-headers-$(uname -r)  kernel-devel-$(uname -r)  elfutils-libelf-devel
Covers all the bases... ;)

Re: Fedora 29 - Guest Additions failed to start

Posted: 19. Jan 2019, 02:04
by toracat
The key here is that the version of the -devel package (or -headers in some OSs) must match the version of the running kernel. In the RHEL/CentOS land, what occasionally happens is that the user is running an earlier version of the kernel but 'yum install' finds the latest version of kernel-devel. This causes a mismatch in the version, which leads to the failure of module building.

Re: Fedora 29 - Guest Additions failed to start

Posted: 19. Jan 2019, 02:12
by socratis
But wouldn't

Code: Select all

yum install kernel-devel-$(uname -r)
get the running kernel headers? Unless you meant that the generic

Code: Select all

yum install kernel-devel
would get you the latest...