LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-12-2020, 06:25 AM   #1
mindgamelinux
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Rep: Reputation: Disabled
Virtualbox not working after update on Fedora


Hello, guys!

Sorry if I will interrupt anyone with a repeatedly asked question, but I was not able to find a solution on Fedora based Linux system, and I hope that I will find one here.

So basically, yesterday I did sudo yum -y update, and today I was receiving an error that my Kernel is not installed.

I received this error after I tried to open my VM:

"VirtualBox Error : Kernel Driver not installed(rc=-1908)"
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing.

'/sbin/vboxconfig'
as root

where: sublib0sInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

They recommend me to use this command: /sbin/vboxconfig to fix the problem, after I entered this command as root, I received an error:

vboxdrv.sh failed: Look at /var/log/vbox-setup.log to find out what went wrong.

I tried this method:

Get your version kernel:

$ uname -r

Then find the corresponding kmod-VirtualBox-* package:

$ yum search kmod-VirtualBox

and install it:

$ yum install kmod-VirtualBox-#### appropriate version from list in previous step

Finally, run:

$ /etc/sysconfig/modules/VirtualBox.modules

This is what I received:

[root@local ~]# uname -r
5.4.17-200.fc31.x86_64
[root@local ~]# yum search kmod-VirtualBox
Warning: failed loading '/etc/yum.repos.d/pidgin.repo', skipping.
Last metadata expiration check: 1:08:59 ago on Wed 12 Feb 2020 10:09:46 AM CET.
No matches found.
[root@local ~]# /etc/sysconfig/modules/VirtualBox.modules
-bash: /etc/sysconfig/modules/VirtualBox.modules: No such file or directory

I tried other method:

1. yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel

2. Then reboot and try: sudo /etc/init.d/vboxdrv setup

3. again. If that doesn't work, try: sudo modprobe vboxdrv

4. then try the setup command again.

This is what i GET. and that Pidgin repo is bugged somehow, tried to reach a method how to remove it, but I was not able to do it:

1.
[root@localhost ~]# yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Warning: failed loading '/etc/yum.repos.d/pidgin.repo', skipping.
Last metadata expiration check: 1:13:18 ago on Wed 12 Feb 2020 10:09:46 AM CET.
Package dkms-2.7.1-2.fc31.noarch is already installed.
Package binutils-2.32-31.fc31.x86_64 is already installed.
Package gcc-9.2.1-1.fc31.x86_64 is already installed.
Package make-1:4.2.1-15.fc31.x86_64 is already installed.
Package patch-2.7.6-11.fc31.x86_64 is already installed.
Package libgomp-9.2.1-1.fc31.x86_64 is already installed.
Package glibc-headers-2.30-10.fc31.x86_64 is already installed.
Package glibc-devel-2.30-10.fc31.x86_64 is already installed.
Package kernel-headers-5.4.7-200.fc31.x86_64 is already installed.
Package kernel-devel-5.3.8-300.fc31.x86_64 is already installed.
Package kernel-devel-5.4.17-200.fc31.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

2,3,4:

[root@local ~]# sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found
[root@localhost ~]# sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.4.17-200.fc31.x86_64
[root@localhost ~]# virtualbox update
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.4.17-200.fc31.x86_64) 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.

[root@local ~]# sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

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.

[root@local ~]# etc/init.d/vboxdrv setup
-bash: etc/init.d/vboxdrv: No such file or directory

Hope to find a solution from you, guys! Sorry for your time.... I find many solutions online, but most of them was for ubuntu, so I am a bit stuck here. Got an imporant files on my VM, so I can't just reinstall it...
 
Old 02-12-2020, 04:36 PM   #2
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
What was in the file /var/log/vbox-setup.log ?
 
Old 02-12-2020, 05:23 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I haven't attempted VBox on Fedora in ages, but that is just the kernel module not being rebuilt. Simply boot back to the prior kernel should get everything going.
Fixing the issue depends on how it was installed - these days a simple dnf update should resolve it, presuming the virtualbox repo is in place. The kmod/dkms should only be necessary if you got it from rpmfusion, as used to be the case.
 
  


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] 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
Issues activating virtualbox within my linux fedora 25 virtualbox on my windows device. QuantumChaos Linux - Virtualization and Cloud 5 02-21-2017 08:31 AM
Can't run VirtualBox after Fedora 12 system update tron_thomas Linux - Software 13 11-09-2010 03:42 PM
VirtualBox , after Fedora 12 update tor.ment0r Linux - Virtualization and Cloud 2 02-03-2010 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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