Virtualbox install error : Bad return status for module build on kernel: 5.4.95-1-lts (x86_64)

I want to use virtualbox on my EnOS system. Here is terminal output.

$ yay -S virtualbox                                                           
resolving dependencies...
:: There are 2 providers available for VIRTUALBOX-HOST-MODULES:
:: Repository community
   1) virtualbox-host-dkms  2) virtualbox-host-modules-arch

Enter a number (default=1): 1
looking for conflicting packages...

Package (3)                     New Version  Net Change

extra/sdl                       1.2.15-14      1.02 MiB
community/virtualbox-host-dkms  6.1.18-1      10.01 MiB
community/virtualbox            6.1.18-1     160.99 MiB

Total Installed Size:  172.01 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring                             [--------------------------------] 100%
(3/3) checking package integrity                           [--------------------------------] 100%
(3/3) loading package files                                [--------------------------------] 100%
(3/3) checking for file conflicts                          [--------------------------------] 100%
:: Processing package changes...
(1/3) installing sdl                                       [--------------------------------] 100%
Optional dependencies for sdl
    alsa-lib: ALSA audio driver [installed]
    libpulse: PulseAudio audio driver [installed]
(2/3) installing virtualbox-host-dkms                      [--------------------------------] 100%
(3/3) installing virtualbox                                [--------------------------------] 100%
Optional dependencies for virtualbox
    vde2: Virtual Distributed Ethernet support [installed]
    virtualbox-guest-iso: Guest Additions CD image
    virtualbox-ext-vnc: VNC server support
    virtualbox-sdk: Developer kit
:: Running post-transaction hooks...
(1/8) Creating system user accounts...
(2/8) Reloading system manager configuration...
(3/8) Reloading device manager configuration...
(4/8) Arming ConditionNeedsUpdate...
(5/8) Install DKMS modules
==> dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.4.95-1-lts
Error! Bad return status for module build on kernel: 5.4.95-1-lts (x86_64)
Consult /var/lib/dkms/vboxhost/6.1.18_OSE/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.4.95-1-lts' returned 10
==> dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.10.13-arch1-1
==> depmod 5.4.95-1-lts
==> depmod 5.10.13-arch1-1
(6/8) Updating icon theme caches...
(7/8) Updating the desktop file MIME type cache...
(8/8) Updating the MIME type database...

lts kernel is my primary boot option.

There is no file at the more information file suggested

$ cat /var/lib/dkms/vboxhost/6.1.18_OSE/build/make.log
cat: /var/lib/dkms/vboxhost/6.1.18_OSE/build/make.log: No such file or directory

Please help with installing virtualbox.

I have no idea what all logs are required for this kind of error. Please ask for whatever logs are needed.
Thanks

I use the number 2 virtual-host-modules-arch

Isn’t that for the latest Linux kernel? I use Linux lts.

https://wiki.archlinux.org/index.php/VirtualBox#Install_the_core_packages

Install the virtualbox package. You will also need to choose a package to provide host modules:

    for the linux kernel, choose virtualbox-host-modules-arch
    for any other kernel (including linux-lts), choose virtualbox-host-dkms

:crazy_face: :point_up: # RTM !! :japanese_ogre:

but it seems there is an issue with LTS kernel and DKMS currently? i see also users with similar issue using nvidia-dkms

:: Starte pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.10.13-arch1-1
==> Unable to remove module vboxhost/6.1.18_OSE for kernel 5.4.95-1-lts: Not found in dkms status output.

http://ix.io/2Ovd

log say nothing helpful…

seems currently it is not possible to use Virtualbox on lts kernel

there is also virtualbox-host-modules-lts
but it is depending on:

makedepends=("linux-lts>=$_linux_cur" "linux-lts<$_linux_next"
             "linux-lts-headers>=$_linux_cur" "linux-lts-headers<$_linux_next"
             "virtualbox-host-dkms>=$pkgver"
             "virtualbox-guest-dkms>=$pkgver")

what will cause the same issue…

but updates rolling in and it is solved now!

:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.4.95-1-lts
==> dkms remove --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.10.13-arch1-1
:: Processing package changes...
(1/1) reinstalling virtualbox-host-dkms                      [--------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.4.95-1-lts
==> dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.10.13-arch1-1
==> depmod 5.4.95-1-lts
==> depmod 5.10.13-arch1-1
2 Likes

You are right. I never use it with lts kernel as I am only using latest kernels. I didn’t realize that. Now i learned something new. I should RTFM. :rofl:

I have problems with virtualbox. I can install and download it successfully, but when i open virtualbox it says that i have to execute ./sbin/vboxconfig. But i don’t know how to execute this command.

Thank you for your help. :+1:

Did you forget one command? When you installed it.

sudo modprobe vboxdrv

1 Like

Yeah, that’s it! Thank you @ricklinux. :grinning:

1 Like