Issue when installing Virtualbox host modules on kernel 52

I'm trying to install virtualbox but I can't seem to install the host modules (see Help me install Virtualbox for an example of how it should be done)

uname -r
5.2.8-arch1-1-ARCH
mhwd-kernel -li    
Currently running: 5.2.8-arch1-1-ARCH (linux52)
The following kernels are installed in your system:
   * linux316
   * linux54
   * linux56
sudo pacman -Ss virtualbox
core/linux56 5.6.11-1 [installed]
    The Linux56 kernel and modules
extra/linux316-virtualbox-host-modules 6.1.6-4 (linux316-extramodules) [installed]
    Host kernel modules for VirtualBox
extra/linux414-virtualbox-guest-modules 6.1.6+obsolete-1 (linux414-extramodules)
    Guest kernel modules for VirtualBox
extra/linux414-virtualbox-host-modules 6.1.6-4 (linux414-extramodules)
    Host kernel modules for VirtualBox
extra/linux419-virtualbox-guest-modules 6.1.6-7 (linux419-extramodules)
    Guest kernel modules for VirtualBox
extra/linux419-virtualbox-host-modules 6.1.6-7 (linux419-extramodules)
    Host kernel modules for VirtualBox
extra/linux44-virtualbox-host-modules 6.1.6-4 (linux44-extramodules)
    Host kernel modules for VirtualBox
extra/linux49-virtualbox-host-modules 6.1.6-4 (linux49-extramodules)
    Host kernel modules for VirtualBox
extra/linux54-virtualbox-guest-modules 6.1.6-9 (linux54-extramodules)
    Guest kernel modules for VirtualBox
extra/linux54-virtualbox-host-modules 6.1.6-9 (linux54-extramodules) [installed]
    Host kernel modules for VirtualBox
extra/linux55-virtualbox-guest-modules 6.1.6-4 (linux55-extramodules)
    Guest kernel modules for VirtualBox
extra/linux55-virtualbox-host-modules 6.1.6-4 (linux55-extramodules)
    Host kernel modules for VirtualBox
extra/linux56-virtualbox-guest-modules 6.1.6-11 (linux56-extramodules)
    Guest kernel modules for VirtualBox
extra/linux56-virtualbox-host-modules 6.1.6-11 (linux56-extramodules) [installed]
    Host kernel modules for VirtualBox
extra/linux57-virtualbox-guest-modules 6.1.6-0.7 (linux57-extramodules)
    Guest kernel modules for VirtualBox
extra/linux57-virtualbox-host-modules 6.1.6-0.7 (linux57-extramodules)
    Host kernel modules for VirtualBox
community/libvirt 5.10.0-3
    API for controlling virtualization engines
    (openvz,kvm,qemu,virtualbox,xen,etc)
community/linux-latest-virtualbox-guest-modules 5.6-2 (linux-latest-extramodules)
    Guest kernel modules for VirtualBox (metapackage)
community/linux-latest-virtualbox-host-modules 5.6-2 (linux-latest-extramodules)
    Host kernel modules for VirtualBox (metapackage)
community/linux-lts-virtualbox-guest-modules 1:5.4-1 (linux-lts-extramodules)
    Guest kernel modules for VirtualBox (metapackage)
community/linux-lts-virtualbox-host-modules 1:5.4-1 (linux-lts-extramodules)
    Host kernel modules for VirtualBox (metapackage)
community/linux-rt-lts-manjaro-virtualbox-guest-modules 5.4-1 (linux-rt-lts-manjaro-extramodules)
    Guest kernel modules for VirtualBox
community/linux-rt-lts-manjaro-virtualbox-host-modules 5.4-1 (linux-rt-lts-manjaro-extramodules)
    Host kernel modules for VirtualBox
community/linux-rt-manjaro-virtualbox-guest-modules 5.6-2 (linux-rt-manjaro-extramodules)
    Guest kernel modules for VirtualBox
community/linux-rt-manjaro-virtualbox-host-modules 5.6-2 (linux-rt-manjaro-extramodules)
    Host kernel modules for VirtualBox
community/linux54-rt-virtualbox-guest-modules 6.1.6-1 (linux54-rt-extramodules)
    Guest kernel modules for VirtualBox
community/linux54-rt-virtualbox-host-modules 6.1.6-1 (linux54-rt-extramodules)
    Host kernel modules for VirtualBox
community/linux56-rt-virtualbox-guest-modules 6.1.6-3 (linux56-rt-extramodules)
    Guest kernel modules for VirtualBox
community/linux56-rt-virtualbox-host-modules 6.1.6-3 (linux56-rt-extramodules)
    Host kernel modules for VirtualBox
community/phpvirtualbox 5.2_1-2
    PHP/AJAX web interface for VirtualBox
community/virtualbox 6.1.6-1
    Powerful x86 virtualization for enterprise as well as home use
community/virtualbox-ext-vnc 6.1.6-1
    VirtualBox VNC extension pack
community/virtualbox-guest-dkms 6.1.6-1
    VirtualBox Guest kernel modules sources
community/virtualbox-guest-iso 6.1.6-1
    The official VirtualBox Guest Additions ISO image
community/virtualbox-guest-utils 6.1.6-1
    VirtualBox Guest userspace utilities
community/virtualbox-guest-utils-nox 6.1.6-1
    VirtualBox Guest userspace utilities without X support
community/virtualbox-host-dkms 6.1.6-1 [installed]
    VirtualBox Host kernel modules sources
community/virtualbox-sdk 6.1.6-1
    VirtualBox Software Developer Kit (SDK)
sudo pacman -Syu linux52-virtualbox-host-modules
:: Synchronising package databases...
 core is up to date

 extra is up to date
 community is up to date
 multilib is up to date
error: target not found: linux52-virtualbox-host-modules```

That is because kernel 5.2 is long EOL and removed from the repos.

Reboot onto kernel 5.4 or 5.6 and then remove kernel 5.2

sudo mhwd-kernel -r linux52

Then install the modules for kernels 5.4 and 5.6

Your a lifesaver, sorry for the question but is there an easy way to reboot into a newer kernal?

When you reboot, do you not have a menu that quickly pops on the screen allowing you to choose the kernel?

I don't see any option to do so, it asks for my FDE password straight away

Keep the "shift" key pressed while booting. This will bring up the grub menu to select the kernel you want to boot.

1 Like
mhwd-kernel -li    
Currently running: 5.2.8-arch1-1-ARCH (linux52)
The following kernels are installed in your system:
   * linux316
   * linux54
   * linux56

This is weird. You are running kernel 5.2.8, but it is not installed. How did you do that?

PS

5.2.8-arch1-1-ARCH

This is not a Manjaro kernel anyways.

1 Like

I can't seem to get the menu to open, I've held shift when booting (goes directly into enter password) and immediately after entering the password (just boots normally)

As for the kernel mismatch, I'm not sure what's going on I think I manually downgraded the kernel a while ago after updating it killed network support.

It looks like you use DOWNGRADE_FROM_ALA with your kernel and then installed an old Arch kernel. You can't use Arch kernels with Manjaro kernel modules. Also, if you install an Arch kernel on Manjaro, it will never get updated which is partially why you are in a mess now.

EDIT: Actually, I don't even think using downgrade would let you install a kernel from Arch since the package names are different.

I think I copied the kernel packages from my arch machine and ran pacman -U to fix it. Is there any way to get out of this mess?

I am sure there is. Can you share what else you did after installing the kernel? Did you modify your grub config?

In order to get to the grub menu at boot you could edit /etc/default/grub and the run update-grub.
I would edit those two entries

GRUB_TIMEOUT=1
GRUB_TIMEOUT_STYLE=hidden

to something like

GRUB_TIMEOUT=10
GRUB_TIMEOUT_STYLE=menu

then execute update-grub and reboot.

1 Like

When rebooting a new menu pops up but for only for half a second so it's too quick to do anything with it. I've even changed the timeout to 60s and ran update-grub but it doesn't change the duration of the popup.

keep the shift key pressed or when the menu is showing you can quickly press the cursor up or cursor down key. As soon as grub is catching the key press the timeout will stop and the menu will stay.

I tried to do both but same thing happened, could plymouth be interfering with the menu?

I am lost. I can not help you. I do not know what you did to your PC. Sorry. I am out.

1 Like

Thanks for your time anyway, I appreciate the fact you tried

A post was split to a new topic: Problem installing virtualbox host modules

By some miracle I managed to boot into kernal54 but I'm having another issue

sudo mhwd-kernel -r linux52
Error: Kernel not installed.

Currently running: 5.4.39-1-MANJARO (linux54)
The following kernels are installed in your system:

  • linux316
  • linux54
  • linux56

I can't seem to remove the linux52 arch kernal, is it safe to continue?

You have royally screwed your Manjaro installation - mhwd cannot remove other kernels than Manjaro - to remove the out-of-band kernel you will to revert the command used to install it. Arch only have two kernel packages so since it is 5.2 which is not LTS the command have to be

sudo pacman -Rns linux

Forum kindly sponsored by