You are not logged in.

#1 2017-05-14 17:17:53

simplisticways
Member
Registered: 2015-12-03
Posts: 49

How to get virtualbox to work?

I've never gotten Virtualbox to work in my arch box

Installed virtualbox-host-modules-arch and virtualbox  linux-headers linux-lts-headers

From terminal

command:virtualbox
OUTPUT:WARNING: The vboxdrv kernel module is not loaded. Either
         available for the current kernel (4.9.27-1-lts)
         load. Please recompile the kernel module and in

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this pr
Qt WARNING: libpng warning: iCCP: known incorrect sRGB p


command: modprobe vboxdrv
output: modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.9.27-1-lts


and in my virtualbox I see the error.

Virtualbox - Error
Failed to open a session for the virtual machine Arch.

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

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}


I read and didnt get any info how to make it work. Nor did googling around helped..
https://wiki.archlinux.org/index.php/VirtualBox

Any tips?

Last edited by simplisticways (2017-05-14 17:21:28)

Offline

#2 2017-05-14 17:23:26

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: How to get virtualbox to work?

virtualbox-host-modules-arch 5.1.22-2 description "Virtualbox host kernel modules for Arch Kernel" the arch kernel meaning the linux package not the linux-lts package.
Either use the linux kernel or switch to virtualbox-host-dkms or build a custom package for linux-lts.  Please use code tags for commands plus their output.
Edit:
Also from the wiki page you linked to

Install the virtualbox package. You will need to choose a package to provide host modules:
    for linux kernel choose virtualbox-host-modules-arch
    for other kernels choose virtualbox-host-dkms

Last edited by loqs (2017-05-14 17:28:51)

Offline

#3 2017-05-15 13:29:58

simplisticways
Member
Registered: 2015-12-03
Posts: 49

Re: How to get virtualbox to work?

But I already have the virtualbox-host-modules-arch installed?

Should I specify it in the configs or something?

Offline

#4 2017-05-15 13:34:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: How to get virtualbox to work?

Please read the wiki excert that was quoted.  For the kernel in the `linux` package, you can use the virtualbox-host-modules-arch, but you are not using the `linux` package kernel.  So the very next bullet-point: "for other kernels choose virtualbox-host-dkms".

And as loqs already further emphasized, switch to virtualbox-host-dkms.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-05-15 13:35:11

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to get virtualbox to work?

As loqs already pointed out, virtualbox-host-modules-arch is only for the standard kernel. As you are using the lts jernel you need virtualbox-host-dkms instead.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB