You are not logged in.

#1 2019-10-07 06:10:54

xala
Member
Registered: 2019-10-07
Posts: 15

Virtualbox modules loading failed

Hello everyone , I am trying to install virtualbox on my new arch machine. I am trying to load vboxdrv module but terminal gets stuck every time I do that I tried this command "sudo modprobe --verbose --force-vermagic vboxdrv" same outcome . Here are some output :

->> ~$ dmesg | grep modprob
[11507.203215] CPU: 3 PID: 8449 Comm: modprobe Tainted: PF          OE     5.1.15-arch1-1-ARCH #1

->> ~$ pacman -Q linux
linux 5.1.15.arch1-1
->> ~$ pacman  -Qs virtualbox
local/libvirt 5.6.0-1
    API for controlling virtualization engines
    (openvz,kvm,qemu,virtualbox,xen,etc)
local/virtualbox 6.0.12-2
    Powerful x86 virtualization for enterprise as well as home
    use
local/virtualbox-host-modules-arch 6.0.12-8
    Virtualbox host kernel modules for Arch Kernel
->> ~$ modprobe -V
kmod version 26
+XZ +ZLIB +LIBCRYPTO -EXPERIMENTAL

Last edited by xala (2019-10-07 06:26:43)

Offline

#2 2019-10-07 06:18:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Virtualbox modules loading failed

1. Remove the redundant plea for help from the thread title: https://wiki.archlinux.org/index.php/Co … ow_to_post

2. Use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code

3. Why are you using an ancient kernel?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-10-07 06:33:03

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

I like this verson of kernel dont want to update. Used an old arch image that had saved for quick install .

Last edited by xala (2019-10-07 06:35:27)

Offline

#4 2019-10-07 06:35:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Virtualbox modules loading failed

That's not how arch works: partial updates are unsupported.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-10-07 06:36:47

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

Re: Virtualbox modules loading failed

If you don't update the linux package then you also can't update virtualbox-host-modules-arch. Install virtualbox-host-dkms.

Offline

#6 2019-10-07 06:44:17

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

thanks for replying I just installed the package now it shows :

->> ~$ pacman -Qs virtualbox
local/libvirt 5.6.0-1
    API for controlling virtualization engines
    (openvz,kvm,qemu,virtualbox,xen,etc)
local/virtualbox 6.0.12-2
    Powerful x86 virtualization for enterprise as well as home
    use
local/virtualbox-host-dkms 6.0.12-2
    VirtualBox Host kernel modules sources
->> ~$ sudo modprobe --verbose --force-vermagic vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.1.15-arch1-1-ARCH
->> ~$ ls /lib/modules/
.  ..  5.1.15-arch1-1-ARCH  extramodules-ARCH
->> ~$ sudo dmesg | grep modprobe
->> ~$ 

And also sorry i am not updating this is a old laptop and has some issues. last time i updated the whole system just crashed and died for good. That does not mean i wont update. I will update to the new version but need the virtualbox to try it out first .

Last edited by xala (2019-10-07 06:49:06)

Offline

#7 2019-10-07 06:47:41

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

Re: Virtualbox modules loading failed

Did you install linux-headers (matching the version of the linux package)?

Offline

#8 2019-10-07 06:49:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Virtualbox modules loading failed

xala wrote:

am not updating this is a old laptop and has some issues. last time i updated the whole system just crashed and died for good.

Install Debian. Arch is not designed to work like this.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2019-10-07 06:51:57

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

Yes tried but install gives this error:

->> ~$ sudo pacman -S linux-headers 
warning: linux-headers-5.3.1.arch1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)         Old Version    New Version    Net Change

core/linux-headers  5.3.1.arch1-1  5.3.1.arch1-1    0.00 MiB

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

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [------] 100%
(1/1) checking package integrity                   [------] 100%
(1/1) loading package files                        [------] 100%
(1/1) checking for file conflicts                  [------] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
:: Processing package changes...
(1/1) reinstalling linux-headers                   [------] 100%
:: Running post-transaction hooks...
(1/2) Install DKMS modules
==> Unable to install module vboxhost/6.0.12_OSE for kernel 5.3.1-arch1-1-ARCH: Missing kernel modules tree.     /// *this line
(2/2) Arming ConditionNeedsUpdate...
->> ~$ sudo modprobe --verbose --force-vermagic vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.1.15-arch1-1-ARCH

Offline

#10 2019-10-07 06:53:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Virtualbox modules loading failed


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2019-10-07 06:54:50

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

So needs a complete  update??

Last edited by xala (2019-10-07 06:56:24)

Offline

#12 2019-10-07 06:55:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Virtualbox modules loading failed

How many times do I have to type it?

It's in the wiki for a reason...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2019-10-07 07:03:26

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

Re: Virtualbox modules loading failed

xala wrote:

Yes tried but install gives this error:

nl6720 wrote:

Did you install linux-headers (matching the version of the linux package)?

Offline

#14 2019-10-07 07:11:35

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

Is there a way to select a verson of package with pacman ???

Offline

#15 2019-10-07 07:17:45

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

Re: Virtualbox modules loading failed

Nope, but you can find old versions of packages in the Arch Linux Archive.

Offline

#16 2019-10-07 07:49:34

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

still the same nothing changed

->> ~$ sudo modprobe --verbose --force-vermagic vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.3.4-arch1-1-ARCH
->> ~$ pacman -Q linux-headers
linux-headers 5.1.15.arch1-1

Offline

#17 2019-10-07 07:52:27

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,711
Website

Re: Virtualbox modules loading failed

xala wrote:

still the same nothing changed

->> ~$ sudo modprobe --verbose --force-vermagic vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.3.4-arch1-1-ARCH
->> ~$ pacman -Q linux-headers
linux-headers 5.1.15.arch1-1

So now you've updated the kernel but installed old kernel headers.
As @jasonwryan already told you multiple times: Do a

pacman -Syu

and come back here afterwards.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#18 2019-10-07 08:01:43

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

Re: Virtualbox modules loading failed

Why is it suddenly looking for /lib/modules/5.3.4-arch1-1-ARCH, did you update the kernel?

Anyway, as others have said partial updates are unsupported, but in the case of the kernel it usually is not an issue provided you know what you are doing.
If you want to use a older kernel that is supported try linux-lts.

Last edited by nl6720 (2019-10-07 08:02:41)

Offline

#19 2019-10-07 08:10:52

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

still the same

->> ~$ pacman -Q linux
linux 5.3.4.arch1-1
->> ~$ pacman -Q linux-headers 
linux-headers 5.3.4.arch1-1
->> ~$ pacman -Q linux-lts 
linux-lts 4.19.77-1
 ->> ~$ vb
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.3.4-arch1-1-ARCH
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount-system ====
Authentication is required to mount ST2000LM003 HN-M201RAD (/dev/sdb4)
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.3.4-arch1-1-ARCH

Last edited by xala (2019-10-07 08:11:52)

Offline

#20 2019-10-07 08:14:52

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,711
Website

Re: Virtualbox modules loading failed

Please run

$ uname -a
# dkms install vboxhost/6.0.12_OSE
# modprobe vboxdrv

Last edited by schard (2019-10-07 08:22:50)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#21 2019-10-07 08:24:36

xala
Member
Registered: 2019-10-07
Posts: 15

Re: Virtualbox modules loading failed

it worked
Thanks now I have to reinstall again. Its stuck at boot.

Last edited by xala (2019-10-07 09:08:23)

Offline

#22 2019-10-07 11:13:10

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: Virtualbox modules loading failed

xala wrote:

it worked
Thanks now I have to reinstall again. Its stuck at boot.

Why would that require a reinstall?

Offline

Board footer

Powered by FluxBB