Unknown symbol errors with guest additions in Ubuntu 18.04

Discussions about using Linux guests in VirtualBox.
Post Reply
Speeddymon
Posts: 4
Joined: 25. Jan 2012, 06:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora 16

Unknown symbol errors with guest additions in Ubuntu 18.04

Post by Speeddymon »

Hello,

I'm having some trouble getting the guest additions running in a VM with Ubuntu Bionic.
Actually, it's been customized some as its got some packages for crypto mining installed from 3rd party repos, so I'm hoping one of the additional repos didn't mess anything up.
The below comes up in dmesg any time I try

Code: Select all

rcvboxadd setup
after installing from the mounted guest additions image.

Code: Select all

[45922.053365] vboxsf: Unknown symbol VBoxGuest_RTLogBackdoorPrintf (err -2)
[45922.053376] vboxsf: Unknown symbol VBoxGuestIDC (err -2)
[45922.053384] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRequest (err -2)
[45922.053392] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRelease (err -2)
[45922.053396] vboxsf: Unknown symbol VBoxGuest_RTStrNLen (err -2)
[45922.053403] vboxsf: Unknown symbol VBoxGuest_RTLogRelGetDefaultInstanceEx (err -2)
[45922.053408] vboxsf: Unknown symbol VBoxGuest_RTStrCopy (err -2)
[45922.053413] vboxsf: Unknown symbol VBoxGuest_RTErrConvertToErrno (err -2)
[45922.053423] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexCreate (err -2)
[45922.053428] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexDestroy (err -2)
[45922.053434] vboxsf: Unknown symbol VBoxGuest_RTMemContFree (err -2)
[45922.053438] vboxsf: Unknown symbol VBoxGuest_RTSemMutexRelease (err -2)
[45922.053445] vboxsf: Unknown symbol VBoxGuest_rtR0MemObjLinuxVirtToPage (err -2)
[45922.053453] vboxsf: Unknown symbol VBoxGuest_RTAssertShouldPanic (err -2)
[45922.053459] vboxsf: Unknown symbol VBoxGuest_RTLogLoggerEx (err -2)
[45922.053465] vboxsf: Unknown symbol VBoxGuest_RTMemContAlloc (err -2)
[45922.053470] vboxsf: Unknown symbol VBoxGuest_RTSemMutexRequest (err -2)
[45922.053475] vboxsf: Unknown symbol VBoxGuest_RTSemMutexCreate (err -2)
[45922.053480] vboxsf: Unknown symbol VBoxGuest_RTSemMutexDestroy (err -2)
[45922.053486] vboxsf: Unknown symbol VBoxGuest_RTAssertMsg1Weak (err -2)
[45922.053498] vboxsf: Unknown symbol VBoxGuest_RTAssertMsg2Weak (err -2)
The installation itself had no errors. The vboxsf modinfo output is below:

Code: Select all

filename:       /lib/modules/5.10.0-hiveos/misc/vboxsf.ko
version:        6.1.30 r148432
alias:          fs-vboxsf
license:        GPL and additional rights
author:         Oracle Corporation
description:    Oracle VM VirtualBox VFS Module for Host File System Access
srcversion:     216EF6F5567D744C771DDBB
depends:        vboxguest
retpoline:      Y
name:           vboxsf
vermagic:       5.10.0-hiveos SMP mod_unload
parm:           follow_symlinks:Let host resolve symlinks rather than showing them (int)
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unknown symbol errors with guest additions in Ubuntu 18.04

Post by scottgus1 »

I don't know about the errors, we'll have to let a Linux guru look into that.

But I have read on crypto mining, and there is a serious need for specialized hardware to break even / profit over the power used by the mining computer. Unless you can get the power for absolutely free (like running the computer on a solar panel with supercapacitor non-battery power supply, or you live next to a waterfall that you can get a pelton wheel on) you'll need a much more powerful computer (with specialized GPUs at least, or ASICs even better) to get results for the power you're using to mine.

Mining in a VM won't make you any money for the electricity being used. But at least the room will be warmer... :lol:
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Unknown symbol errors with guest additions in Ubuntu 18.04

Post by fth0 »

The VirtualBox Guest Additions provide several kernel modules (e.g. vboxguest, vboxvideo, vboxsf). Some Linux distributions like Ubuntu additionally provide the same kernel modules (possibly in an older version) as part of some misc kernel modules package installed by default.

I'd sugguest to start with a search (e.g. find /lib/modules -name "vbox*"), and check if the matching vboxguest kernel module is being used or if the VirtualBox provided one couldn't be built.
Speeddymon
Posts: 4
Joined: 25. Jan 2012, 06:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora 16

Re: Unknown symbol errors with guest additions in Ubuntu 18.04

Post by Speeddymon »

scottgus1 wrote:power you're using to mine.

Mining in a VM won't make you any money for the electricity being used. But at least the room will be warmer... :lol:
I appreciate the info but this VM isn't going to mine anything itself. The reason its running an OS customized for mining is to allow me to do development work for the OS in order to support my real mining hardware and try to allow that hardware to maintain 99% uptime or better.

As I'm sure you can imagine, I wouldn't want to do development on a real rig, so it must be done somewhere. :)
Speeddymon
Posts: 4
Joined: 25. Jan 2012, 06:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora 16

Re: Unknown symbol errors with guest additions in Ubuntu 18.04

Post by Speeddymon »

fth0 wrote:The VirtualBox Guest Additions provide several kernel modules (e.g. vboxguest, vboxvideo, vboxsf). Some Linux distributions like Ubuntu additionally provide the same kernel modules (possibly in an older version) as part of some misc kernel modules package installed by default.

I'd sugguest to start with a search (e.g. find /lib/modules -name "vbox*"), and check if the matching vboxguest kernel module is being used or if the VirtualBox provided one couldn't be built.
Thanks, this pointed me onto the right path. I found the module and it won't load, but I was able to see some additional error messages in dmesg output which were not coming up previously, and that led me to the answer.

Code: Select all

Error: Driver 'vboxguest' is already registered, aborting...
Fortunately, the devs included the config in the kernel.

Code: Select all

# zgrep -i vbox /proc/config.gz
CONFIG_DRM_VBOXVIDEO=m
CONFIG_VBOXGUEST=y
# CONFIG_VBOXSF_FS is not set
#
Based on this, I'm going to need to recompile the kernel with vboxguest as a module instead of being compiled in. That should solve the issue for me.
Last edited by Speeddymon on 20. Feb 2022, 23:17, edited 1 time in total.
Speeddymon
Posts: 4
Joined: 25. Jan 2012, 06:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora 16

Re: Unknown symbol errors with guest additions in Ubuntu 18.04

Post by Speeddymon »

And just following up, after recompiling with

Code: Select all

CONFIG_VBOXGUEST=m
I was able to load up the guest additions properly.
Post Reply