VBox not running

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

VBox not running

Post 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]
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: VBox not running

Post by mimosa »

You need the kernel-source.

viewtopic.php?f=16&t=6893&p=39755
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: VBox not running

Post 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]
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: VBox not running

Post by mimosa »

Please have a look at the topic I linked to and try what it suggests.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: VBox not running

Post 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.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: VBox not running

Post 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.
Image
Help to make Slackware easier Donate to Salix
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: VBox not running

Post 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.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: VBox not running

Post 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.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: VBox not running

Post 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.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: VBox not running

Post 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?
Image
Help to make Slackware easier Donate to Salix
Post Reply