LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2020, 04:02 AM   #1
Francexi
Member
 
Registered: Apr 2012
Location: Italy
Distribution: Slackware
Posts: 134

Rep: Reputation: Disabled
Cannot run a VirtualBox VM on Slackware


Good morning/evening
I'm trying to run a Virtual Machine on Slackware. When I try to start it, VirtualBox reports: "Kernel driver not accessible". I checked /dev/vboxdrv

Code:
    crw-rw---- 1 root vboxusers 10, 59 apr 16 11:05 /dev/vboxdrv

and obviously my user is member of vboxusers group (I checked using "groups").

Any idea of how to resolve?
 
Old 04-18-2020, 01:30 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
and obviously my user is member of vboxusers group (I checked using "groups").
Hi. Try this
Code:
 [sudo] usermod -aG vboxusers your_user
 
Old 04-18-2020, 01:33 PM   #3
Francexi
Member
 
Registered: Apr 2012
Location: Italy
Distribution: Slackware
Posts: 134

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Hi. Try this
Code:
 [sudo] usermod -aG vboxusers your_user
As said, I already added myself to that grooup. I tried you command anyway, and still changed nothing
 
Old 04-18-2020, 08:07 PM   #4
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,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What version of Slackware and what version of VirtualBox?

I don't know whether it applies, but I ran VB on Slackware successfully for years, until I tried to upgrade to VB v. 6. (I used the "other distros" *.tar.gz from the VB website.)
 
Old 04-18-2020, 09:00 PM   #5
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Francexi View Post
As said, I already added myself to that group. I tried you command anyway, and still changed nothing
As Frank Bell already said: what version of Slackware (and if -current: which version of the kernel) and what version of VB.
VB is very kernel dependant and the newest kernel versions often aren't supported (yet).
And anyway, you will have to rebuild the kernel modules each and every kernel update (which in -current is about twice a week!).
14.2 had a kernel update (to 4.4.217) less then a month ago too, so even there you will have to rebuilt your vboxdrv etc modules.
 
Old 04-18-2020, 09:15 PM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
VirtualBox-6.1.6-137129-linux_amd64.run is working fine on this box with -current and the 5.4.33 kernel.
 
Old 04-19-2020, 02:39 AM   #7
Francexi
Member
 
Registered: Apr 2012
Location: Italy
Distribution: Slackware
Posts: 134

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
What version of Slackware and what version of VirtualBox?

I don't know whether it applies, but I ran VB on Slackware successfully for years, until I tried to upgrade to VB v. 6. (I used the "other distros" *.tar.gz from the VB website.)
I use Slackware-current, kernel 5.5.13 self built. VirtualBox is 6.1.6 and I already rebuilt the kernel modules
 
Old 04-20-2020, 01:52 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Just gone through this. You need the kernel source with the kernel config compiled in it for the modules to compile. I presume you have a prebuilt kernel? You need to copy /boot/config-for_your_kernel to the kernel source as .config AFTER running 'make mrproper' there first. Then run 'make all' and reboot. The kernel modules should be made on the reboot.

Last edited by business_kid; 04-20-2020 at 01:54 PM.
 
Old 04-20-2020, 02:01 PM   #9
Francexi
Member
 
Registered: Apr 2012
Location: Italy
Distribution: Slackware
Posts: 134

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Just gone through this. You need the kernel source with the kernel config compiled in it for the modules to compile. I presume you have a prebuilt kernel? You need to copy /boot/config-for_your_kernel to the kernel source as .config AFTER running 'make mrproper' there first. Then run 'make all' and reboot. The kernel modules should be made on the reboot.
Kernel modules are already built and loaded

Code:
# lsmod | grep vbox
vboxnetadp             28672  0
vboxnetflt             32768  0
vboxdrv               520192  2 vboxnetadp,vboxnetflt
 
Old 04-25-2020, 04:20 AM   #10
Francexi
Member
 
Registered: Apr 2012
Location: Italy
Distribution: Slackware
Posts: 134

Original Poster
Rep: Reputation: Disabled
I add. Trying to tail /dev/vboxdrv gives me an "operation not permitted" error, while doing it as root gives me "argument invalid"

I post also the output of groups

Code:
$ groups francesco
francesco : francesco lp audio video cdrom apache plugdev power scanner users bumblebee vboxusers
 
  


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
[SOLVED] New install: Virtualbox run fails: Critical Error: Virtualbox COM object maschelsea Slackware 1 03-29-2020 05:42 PM
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
what if I tried to run Virtualbox within Virtualbox? newbiesforever Linux - Software 6 10-09-2018 08:14 PM
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-07-2012 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:43 AM.

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