Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - virtualbox-guest-additions not starting
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Sat Dec 26, 2020 12:06 am    Post subject: HELP - virtualbox-guest-additions not starting Reply with quote

I'm running virtualbox on a windows-10 host with a gentoo guest. I'm having trouble getting virtualbox-guest-additions to start:
Code:

gentoo ~ # /etc/init.d/virtualbox-guest-additions status
 * status: stopped
gentoo ~ # /etc/init.d/virtualbox-guest-additions start
 * Loading kernel modules
modprobe: ERROR: could not insert 'vboxsf': Unknown symbol in module, or unknown parameter (see dmesg)
 * ERROR: virtualbox-guest-additions failed to start
gentoo ~ # /etc/init.d/virtualbox-guest-additions status
 * status: stopped
gentoo ~ #

I'm running a genkernel (because I was lazy and in a hurry to get something woking). :(
Code:

Linux gentoo 5.4.80-gentoo-r1-x86_64 #1 SMP Thu Dec 24 02:27:58 -00 2020 x86_64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz GenuineIntel GNU/Linux

I probably should have built a real kernel for this, but I just wanted to get gentoo running in virtualbox so I could get on with the real task I have to do.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Sat Dec 26, 2020 6:58 am    Post subject: Reply with quote

What return modinfo vboxsf command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Sat Dec 26, 2020 4:47 pm    Post subject: Reply with quote

Quote:

What return modinfo vboxsf command?

Code:

gentoo ~ # modinfo vboxsf
filename:       /lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko
version:        6.0.24_Gentoo r139119
alias:          fs-vboxsf
license:        GPL and additional rights
author:         Oracle Corporation
description:    Oracle VM VirtualBox VFS Module for Host File System Access
srcversion:     F5140790D0151E8E320C213
depends:        vboxguest
retpoline:      Y
name:           vboxsf
vermagic:       5.4.80-gentoo-r1-x86_64 SMP mod_unload modversions
parm:           follow_symlinks:Let host resolve symlinks rather than showing them (int)
gentoo ~ #

_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Sat Dec 26, 2020 5:01 pm    Post subject: Reply with quote

Code:

gentoo ~ # mount -t vboxsf C:/cygdrive/home/rj /mnt/win
/sbin/mount.vboxsf: mounting failed with the error: No such device
gentoo ~ # man modprobe
gentoo ~ # modprobe vboxsf
modprobe: ERROR: could not insert 'vboxsf': Unknown symbol in module, or unknown parameter (see dmesg)
gentoo ~ # cat /var/log/messages
Dec 26 16:59:30 gentoo syslog-ng[8468]: syslog-ng starting up; version='3.26.1'
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTLogBackdoorPrintf (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuestIDC (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRequest (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRelease (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTStrNLen (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTLogRelGetDefaultInstanceEx (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTStrCopy (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTErrConvertToErrno (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexCreate (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexDestroy (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTMemContFree (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemMutexRelease (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_rtR0MemObjLinuxVirtToPage (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTAssertShouldPanic (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTLogLoggerEx (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTMemContAlloc (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemMutexRequest (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemMutexCreate (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTSemMutexDestroy (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTAssertMsg1Weak (err -2)
Dec 26 16:59:59 gentoo kernel: vboxsf: Unknown symbol VBoxGuest_RTAssertMsg2Weak (err -2)
gentoo ~ #

_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Sat Dec 26, 2020 5:12 pm    Post subject: Reply with quote

What version is virtualbox on windows? The problem can be the different version between host and guest?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Sat Dec 26, 2020 6:17 pm    Post subject: Reply with quote

VirtualBox 6.1
GUI Version 6.1.16 r140961 (Qt5.6.2)
(C) 2020 Oracle Corp.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Sat Dec 26, 2020 6:32 pm    Post subject: Reply with quote

Try to unmask app-emulation/virtualbox-guest-additions-6.1.16-r1
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Mon Dec 28, 2020 3:02 am    Post subject: Reply with quote

OK, I unmasked app-emulation/virtualbox-guest-additions-6.1.16-r1 and emerged it; I got:
Code:

>>> Installing (1 of 1) app-emulation/virtualbox-guest-additions-6.1.16-r1::gentoo
 * >>> SetUID: [chmod go-r] /sbin/mount.vboxsf ...                                                                                           [ ok ]
 * Removing app-emulation/virtualbox-guest-additions-6.1.16-r1 from moduledb.
 * Updating module dependencies for 5.4.80-gentoo-r1-x86_64 ...
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTLogBackdoorPrintf
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuestIDC
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemFastMutexRequest
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemFastMutexRelease
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTStrNLen
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTLogRelGetDefaultInstanceEx
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTStrCopy
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTErrConvertToErrno
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemFastMutexCreate
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemFastMutexDestroy
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTMemContFree
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemMutexRelease
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_rtR0MemObjLinuxVirtToPage
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTAssertShouldPanic
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTLogLoggerEx
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTMemContAlloc
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemMutexRequest
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemMutexCreate
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTSemMutexDestroy
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTAssertMsg1Weak
depmod: WARNING: //lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxsf.ko needs unknown symbol VBoxGuest_RTAssertMsg2Weak                        [ ok ]

And I got this when I tried to start it:
Code:

gentoo ~ # /etc/init.d/virtualbox-guest-additions status
 * status: stopped
gentoo ~ # /etc/init.d/virtualbox-guest-additions start
 * Caching service dependencies ...                                                                                                           [ ok ]
 * Loading kernel modules
modprobe: ERROR: could not insert 'vboxsf': Unknown symbol in module, or unknown parameter (see dmesg)
 * ERROR: virtualbox-guest-additions failed to start
gentoo ~ #


So I'm guessing I need some kernel changes. This could be a pain, because lazy me (I just wanted to get a working vm so I could get on with the work that I have to do), I used genkernel. :?

Or do I need to add something that should have gotten sucked in but the dependencies were wrong?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Mon Dec 28, 2020 6:55 am    Post subject: Reply with quote

This one is interesting, you have also /lib/modules/5.4.80-gentoo-r1-x86_64/kernel/drivers/vboxguest/vboxguest.ko installed?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Mon Dec 28, 2020 1:13 pm    Post subject: Reply with quote

No, in fact there is not even the directory /lib/modules/5.4.80-gentoo-r1-x86_64/kernel/drivers/vboxguest present.

There is, however, a /lib/modules/5.4.80-gentoo-r1-x86_64/kernel/drivers/virt/vboxguest/vboxguest.ko; did you typo the path?

Code:

gentoo ~ # lsmod | grep vbox
vboxvideo              36864  2
drm_vram_helper        20480  1 vboxvideo
drm_kms_helper        217088  1 vboxvideo
drm                   552960  6 drm_kms_helper,drm_vram_helper,vboxvideo,ttm
vboxguest              45056  0
gentoo ~ #


So it looks like the module is installed...
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Mon Dec 28, 2020 1:16 pm    Post subject: Reply with quote

Moriah wrote:
There is, however, a /lib/modules/5.4.80-gentoo-r1-x86_64/kernel/drivers/virt/vboxguest/vboxguest.ko; did you typo the path?

Yes is a typo, try to disable this module from kernel CONFIG_VBOXGUEST
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Mon Dec 28, 2020 5:21 pm    Post subject: Reply with quote

Since this is a genkernel, can I just unload it somehow? It actually does not seem to be loaded.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Mon Dec 28, 2020 5:30 pm    Post subject: Reply with quote

Moriah wrote:
Since this is a genkernel, can I just unload it somehow? It actually does not seem to be loaded.

I don't know if you run modprobe which of the two loads, and I don't know how blacklist it.
So you can re-run genkernel with --menuconfig option and disable it.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Mon Dec 28, 2020 5:48 pm    Post subject: Reply with quote

OK, anything else I should change while I'm in manuconfig?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Mon Dec 28, 2020 5:53 pm    Post subject: Reply with quote

Moriah wrote:
OK, anything else I should change while I'm in manuconfig?

If works no.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22877

PostPosted: Mon Dec 28, 2020 6:09 pm    Post subject: Reply with quote

You may be too deep into this to want to change, but I felt I should point out that Qemu/KVM does not build its own kernel modules, and instead works fine with just what is shipped in the upstream kernel. If your goal is just to start a VM, and you either do not need to import an existing VirtualBox disk or you can find how to convert it, Qemu might be a simpler choice. Depending on how much state you have in VirtualBox, it's also possible Qemu is not a good choice at this point.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Mon Dec 28, 2020 6:14 pm    Post subject: Reply with quote

@Hu:
I chose virtualBox because I also need to import/export files with the underlying host w10 system, and due to the nature of those files, I do not want them going over the network. VirtualBox has shared directory capability that does not use nfs/samba/etc. but works entirely locally. I have used KVM before, but in this case, the laptop host machine is my client's, not mine, and they manage the w10 firewall and security settings, so I cannot easliy change them.

Besides, does KVM even host on w10? I thought it was linux only. Remember: I am hosting on w10 with a gentoo guest.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Tue Dec 29, 2020 5:53 pm    Post subject: Reply with quote

I don't know what is wrong there, but if you get missing symbols error then it points to possible version mismatch between running kernel and modules.

The key to success:
Make sure you build your kernel and modules with same toolchain.
Make sure you build your modules against your running kernel sources.
Rebuild out of tree modules every time you change something in your kernel configuration, even if the version of kernel remains unchanged, just in case..
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2381
Location: Kentucky

PostPosted: Tue Dec 29, 2020 6:26 pm    Post subject: Reply with quote

OK, so as long as I'm building kernel modules, I would prefer to get off of genkernel and back to the good old way. I've been building gentoo kernels since 2004, and almost never used genkernel. I only used it here because I didn't want to fiddle with kernel config when all I wanted was a vm to run gentoo on an otherwise w10 box. I originally chose gentoo because it would let me do crazy things (in those days) like boot from an unpartitioned fully encrypted hard drive, using lvm for everything, so I could use snapshots for freezing a view of the running filesystem during backup, while still letting the system keep running and doing its job. That is plain vanilla today, but was "way out there" back then; initreads were "roll your own with nash" back then. :mrgreen:

Is there an easy way to go from genkernel to a "real" kernel? Can I leverage the genkernel to make configuring the real kernel easier?

Or is there a "standard" kernel config for running an adm64 vm under w10? I mainly need the screen resize and the shared folder features to work. I already have everything else I need working under genkernel.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Tue Dec 29, 2020 6:41 pm    Post subject: Reply with quote

Moriah,

I've never used genkernel, once I thought about trying it but then I decided learning how to use it is not worth the effort. Spending a little time with your own kernel is the price what you pay for having your own ... comes with rewards, though.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22877

PostPosted: Tue Dec 29, 2020 7:09 pm    Post subject: Reply with quote

Moriah wrote:
Besides, does KVM even host on w10? I thought it was linux only. Remember: I am hosting on w10 with a gentoo guest.
Sorry, I forgot that when I was writing my post. We have enough users on the forum running VirtualBox on a Gentoo host that I was thinking this was one of those threads. Many of those threads involve trying to make the VirtualBox kernel modules load on the Gentoo host, which using KVM would make unnecessary. As you say, KVM is not a valid solution to your current problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum