You are not logged in.

#1 2016-03-09 16:59:20

eblau
Member
Registered: 2016-02-11
Posts: 43

[SOLVED] virtualbox modules do not load after upgrading linux-lts

I'm having some trouble loading the VirtualBox modules after upgrading to linux-lts-4.1.19-1. I have virtualbox-host-dkms-5.0.14-4 installed along with linux-lts-headers 4.1.19-1. The DKMS modules rebuilt successfully with no errors, but I get the following error trying to load the vboxdrv module:

$ sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Exec format error

$ file /lib/modules/4.1.19-1-lts/kernel/misc/vboxdrv.ko
/lib/modules/4.1.19-1-lts/kernel/misc/vboxdrv.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=1f0828622d5207c6be9ec1e62942412d63d7679d, not stripped

$ uname -a
Linux eblau-us 4.1.19-1-lts #1 SMP Sun Mar 6 09:23:49 CET 2016 x86_64 GNU/Linux

I have reinstalled/rebuilt virtualbox-host-dkms multiple times. Each time it succeeds, but the generated modules do not load.

Is virtualbox-host-dkms-5.0.14-4 not backward compatible with kernels older than 4.4.x?

$ sudo pacman -S virtualbox-host-dkms
warning: virtualbox-host-dkms-5.0.14-4 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) virtualbox-host-dkms-5.0.14-4

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

:: Proceed with installation? [Y/n] 
(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%
(1/1) checking available disk space                                    [#######################################] 100%
:: Running pre-transaction hooks...
(1/2) Remove DKMS modules
(2/2) etckeeper: pre-transaction commit
:: Processing package changes...
(1/1) reinstalling virtualbox-host-dkms                                [#######################################] 100%
:: Running post-transaction hooks...
(1/2) Install DKMS modules

Creating symlink /var/lib/dkms/vboxhost/5.0.14_OSE/source ->
                 /usr/src/vboxhost-5.0.14_OSE

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make KERNELRELEASE=4.1.19-1-lts -C /usr/lib/modules/4.1.19-1-lts/build M=/var/lib/dkms/vboxhost/5.0.14_OSE/build.......................
cleaning build area...
Kernel cleanup unnecessary for this kernel.  Skipping...

DKMS: build completed.

vboxdrv.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/4.1.19-1-lts/kernel/misc/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/4.1.19-1-lts/kernel/misc/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/4.1.19-1-lts/kernel/misc/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/4.1.19-1-lts/kernel/misc/

depmod...

DKMS: install completed.
(2/2) etckeeper: post-transaction commit

Last edited by eblau (2016-03-09 17:30:29)

Offline

#2 2016-03-09 17:01:44

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

I saw this thread:

https://bbs.archlinux.org/viewtopic.php?id=209665

This makes me suspect that virtualbox-host-dkms-5.0.14-4 broke compatibility with kernel versions prior to 4.4.3. I don't have a prior version of virtualbox-host-dkms to try and virtualbox-host-modules-lts-5.0.14-3-x86_64.pkg.tar.xz won't work with the new linux-lts 4.1.19 version.

Offline

#3 2016-03-09 17:06:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,601

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

The thread you linked to has nothing to do with this. It's actually about the problem that dkms solves.

Let me try booting the lts kernel.

Offline

#4 2016-03-09 17:12:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,601

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

Works great here. What is the output of `modinfo vboxdrv`?

Offline

#5 2016-03-09 17:17:24

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

$ modinfo vboxdrv
filename:       /lib/modules/4.1.19-1-lts/extramodules/vboxdrv.ko.gz
version:        5.0.14_OSE (0x00240000)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle Corporation
srcversion:     0A483BDD8DF92AD10E8C986
depends:        
vermagic:       4.1.18-1-lts SMP mod_unload modversions 
parm:           force_async_tsc:force the asynchronous TSC mode (int)

I upgraded from 4.1.18-1-lts so I'm guessing something is left over from the previous build.

Offline

#6 2016-03-09 17:18:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,601

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

filename:       /lib/modules/4.1.19-1-lts/extramodules/vboxdrv.ko.gz

That's from the old binary package. That's your problem.

Last edited by Scimmia (2016-03-09 17:18:21)

Offline

#7 2016-03-09 17:21:05

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

Thank you! That was indeed the problem. I removed virtualbox-host-modules-lts and reinstalled virtualbox-host-dkms and all is well now.

I'm not sure how the DKMS build ended up copying in the old module(s), but I'm operational now. Thanks again.

Offline

#8 2016-03-09 17:25:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,601

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

It didn't copy the old modules, you're not supposed to have the binary package installed at the same time as the dkms package.

Don't forget to mark you thread as solved.

Offline

#9 2016-03-09 17:29:32

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

OK. I thought the modules had to be copied underneath the /lib/modules/<version> directory for the version of the kernel that you're running. Checking the actual directory structure, I see it is a symlink outside of the kernel version subdirectory:

$ pwd
/lib/modules/4.1.19-1-lts
$ ls -l
total 1176
drwxr-xr-x 21 root root     26 Mar  9 09:43 build
drwxr-xr-x 10 root root     10 Mar  9 09:43 extra
lrwxrwxrwx  1 root root     23 Mar  6 03:25 extramodules -> ../extramodules-4.1-lts

It seems strange to have a version-specific module tree pointing outside of the exact version of the kernel the module is made for, but I guess it only ends up being a problem in cases like this where a package needs to be removed.

I will mark the thread solved.

Offline

#10 2016-03-09 17:31:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,601

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

eblau wrote:

...but I guess it only ends up being a problem in cases like this where a package needs to be removed.

Which should have been done automatically. Bug report: https://bugs.archlinux.org/task/48523

Offline

#11 2016-03-10 18:18:54

voepew
Member
Registered: 2016-02-29
Posts: 4

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

VirtualBox again doesn't work after upgrade to 4.4.5-1 kernel

filename:       /lib/modules/4.4.5-1-ARCH/extramodules/vboxdrv.ko.gz
version:        5.0.14_OSE (0x00240000)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle Corporation
srcversion:     0A483BDD8DF92AD10E8C986
depends:        
vermagic:       4.4.3-1-ARCH SMP preempt mod_unload modversions 
parm:           force_async_tsc:force the asynchronous TSC mode (int)
Unloading modules: 
Loading modules: modprobe: ERROR: could not insert 'vboxnetadp': Exec format error
modprobe: ERROR: could not insert 'vboxnetflt': Exec format error
modprobe: ERROR: could not insert 'vboxpci': Exec format error
modprobe: ERROR: could not insert 'vboxdrv': Exec format error

VirtualBox and modules are flagged as outdated since 2016-03-05...

Offline

#12 2016-03-11 01:00:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,601

Re: [SOLVED] virtualbox modules do not load after upgrading linux-lts

Totally different issue, veopew. Don't threadjack.

Offline

Board footer

Powered by FluxBB