Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vbox drivers not loading
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
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 810

PostPosted: Tue Aug 13, 2024 12:25 pm    Post subject: Vbox drivers not loading Reply with quote

I'm trying all avenues to get a working version of a 32-bit windows. Through wine, through virtual machines, and actual machines.

So for the VMs, I'm having trouble with VirtualBox, I've built it but for some reason I cannot get the modules to load:

Code:
$ VirtualBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.6.35-gentoo-dist) or it failed to
         load. Please recompile the kernel module and install it by

           for m in vbox{drv,netadp,netflt}; do modprobe $m; done

         You will not be able to start VMs until this problem is fixed.


Code:
# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/6.6.35-gentoo-dist


I've installed the drivers and even rebuilt the kernel.

Code:
# emerge -p virtualbox-modules

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.11 s (backtrack: 0/20).

[ebuild   R    ] app-emulation/virtualbox-modules-7.0.18


But nothing is working. I'd appreciate some help in getting these working, thanks.

dq
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22649

PostPosted: Wed Aug 14, 2024 3:11 pm    Post subject: Reply with quote

Is there a reason you picked VirtualBox over qemu-kvm? I routinely see people needing help with VirtualBox modules. Qemu-kvm uses in-kernel support for its kernel component, so enabling its kernel support is straightforward. Some networking arrangements may not be simple, but that may not matter to your use case.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 494

PostPosted: Wed Aug 14, 2024 3:20 pm    Post subject: Reply with quote

Does
Code:
modinfo vboxdrv
show any infos?

Did you build the modules for the correct kernel (emerge @module-rebuild)?
Back to top
View user's profile Send private message
stefantalpalaru
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2009
Posts: 77
Location: Italy

PostPosted: Wed Aug 14, 2024 8:40 pm    Post subject: Reply with quote

sMueggli wrote:
Did you build the modules for the correct kernel


"eselect kernel list" should clarify that.
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 810

PostPosted: Wed Aug 14, 2024 10:18 pm    Post subject: Reply with quote

Yes, that was it; somehow the symlink for /usr/src/linux was pointing to the incorrect one and on top of that the sys-kernel/gentoo-kernel was also different-- all fixed! Now just gotta get this WinXP image working... Thank you!

@hu, I don't see any packages in portage for qemu-kvm...
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22649

PostPosted: Thu Aug 15, 2024 12:10 am    Post subject: Reply with quote

app-emulation/qemu provides Qemu. With the right kernel support, and the option -enable-kvm, qemu can use hardware-assisted acceleration via Linux KVM support.
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