LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-19-2020, 05:35 PM   #1
100000EE
LQ Newbie
 
Registered: Jan 2020
Posts: 11

Rep: Reputation: Disabled
VirtualBox Won't Launch On Slackware 15(current)


Hello there, so I installed VirtualBox and the kernel driver for it.

When I launch VirtualBox, it saids this:


According to the terminal:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.4.12) 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.


I tried the sudo /sbin/rcvboxdrv setup command.
and I got this error saying.
sudo: /sbin/rcvboxdrv: command not found


I even tried doing the sudo modprobe vboxdrv command, and I got this error message saying.
sudo: modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.4.12

Is there anyway to solve this?

Last edited by 100000EE; 01-20-2020 at 11:09 AM.
 
Old 01-21-2020, 03:25 AM   #2
koloth
Member
 
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 150

Rep: Reputation: 29
Since it is slackware, you should run

Quote:
/sbin/rcvboxdrv setup
as root user.
 
Old 01-21-2020, 05:48 PM   #3
100000EE
LQ Newbie
 
Registered: Jan 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
I tried running the /sbin/rcvboxdrv setup command as root.

and I got an error message saying.
Quote:
-su: /sbin/rcvboxdrv: No such file or directory
 
Old 01-21-2020, 05:53 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
How did you install it?

Refer to the SBo page, did you setup the group and other such steps, or it was a package?

http://slackbuilds.org/repository/14...rch=VirtualBox

Added:

If you didn't compile the VirtualBox kernel yourself, it is likely built against the wrong system kernel (I.e. 4.19.x vs 5.4.12)

Last edited by phantom_cyph; 01-21-2020 at 06:15 PM.
 
Old 01-21-2020, 06:38 PM   #5
100000EE
LQ Newbie
 
Registered: Jan 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
I installed the Virtualbox packages from pkgs.org.

List of the VirtualBox packages I installed:
Quote:
virtualbox-5.0.40-x86_64-2_slonly
virtualbox-kernel-5.0.40_4.9.45-x86_64-2_slonly
virtualbox-kernel-addons-5.0.40_4.9.45-x86_64-2_slonly
So I basically didn't compile the VirtualBox kernel.
 
Old 01-21-2020, 08:22 PM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,099

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
So, you are using Slackware-current with the 5.4.12 kernel, yet you are trying to install virtualbox-5.0.4, is that correct?

VirtualBox had troubles building with the 5.4.x kernel until version 6.1... IIRC.
The current version of VirtualBox is 6.1.2.

You can find it at, https://www.virtualbox.org/wiki/Linux_Downloads

For Slackware right click on, ""all distributions" and then "save link as."

Once you have it on your hard drive, go to it and as "root" and run, sh ./virtualboxwhateverversion.run

The extension pack can be found here, https://www.virtualbox.org/wiki/Downloads

Last edited by cwizardone; 01-21-2020 at 08:26 PM.
 
Old 01-21-2020, 09:43 PM   #7
100000EE
LQ Newbie
 
Registered: Jan 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
So, you are using Slackware-current with the 5.4.12 kernel, yet you are trying to install virtualbox-5.0.4, is that correct?
yes

So I uninstalled all the outdated Virtualbox packages and installed the latest version of VirtualBox (and the extension pack), the VirtualBox GUI can now launch, but here's the problem, the kernel driver is not installed, so I still can't run virtual machines.



I also still this error message:
Quote:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.4.12) or it failed to
load. Please recompile the kernel module and install it by

sudo /sbin/vboxconfig

You will not be able to start VMs until this problem is fixed.
I tried running the sudo /sbin/vboxconfig command.
and I got this message saying.
Quote:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
 
Old 01-21-2020, 11:27 PM   #8
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Guessing you left out the kernel-source and/or kernel-header package. You'll need it to build a(ny) module, nvidia proprietary driver being another example.

Update Slackware to get the latest kernel, install source, recompile/install VBox.

Last edited by phantom_cyph; 01-21-2020 at 11:29 PM.
 
1 members found this post helpful.
Old 01-22-2020, 07:20 AM   #9
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,099

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Quote:
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
As Phanton cyph has said, you need, at least, the headers and, most likely, the kernel source, to build the virtualbox module.
A FULL Slackware installation is highly recommmend for everyone, unless, of course, the user is really an expert.
 
Old 01-22-2020, 04:48 PM   #10
100000EE
LQ Newbie
 
Registered: Jan 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
List of the kernel packages I installed
Quote:
kernel-firmware-20200114_9c340bd-noarch-1
kernel-headers-5.4.13-x86-1
kernel-source-5.4.13-noarch-1
Yet I'm running the Linux kernel version 5.4.12.

So I think I'm missing something to fully update to the Linux kernel version 5.4.13.
 
Old 01-22-2020, 08:06 PM   #11
100000EE
LQ Newbie
 
Registered: Jan 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
UPDATE: I updated the Linux kernel and VirtualBox is running fine now.
 
Old 02-07-2020, 04:34 AM   #12
Robertbut
LQ Newbie
 
Registered: Dec 2019
Location: Jordan
Distribution: RobertAvalkQZ
Posts: 1

Rep: Reputation: Disabled
VirtualBox Wont Launch On Slackware 15current

Thanks for the update. So, if Im following correctly, you now have the latest version of d3d9.dll in both folders. You should be able to remove the one in the P3D folder.

Randy
 
Old 03-14-2022, 04:56 AM   #13
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 631

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
Quote:
Originally Posted by 100000EE View Post
yes

So I uninstalled all the outdated Virtualbox packages and installed the latest version of VirtualBox (and the extension pack), the VirtualBox GUI can now launch, but here's the problem, the kernel driver is not installed, so I still can't run virtual machines.



I also still this error message:


I tried running the sudo /sbin/vboxconfig command.
and I got this message saying.


I had the same problem last 2 days. I installed VB from Sbopkg
Code:
root@rtz:~# uname -a
Linux rtz 5.15.27 #1 SMP PREEMPT Tue Mar 8 18:18:11 CST 2022 x86_64 AMD Athlon Silver 3050U with Radeon Graphics AuthenticAMD GNU/Linux
root@rtz:~# cat /etc/*version*
Slackware 15.0
root@rtz:~# ls /etc/rc.d/  |grep vbox
rc.vboxautostart-service*
rc.vboxballoonctrl-service*
rc.vboxdrv*
root@rtz:~# /sbin/vboxconfig
-su: /sbin/vboxconfig: No such file or directory
root@rtz:~#
Code:
root@rtz:~# virtualbox &
[1] 12952
root@rtz:~# WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.15.27) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
Qt WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Code:
r-tz@rtz:~$ virtualbox &
[1] 13877
r-tz@rtz:~$ WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.15.27) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
Code:
bash-5.1# /sbin/rcvboxdrv setup 
bash: /sbin/rcvboxdrv: No such file or directory

Code:
r-tz@rtz:~$ groups
users lp wheel floppy audio video cdrom input plugdev power netdev scanner vboxusers
Code:
# modprobe vboxdrv
After modprobe^^ Virtualbox running without problem.
The question is:
Do I have to add "vboxdrv" at the end of /etc/rc.d/rc.modules to have it on startup? Also how can I add it, just write "vboxdrv" at the end of file? Or do I have to do something else?
thank you.

Last edited by rizitis; 03-15-2022 at 08:08 AM. Reason: correct code
 
1 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[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
[SOLVED] KDE launch display No Signal (after wine Steam Deus Ex launch crash) KGHN Slackware 5 01-21-2015 10:38 PM
[SOLVED] Zorin dock launch (ie quick launch) instalation and use provobis Linux - Newbie 4 01-16-2015 07:25 PM
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-07-2012 11:28 PM
Unable to launch application from workstation but able to launch from vnc chaitanya1982 Linux - Desktop 2 04-30-2010 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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