I'm new to this form, however, I have been using VBox for while. Yet after I upgraded my system, It stopped working. So I tried to upgrade virtual box to the latest version with no success.
Code: Select all
dnf install VirtualBox-5.2-5.2.6_120293_fedora26-1.x86_64.rpm
Last metadata expiration check: 1:05:38 ago on Mon 29 Jan 2018 12:36:29 PM +03.
Dependencies resolved.
=====================================================================================
Package Arch Version Repository Size
=====================================================================================
Installing:
VirtualBox-5.2 x86_64 5.2.6_120293_fedora26-1 @commandline 69 M
Transaction Summary
=====================================================================================
Install 1 Package
Total size: 69 M
Installed size: 151 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: VirtualBox-5.2-5.2.6_120293_fedora26-1.x86_64 1/1
Installing : VirtualBox-5.2-5.2.6_120293_fedora26-1.x86_64 1/1
Running scriptlet: VirtualBox-5.2-5.2.6_120293_fedora26-1.x86_64 1/1
Creating group 'vboxusers'. VM users must be member of that group!
vboxdrv.sh: failed: Look at /var/log/vbox-install.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.
Verifying : VirtualBox-5.2-5.2.6_120293_fedora26-1.x86_64 1/1
Installed:
VirtualBox-5.2.x86_64 5.2.6_120293_fedora26-1
Code: Select all
cat /var/log/vbox-install.log
VirtualBox 5.2.7 r120528 installer, built 2018-01-26T13:45:27Z.
Testing system setup...
/tmp/vbox.0/Makefile.include.header:99: *** The variable KERN_DIR must be a kernel build folder and end with /build without a trailing slash, or KERN_VER must be set. Stop.Code: Select all
/usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
=====================================================================================================
modprobe -v vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.14.14-300.fc27.x86_64
=====================================================================================================
rpm -qa kernel|sort -V
kernel-4.14.8-300.fc27.x86_64
kernel-4.14.13-300.fc27.x86_64
kernel-4.14.14-300.fc27.x86_64
=====================================================================================================
uname -r
4.14.14-300.fc27.x86_64
====================================================================================================
echo $KERN_DIR
/usr/src/kernels/4.14.14-300.fc27.x86_64
====================================================================================================
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 27 (Twenty Seven)
Release: 27
Codename: TwentySeven