LinuxQuestions.org
Help answer threads with 0 replies.
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, 06: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 12:09 PM.
 
Old 01-21-2020, 04:25 AM   #2
koloth
Member
 
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 146

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

Quote:
/sbin/rcvboxdrv setup
as root user.
 
Old 01-21-2020, 06: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, 06:53 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,443
Blog Entries: 1

Rep: Reputation: 105Reputation: 105
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 07:15 PM.
 
Old 01-21-2020, 07: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, 09:22 PM   #6
cwizardone
LQ Guru
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 5,288
Blog Entries: 1

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
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 09:26 PM.
 
Old 01-21-2020, 10: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-22-2020, 12:27 AM   #8
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,443
Blog Entries: 1

Rep: Reputation: 105Reputation: 105
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-22-2020 at 12:29 AM.
 
1 members found this post helpful.
Old 01-22-2020, 08:20 AM   #9
cwizardone
LQ Guru
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 5,288
Blog Entries: 1

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
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, 05: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, 09: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, 05: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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

All times are GMT -5. The time now is 03:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration