SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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#
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).
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.