LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-11-2018, 06:40 PM   #1
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Rep: Reputation: 6
VirtualBox not starting after recent kernel upgrade


Hello All,

After the recent kernel upgrade VirtualBox will no longer start, I get the following message in a friendly graphical dialog box:

Code:
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

'/sbin/rcvboxdrv 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.

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

I have system/virtualbox-kernel installed, but not system/virtualbox-addons, system/virtualbox-kernel-addons or system/virtualbox-extension-pack.

Can someone tell me what the best apporach is please? Should I use DKMS, re-install VirtualBox? Something else?

Many thanks,
Bill
 
Old 09-11-2018, 06:49 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,411
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
The VirtualBox kernel must be compatible with the host kernel.

Did you follow the instructions in the error message and run, as root, /sbin/rcvboxdrv setup?

If that doesn't work, you can try /etc/rc.d/rc.vboxdrv setup?

What version of VirtualBox are you running? I'm running Version 5.2.18 r124319 (Qt5.6.1) and it updates its kernel automatically when a new Slackware kernel is installed.
 
Old 09-11-2018, 06:49 PM   #3
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,192

Rep: Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383Reputation: 7383
After each kernel upgrade I always uninstall VirtualBox using, sh /opt/VirtualBox/uninstall.sh,
reboot with the new kernel and then re-install VirtualBox.


Edit in. Thanks to kjhambrick for catching the typo. It is now correct, i.e, sh /opt/VirtualBox/uninstall.sh

As I usually run the command from within the /opt/VirtualBox directory, I slipped a cog somewhere along the line.

Last edited by cwizardone; 09-12-2018 at 09:45 AM.
 
1 members found this post helpful.
Old 09-11-2018, 07:09 PM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian
Posts: 7,355

Rep: Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754Reputation: 3754
Quote:
Originally Posted by cwizardone View Post
After each kernel upgrade I always uninstall VirtualBox using /opt/VirtualBox/sh uninstall.sh,
reboot with the new kernel and then re-install VirtualBox.
I'm lazy I guess.
I just re-install Virtualbox: ./VirtualBox-5.2.18-124319-Linux_amd64.run

During the install process the installer detects the installed version of Virtualbox and removes it, then it installs Virtualbox.
 
Old 09-11-2018, 07:50 PM   #5
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
It's only necessary to rebuild virtualbox-kernel (assuming you are using the SBo VirtualBox) after a kernel upgrade.
 
Old 09-11-2018, 08:28 PM   #6
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Original Poster
Rep: Reputation: 6
Thanks for all the quick answers. I am having trouble with all of them unfortunately...

frankbell:

/sbin/rcvboxdrv does not exist on Slackware and the command /etc/rc.d/rc.vboxdrv setup gives the message:

Quote:
Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead.
I am running the latest VirtualBox from Slackbuilds which is virtualbox-5.0.40

cwizardone:

root@darkstar:~# /opt/virtualbox/sh uninstall.sh
-su: /opt/virtualbox/sh: No such file or directory


So, using the brute-force method, I removed the packages

virtualbox-5.0.40-x86_64-1_SBo
virtualbox-kernel-5.0.40_4.4.144-x86_64-1_SBo

re-started the computer,
synced the database (I am using sbopkg),
re-installed the two packages,
re-started the computer,
and ..

VirtualBox still does not start - the message is the same as in my first post.

Very frustrating!

Cheers, Bill
 
Old 09-11-2018, 08:53 PM   #7
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Since you have the SBo version installed, did you run:

Code:
/etc/rc.d/rc.vboxdrv start
after rebooting?
 
Old 09-11-2018, 09:03 PM   #8
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Original Poster
Rep: Reputation: 6
No I didn't! And that works, thanks montagdude!

Cheers, Bill
 
Old 09-11-2018, 09:06 PM   #9
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by canadensis View Post
No I didn't! And that works, thanks montagdude!

Cheers, Bill
Good to hear! You may want to put this in your /etc/rc.d/rc.local:

Code:
# Start vboxdrv
if [ -x /etc/rc.d/rc.vboxdrv ]; then
  /etc/rc.d/rc.vboxdrv start
fi
 
Old 09-11-2018, 09:24 PM   #10
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Original Poster
Rep: Reputation: 6
Thanks, I will do that.
Bill
 
Old 09-11-2018, 10:40 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,411
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
Quote:
/sbin/rcvboxdrv does not exist on Slackware
Code:
$ ls -l /sbin/rcvboxdrv
lrwxrwxrwx 1 root root 26 Aug 16 20:10 /sbin/rcvboxdrv -> /opt/VirtualBox/vboxdrv.sh
$ cat /etc/*release*
NAME=Slackware
VERSION="14.2"
ID=slackware
VERSION_ID=14.2
PRETTY_NAME="Slackware 14.2"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:14.2"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
It might have been necessary to run the command with a dot-slash, perhaps even with an sh ./.

I always used the /etc/rc.d/rc.vboxdrv setup command myself.

Last edited by frankbell; 09-11-2018 at 10:51 PM. Reason: More info
 
Old 09-12-2018, 10:36 AM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Quote:
Originally Posted by frankbell View Post
Code:
$ ls -l /sbin/rcvboxdrv
lrwxrwxrwx 1 root root 26 Aug 16 20:10 /sbin/rcvboxdrv -> /opt/VirtualBox/vboxdrv.sh
$ cat /etc/*release*
NAME=Slackware
VERSION="14.2"
ID=slackware
VERSION_ID=14.2
PRETTY_NAME="Slackware 14.2"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:14.2"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
It might have been necessary to run the command with a dot-slash, perhaps even with an sh ./.

I always used the /etc/rc.d/rc.vboxdrv setup command myself.
This does not work when using the package from SBo. vboxdrv.sh is modified to tell users to run the virtualbox-kernel.SlackBuild file to re/build the module.
 
Old 09-12-2018, 01:03 PM   #13
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 467

Rep: Reputation: 133Reputation: 133
I've personally found it easier just to use the official installer from Virtualbox (Not everything needs to be done w/ slackpkg)

I've never had any problem with Virtualbox after kernel updates, however running /sbin/rcvboxdrv setup is needed
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recent update breaks video in virtualbox Aeterna Slackware 32 08-24-2018 08:35 PM
**Wireless** Not starting on boot after kernel upgrade Zuljin Slackware 1 10-06-2013 05:58 AM
[SOLVED] VirtualBox - kernel panic after kernel upgrade Poprocks Slackware 10 07-31-2013 09:42 PM
VirtualBox - Recent Improvements Erik_FL Linux - Software 10 09-24-2009 11:05 AM
Kernel upgrade lost virtualbox guest system BACTRATE Ubuntu 4 07-28-2009 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration