Fedora 29 - Guest Additions failed to start

Discussions about using Linux guests in VirtualBox.

Fedora 29 - Guest Additions failed to start

Postby DWF » 15. Dec 2018, 17:18

Hi,

Fedora 29 Guest on Mac OSX 10.14.2
Trying to install VBox Addon and here is what I got:
Code: Select all   Expand viewCollapse view
[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   Expand viewCollapse view
[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: https://forums.virtualbox.org/viewtopic.php?f=3&t=90578
Any suggestions?

Thanks,
David
DWF
 
Posts: 7
Joined: 9. Mar 2016, 22:33

Re: Fedora 29 - Guest Additions failed to start

Postby socratis » 15. Dec 2018, 18:39

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   Expand viewCollapse view
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...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25831
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Fedora 29 - Guest Additions failed to start

Postby AJGringo619 » 20. Dec 2018, 00:45

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.
[Linux Mint 19.1 Cinnamon Host, 16GB RAM, Nvidia GeForce 960 v430.26]
AJGringo619
 
Posts: 16
Joined: 22. Aug 2018, 19:55
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows 10

Re: Fedora 29 - Guest Additions failed to start

Postby AJGringo619 » 25. Dec 2018, 00:01

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).
[Linux Mint 19.1 Cinnamon Host, 16GB RAM, Nvidia GeForce 960 v430.26]
AJGringo619
 
Posts: 16
Joined: 22. Aug 2018, 19:55
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows 10

Re: Fedora 29 - Guest Additions failed to start

Postby toracat » 25. Dec 2018, 20:01

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.
Beginning is easy – Continuing is hard.
toracat
 
Posts: 86
Joined: 8. Dec 2018, 02:39
Location: California, USA
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: RHEL CentOS Scientific Linux

Re: Fedora 29 - Guest Additions failed to start

Postby AJGringo619 » 25. Dec 2018, 20:06

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.
Last edited by socratis on 25. Dec 2018, 20:34, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
[Linux Mint 19.1 Cinnamon Host, 16GB RAM, Nvidia GeForce 960 v430.26]
AJGringo619
 
Posts: 16
Joined: 22. Aug 2018, 19:55
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows 10

Re: Fedora 29 - Guest Additions failed to start

Postby JeanR » 15. Jan 2019, 12:24

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..
JeanR
 
Posts: 18
Joined: 3. Mar 2017, 18:52
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux(Fedora, CentOS)

Re: Fedora 29 - Guest Additions failed to start

Postby socratis » 15. Jan 2019, 13:16

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...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25831
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Fedora 29 - Guest Additions failed to start

Postby JeanR » 15. Jan 2019, 18:16

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?
JeanR
 
Posts: 18
Joined: 3. Mar 2017, 18:52
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux(Fedora, CentOS)

Re: Fedora 29 - Guest Additions failed to start

Postby amishra » 16. Jan 2019, 20:23

Hi,

I am facing same issue for fedora 29 on virtualbox 6.0. Host machine is windows 10.
Code: Select all   Expand viewCollapse view
[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
Last edited by socratis on 17. Jan 2019, 20:38, edited 1 time in total.
Reason: Reason: Enclosed the information in [quote][code] tags for better readability.
amishra
 
Posts: 1
Joined: 16. Jan 2019, 20:16

Re: Fedora 29 - Guest Additions failed to start

Postby JeanR » 16. Jan 2019, 22:01

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?
JeanR
 
Posts: 18
Joined: 3. Mar 2017, 18:52
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux(Fedora, CentOS)

Re: Fedora 29 - Guest Additions failed to start

Postby JeanR » 18. Jan 2019, 22:19

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.
JeanR
 
Posts: 18
Joined: 3. Mar 2017, 18:52
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux(Fedora, CentOS)

Re: Fedora 29 - Guest Additions failed to start

Postby socratis » 19. Jan 2019, 00:05

Here's what I have written down in my notes:
Code: Select all   Expand viewCollapse view
( 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... ;)
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25831
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Fedora 29 - Guest Additions failed to start

Postby toracat » 19. Jan 2019, 02:04

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.
Beginning is easy – Continuing is hard.
toracat
 
Posts: 86
Joined: 8. Dec 2018, 02:39
Location: California, USA
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: RHEL CentOS Scientific Linux

Re: Fedora 29 - Guest Additions failed to start

Postby socratis » 19. Jan 2019, 02:12

But wouldn't
Code: Select all   Expand viewCollapse view
yum install kernel-devel-$(uname -r)

get the running kernel headers? Unless you meant that the generic
Code: Select all   Expand viewCollapse view
yum install kernel-devel

would get you the latest...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25831
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Next

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 9 guests