LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-29-2016, 11:35 AM   #1
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Virtualbox for Slackware Current 64


I have just finished compiling and installing virtualbox from sbopkg.

So I view the help

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

sudo /sbin/rcvboxdrv setup

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

bash-4.3# /sbin/rcvboxdrv setup
bash: /sbin/rcvboxdrv: No such file or directory
bash-4.3#

Hmm, what to do now?
 
Old 02-29-2016, 11:49 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
You also need to install virtualbox-kernel as stated in the README:
https://www.slackbuilds.org/reposito...em/virtualbox/

@All: please view the README before building a package using sbopkg, PLEASE.

PS but maybe you had virtulabox-kernel installed but didn't install a new module for the kernel new kernel (4.4.3), as the upgrade is recent.

Last edited by Didier Spaier; 02-29-2016 at 11:52 AM.
 
Old 02-29-2016, 12:11 PM   #3
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Original Poster
Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by Didier Spaier View Post
You also need to install virtualbox-kernel as stated in the README:
https://www.slackbuilds.org/reposito...em/virtualbox/

@All: please view the README before building a package using sbopkg, PLEASE.

PS but maybe you had virtulabox-kernel installed but didn't install a new module for the kernel new kernel (4.4.3), as the upgrade is recent.
I installed virtulabox-kernel and acpica first just like the readme says to do.
 
Old 02-29-2016, 12:19 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
The virtualbox-kernel package is what creates the kernel modules. Are you sure it completed properly? Did you happen to build it for a different kernel than what you're now running (which shows it as 4.4.3)? Anytime you switch kernels, you need to rebuild that package, so it can compile the correct module for the correct kernel.

If you are sure you have the correct modules built from the virtualbox-kernel package, it may be that you didn't start the rc.vboxdrv service. In the README.SLACKWARE, it states you need to add /etc/rc.d/rc.vboxdrv start to your rc.local (and an additional one in rc.local_shutdown to stop the service). You would either need to reboot for that to start or start it manually using:

Code:
/etc/rc.d/rc.vboxdrv start
Once you do that, you should be able to start virtualbox (assuming you've added your user to the correct group).
 
Old 02-29-2016, 12:20 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by Gordie View Post
I installed virtulabox-kernel and acpica first just like the readme says to do.
Yes, but which kernel where you running then? If that was 4.4.2 you need to rebuild and install a virtualbox-kernel package for 4.4.3.
 
Old 02-29-2016, 12:52 PM   #6
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Original Poster
Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
OK. Just recompiled and re-installed virtualbox-kernel from sbopkg. Rebooted. As root ran /etc/rc.d/rc.vboxdrv start and now all is OK
 
Old 02-29-2016, 01:06 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Gordie View Post
OK. Just recompiled and re-installed virtualbox-kernel from sbopkg. Rebooted. As root ran /etc/rc.d/rc.vboxdrv start and now all is OK
If you want to prevent needing to run /etc/rc.d/rc.vboxdrv start manually, the README.SLACKWARE states to put the following entry in your rc.local

Code:
	# Start vboxdrv
	if [ -x /etc/rc.d/rc.vboxdrv ]; then
	  /etc/rc.d/rc.vboxdrv start
	fi
And another entry in /etc/rc.d/rc.local_shutdown (you'll need to create it if you haven't before as it doesn't come with a stock Slackware install, even though support for it exists) to stop it when you shut down the computer.

Code:
	# Stop vboxdrv
	if [ -x /etc/rc.d/rc.vboxdrv ]; then
	  /etc/rc.d/rc.vboxdrv stop
	fi
 
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
[ANN] VirtualBox 5.0.14 packages for Slackware 14.1 and -current kikinovak Slackware 23 02-23-2016 08:54 AM
[SOLVED] VirtualBox 4 Slackware Current (x86) (No Kernel Modules) Gavin Harper Slackware 13 01-06-2011 09:56 AM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
Can't Compile VirtualBox 1.6.6 In Slackware Current Woodsman Slackware 8 12-18-2008 02:36 PM

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

All times are GMT -5. The time now is 04:44 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