Page 1 of 2

VBox not running

Posted: 1. Jan 2017, 17:11
by zAchAry

Code: Select all

$ virtualbox 
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.4.19-smp) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

Code: Select all

# /sbin/vboxconfig
vboxdrv.sh: Building VirtualBox kernel modules.
Unable to determine the software packaging system in use.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
Unable to determine the software packaging system in use.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
usage : service start|stop|restart|list [service_name]
usage : service start|stop|restart|list [service_name]
usage : service start|stop|restart|list [service_name]
usage : service start|stop|restart|list [service_name]

Re: VBox not running

Posted: 1. Jan 2017, 17:26
by mimosa
You need the kernel-source.

viewtopic.php?f=16&t=6893&p=39755

Re: VBox not running

Posted: 1. Jan 2017, 17:47
by zAchAry

Code: Select all

# /sbin/vboxconfig
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
Unable to determine the software packaging system in use.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
usage : service start|stop|restart|list [service_name]
usage : service start|stop|restart|list [service_name]
usage : service start|stop|restart|list [service_name]
usage : service start|stop|restart|list [service_name]

Re: VBox not running

Posted: 1. Jan 2017, 19:50
by mimosa
Please have a look at the topic I linked to and try what it suggests.

Re: VBox not running

Posted: 1. Jan 2017, 21:59
by laprjns
zAchAry wrote:The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.4.19-smp) or it failed to
Is there any reason why you still hare using kernel version 4.4.19. The current version in the repository is 4.4.38. I suggest that you update your kernel along with the kernel headers, kernel-firmware and kernel- module. Install / update kernel-source, and then do lilo -v and reboot into new kernel. Once rebooted, do the following as root:

Code: Select all

# /etc/init.d/vboxdrv setup

I would avoid using the vboxconfig script as it assumes that you are using a Linux distribution which VirtualBox supports.

Re: VBox not running

Posted: 2. Jan 2017, 06:22
by zAchAry
GSlapt excludes packages: glibc-zoneinfo 2016j-noarch-1_slack14.2, kernel-firmware 20161211git-noarch-1, kernel-headers 4.4.38_smp-x86-1, kernel-huge-smp 4.4.38_smp-i686-1, kernel-modules-smp 4.4.38_smp-i686-1.

Last time I upgraded these packages using slapt-get, I had to reinstall Salix 14.2. I couldn't even access the HDD.

Code: Select all

# /etc/init.d/vboxdrv setup
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

Re: VBox not running

Posted: 2. Jan 2017, 10:19
by djemos
You can build the kernel source package for any kernel version.
Download kernel 4.4.19 and put it in a folder kernel-source
Download everything from here and save them in the same folder kernel-source
Then either run fakeroot slkbuild -X or sudo sh kernel-source.SlackBuild
You will have the kernel source package created. Install it and run sudo sh /etc/init.d/vboxdrv setup to create the vbox modules for the kernel.

Re: VBox not running

Posted: 2. Jan 2017, 13:45
by laprjns
zAchAry wrote:GSlapt excludes packages: glibc-zoneinfo 2016j-noarch-1_slack14.2, kernel-firmware 20161211git-noarch-1, kernel-headers 4.4.38_smp-x86-1, kernel-huge-smp 4.4.38_smp-i686-1, kernel-modules-smp 4.4.38_smp-i686-1.
Only update the various kernel packages. Don't update the glibc-zoneinfo package.

Code: Select all

$ sudo slapt-get -i kernel-firmware kernel-headers kernel-huge-smp kernel-modules-smp  kernel-source
Then after they are updated do;

Code: Select all

$ sudo lilo -v 

Reboot into new kernel and try again to build the VirtualBox kernel modules by running the /etc/unit.d/vboxdrv script.

Re: VBox not running

Posted: 2. Jan 2017, 22:21
by mimosa
Shouldn't kernel-headers be left as it is? That's how I did my own recent upgrade, and all seems to be well.

Zachary, you can just install vbox's precompiled binary.

Re: VBox not running

Posted: 3. Jan 2017, 07:04
by zAchAry
mimosa wrote:Zachary, you can just install vbox's precompiled binary.
I downloaded http://download.virtualbox.org/virtualb ... ux_x86.run from https://www.virtualbox.org/wiki/Linux_Downloads

Is this what you refer to?