You are not logged in.

#1 2022-04-06 15:03:55

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

[SOLVED]I can't activate vboxdrv for my Virtualbox

well, i have installed the latest version of linux-lts kernel but when I reboot and run "modprobe vboxdrv" it's returns a error

so who can help me?

Last edited by wolfito-sam (2022-04-09 15:44:13)

Offline

#2 2022-04-06 15:06:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

"a error" doesn't tell us much. Always post complete errors.

If I had to guess, did you update the kernel and not reboot?

Edit: Or, more likely, you didn't install or build the driver for that kernel?

Last edited by Scimmia (2022-04-06 15:11:33)

Offline

#3 2022-04-06 15:12:42

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

I actually reboot, but when I digit `modprobe vboxdrv`:

`modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.15.32-1-lts `

the same happens with `sudo modprobe vboxdrv`.

Offline

#4 2022-04-06 15:13:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

OK, so how did you install that module?

Offline

#5 2022-04-06 15:17:07

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

sudo pacman -S virtualbox virtualbox-host-dkms

I followed the Arch wiki to install https://wiki.archlinux.org/title/VirtualBox

Offline

#6 2022-04-06 15:18:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

Ok, so when you installed that, did the module build successfully? Did you install the optional deps that you would need when pacman told you about them?

Offline

#7 2022-04-06 15:28:17

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

I run the pacman man again:


warning: virtualbox-6.1.32-2 is up to date -- reinstalling
warning: virtualbox-host-dkms-6.1.32-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) virtualbox-6.1.32-2  virtualbox-host-dkms-6.1.32-2

Total Installed Size:  172.79 MiB
Net Upgrade Size:        0.00 MiB

So nothing about vboxdrv

Offline

#8 2022-04-06 15:32:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

The dkms hook builds it after that.

Offline

#9 2022-04-06 15:38:14

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

I will read the whole wiki and try something else, thanks for try help.

Offline

#10 2022-04-06 16:18:17

ElNinijo
Member
Registered: 2010-11-20
Posts: 54

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

Try:

sudo modprobe vboxdrv

Offline

#11 2022-04-06 21:24:05

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

ElNinijo wrote:

Try:

sudo modprobe vboxdrv

I tried it but the same error appear.

Offline

#12 2022-04-07 08:24:59

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 715

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

Post the output of:

pacman -Qi dkms

Offline

#13 2022-04-08 11:48:03

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

nl6720 wrote:

Post the output of:

pacman -Qi dkms

Name            : dkms
Version         : 3.0.3-1
Description     : Dynamic Kernel Modules System
Architecture    : any
URL             : https://github.com/dell/dkms
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : coreutils  bash  gawk  sed  kmod  gcc  make  patch
Optional Deps   : linux-headers: build modules against the Arch kernel [installed]
                  linux-lts-headers: build modules against the LTS kernel
                  linux-zen-headers: build modules against the ZEN kernel
                  linux-hardened-headers: build modules against the HARDENED kernel
Required By     : virtualbox-host-dkms
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 104.35 KiB
Packager        : Sébastien Luttringer <seblu@seblu.net>
Build Date      : Fri 17 Dec 2021 07:25:15 AM -03
Install Date    : Wed 06 Apr 2022 11:30:28 AM -03
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

Offline

#14 2022-04-08 12:01:08

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 715

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

wolfito-sam wrote:

i have installed the latest version of linux-lts kernel

You need to install the appropriate kernel headers package.

wolfito-sam wrote:
Optional Deps   : linux-headers: build modules against the Arch kernel [installed]
                  linux-lts-headers: build modules against the LTS kernel
                  linux-zen-headers: build modules against the ZEN kernel
                  linux-hardened-headers: build modules against the HARDENED kernel

Offline

#15 2022-04-08 12:32:31

wolfito-sam
Member
Registered: 2022-04-06
Posts: 25

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

Problem solved! Thanks nl6720

for people who will see this post after and will have the same problem:

I tried update linux-lts kernel using this command:

sudo pacman -S linux-lts linux-headers

but what I actually needed to do is:

sudo pacman -S linux-lts linux-lts-headers

well, sometimes we need to make mistakes to avoid others.

Offline

#16 2022-04-08 12:40:30

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

All you actually needed to do was install the linux-lts-headers package - you already had the LTS kernel installed.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#17 2022-04-08 12:48:36

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]I can't activate vboxdrv for my Virtualbox

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB