Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Can't start VirtualBox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 363

PostPosted: Sat Oct 26, 2024 10:57 pm    Post subject: [Solved] Can't start VirtualBox Reply with quote

Hi there!
After recent kernel update I can't load virtualbox modules. Right now I have 6.6.57-gentoo-dist kernel installed. After updating to 6.6.57 I rebuilt virtualbox-modules package, but I can't load it:
Code:
modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Exec format error


Virtualbox and virtualbox-modules are both 7.0.20

Code:
modinfo vboxdrv
filename:       /lib/modules/6.6.57-gentoo-dist/misc/vboxdrv.ko
version:        7.0.20 r163906 (0x00330004)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle and/or its affiliates
srcversion:     9CBC44140E50A5E89770210
depends:       
retpoline:      Y
name:           vboxdrv
vermagic:       6.6.57-gentoo-dist SMP preempt mod_unload
parm:           disabled:Disable automatic module loading (int)
parm:           force_async_tsc:force the asynchronous TSC mode (int)

Any idea on what's going on/
_________________
GNU is Not Usable


Last edited by Blind_Sniper on Mon Nov 25, 2024 4:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 473
Location: Naarm/Melbourne, Australia

PostPosted: Sun Oct 27, 2024 2:43 am    Post subject: Reply with quote

That error can be caused by something being built for an architecture different to the one it actually ends up running on. Did you rebuild on a host other than the one on which you're trying to run VBox?
_________________
https://wiki.gentoo.org/wiki/User:Flexibeast
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 363

PostPosted: Sun Oct 27, 2024 8:16 am    Post subject: Reply with quote

I running VBox on the same machine where I built both - module and virtualbox
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 363

PostPosted: Sat Nov 02, 2024 6:43 am    Post subject: Reply with quote

Updated to gentoo-kernel-bin-6.6.58r2 and rebuilt virtualbox-modules-7.0.20 - still can't load vboxdrv:
Code:
# modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Exec format error

_________________
GNU is Not Usable
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 473
Location: Naarm/Melbourne, Australia

PostPosted: Sat Nov 02, 2024 7:42 am    Post subject: Reply with quote

i'm wondering whether the output of `dmesg | grep vbox` might offer a lead?
_________________
https://wiki.gentoo.org/wiki/User:Flexibeast
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 363

PostPosted: Mon Nov 25, 2024 4:09 pm    Post subject: Reply with quote

Finally got it working.
Module fails to load because gentoo-kernel-bin build environment and my local module build environment are different.
Switching to gentoo-kernel and building both kernel and module locally fixed the problem. Now both kernel and module are compatible.
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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