Page 1 of 3

Virtualbox not working after kernel upgrade [SOLVED]

Posted: 19. Feb 2016, 12:46
by rsal
I upgraded the kernel from this page: http://people.salixos.org/gapan/kernel-4.1.4/ . I installed following using intallpkg command:

Code: Select all

kernel-4.1.4/kernel-huge-smp-4.1.4_smp-i686-1gv.txz
kernel-modules-smp-4.1.4_smp-i686-1gv.txz
kernel-firmware-20150804git-noarch-1gv.txz 
The system is working fine but virtualbox does not start and there is a message that:

Code: Select all

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing 
      '/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
Similar warning comes from trying to start virtualbox from command line:

Code: Select all

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

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
I tried running following but it does not help:

Code: Select all

root[etc]# ./rc.d/rc.vboxdrv setup 
Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead.

root[etc]# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found.
I already had kernel-headers installed and I have now installed dkms. I also have virtualbox-kernel installed but not virtualbox-kernel-addons. Should I install virtualbox-kernel-addons?

How can I solve this? Thanks for your help.

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 12:55
by djemos
download kernel-source-4.1.4

Code: Select all

sudo tar xvf linux-4.1.4.tar.xz -C /usr/src
sudo ln -sf /usr/src/linux-4.1.4 /usr/src/linux
sudo /etc/init.d/vboxdrv setup

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 13:25
by rsal
I could do first 2 commands but last command is not working:

Code: Select all

# ls -l /usr/src/linux
lrwxrwxrwx 1 root root 20 Feb 19 18:56 /usr/src/linux -> /usr/src/linux-4.1.4

# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found.

# /etc/init.d/vboxdrv setup
bash: /etc/init.d/vboxdrv: No such file or directory

# /etc/rc.d/rc.vboxdrv setup 
Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead.
It is producing same output as before.

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 14:45
by djemos
sudo /etc/init.d/vboxdrv setup is working for virtualbox download and installed from here

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 15:06
by rsal
Are there any steps to be performed for installation of virtualbox or do I just need to download and run this file: http://download.virtualbox.org/virtualb ... _amd64.run . Should I run it as root or as regular user (I think I have to be root to run this).

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 15:21
by djemos
First uninstall the previous version and install the new one. (You have to create a vboxusers group, e.g. "groupadd -g 215 vboxusers"
and make your user a member of that group.)

Code: Select all

sudo sh VirtualBox-5.0.14-105127-Linux_amd64.run 
If you also want to install the Oracle_VM_VirtualBox_Extension_Pack-5.0.14-105127.vbox-extpack then run this

Code: Select all

sudo vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.0.14-105127.vbox-extpack

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 15:27
by rsal
What are the advantages of installing extension-pack?

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 15:43
by djemos
Support for USB 2.0 and USB 3.0 devices, VirtualBox RDP and PXE boot for Intel cards.

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 16:19
by rsal
Do I need to keep kernel sources?

Re: Virtualbox not working after kernel upgrade

Posted: 19. Feb 2016, 18:07
by djemos
After build the vbox module, no. But if you want to compile or rebuild other kernel modules yes.