VirtualBox: Kernel driver not installed (rc=-1908) | Fedora



在完全重新安装Fedora到36版本后,我得到了这个错误:

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.
If your system has EFI Secure Boot enabled you may also 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.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On Linux, open returned ENOENT

来自其他主题的命令不起作用:

sudo dnf reinstall kernel-devel kernel-headers dkms qt5-qtx11extras  elfutils-libelf-devel zlib-devel
systemctl restart vboxdrv
sudo dnf reinstall VirtualBox-6.1
sudo /sbin/vboxconfig

我需要做什么?由于

请尝试:

$ sudo dnf -y install @development-tools
$ sudo dnf install kernel-headers kernel-devel dkms  -y

问题可能是内核在devel和header上有不同的版本。你应该在做其他事情之前检查一下这个

现在,如果你想创建一个基于Linux的虚拟机,我强烈建议你使用"kvm",这是最简单的方法,它应该没有任何麻烦。

相关:rc-1908

你只需要安装"linux- developer "包(在fedora 37中工作)

sudo dnf install linux-devel

最新更新