Opened 6 years ago
Closed 6 years ago
#17991 closed defect (duplicate)
VB not working with latest Fedora kernel
| Reported by: | stefano.eDR | Owned by: | |
|---|---|---|---|
| Component: | other | Version: | VirtualBox 5.2.18 |
| Keywords: | Cc: | ||
| Guest type: | Linux | Host type: | Linux |
Description
I was trying to run a VM after a reboot, but none of the VMs will start.
The reported error when starting the VM is the following:
The provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable on this system. The reason is shown below: VirtualBox is complaining that the kernel module is not loaded. Please run `VBoxManage --version` or open the VirtualBox GUI to see the error message which should contain instructions on how to fix this error.
Running VBoxManage --version in the console I get:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.18.5-200.fc28.x86_64) or it failed to
load. Please try load the kernel module by executing as root
dnf install akmod-VirtualBox kernel-devel-4.18.5-200.fc28.x86_64
akmods --kernels 4.18.5-200.fc28.x86_64 && systemctl restart systemd-modules-load.service
You will not be able to start VMs until this problem is fixed.
5.2.18_RPMFusionr123745
Now when trying to rebuild with akmods --kernels 4.18.5-200.fc28.x86_64 it fails.
The log is the following:
2018/09/14 11:25:43 akmods: Building RPM using the command '/sbin/akmodsbuild --target x86_64 --kernels 4.18.5-200.fc28.x86_64 /usr/src/akmods/VirtualBox-kmod.latest'
from /tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf/vfsmod.h:11,
from /tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf/utils.c:13:
./include/linux/time32.h:125:57: note: expected ‘const struct timespec *’ but argument is of type ‘struct timespec64 *’
static inline s64 timespec_to_ns(const struct timespec *ts)
~~~~~~~~~~~~~~~~~~~~~~~^~
/tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf/utils.c:248:25: error: passing argument 1 of ‘timespec_to_ns’ from incompatible pointer type [-Werror=incompatible-pointer-types]
timespec_to_ns(&iattr->ia_mtime);
^~~~~~~~~~~~~~~~
In file included from ./include/linux/time.h:73,
from ./include/linux/stat.h:19,
from ./include/linux/fs.h:10,
from ./include/linux/backing-dev.h:13,
from /tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf/vfsmod.h:11,
from /tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf/utils.c:13:
./include/linux/time32.h:125:57: note: expected ‘const struct timespec *’ but argument is of type ‘struct timespec64 *’
static inline s64 timespec_to_ns(const struct timespec *ts)
~~~~~~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:317: /tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf/utils.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1504: _module_/tmp/akmodsbuild.7PQvVBcu/BUILD/VirtualBox-kmod-5.2.18/_kmod_build_4.18.5-200.fc28.x86_64/vboxsf] Error 2
make: Leaving directory '/usr/src/kernels/4.18.5-200.fc28.x86_64'
error: Bad exit status from /var/tmp/rpm-tmp.AhQcYC (%build)
RPM build errors:
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.AhQcYC (%build)
Change History (1)
comment:1 by , 6 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Version 0, edited 6 years ago by (next)
Note:
See TracTickets
for help on using tickets.


#17990