Linux - Virtualization and CloudThis 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
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.
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
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.
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.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,099
Rep:
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.