LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   "Please install the Linux kernel "header" files" error on Manjaro 5.3.11-1. (https://www.linuxquestions.org/questions/linux-kernel-70/please-install-the-linux-kernel-header-files-error-on-manjaro-5-3-11-1-a-4175664423/)

GegiPi 11-17-2019 07:41 AM

"Please install the Linux kernel "header" files" error on Manjaro 5.3.11-1.
 
I tried starting a Virtual Machine in Virtualbox, but it came with a error:
Code:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

And then another error pooped up:
Code:

Failed to open a session for the virtual machine Windows 8.1.

The virtual machine 'Windows 8.1' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {5047460a-265d-4538-b23e-ddba5fb84976}

So then i tried running /sbin/vboxconfig in root but it said:
Code:

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Now i became very confused. What do i do?

Firerat 11-17-2019 05:41 PM

install the kernel headers so the kernel modules required for virtualbox can be compiled

ArfaSmif 11-17-2019 07:17 PM

I think the linux headers are called "linux53-headers" on Manjaro. Use your package manager to install "linux53-headers' and then recompile the virtualbox files via "/sbin/vboxconfig".

Firerat 11-17-2019 07:20 PM

to be honest, I'm surprised the package manager didn't "pull in" the headers package when virtualBox was installed

frankbell 11-17-2019 07:43 PM

Quote:

to be honest, I'm surprised the package manager didn't "pull in" the headers package when virtualBox was installed
In my admittedly limited experience (in terms of the number of distros I've used VirtualBox on), I have not yet encountered a package manager that did that.

Firerat 11-17-2019 08:17 PM

Quote:

Originally Posted by frankbell (Post 6059073)
In my admittedly limited experience (in terms of the number of distros I've used VirtualBox on), I have not yet encountered a package manager that did that.


well, apt on Debian

virtualbox depends on vitualbox-dkms
which depends on dkms
which has linux-headers as recommends

by default Debian is configured to install "Recommends"


Edit:
Manjaro is based on Arch ?

https://wiki.archlinux.org/index.php...ch_Linux_hosts

Edit2:
Manjaro specific
https://wiki.manjaro.org/index.php?title=VirtualBox


All times are GMT -5. The time now is 06:19 PM.