打算装一个 VirtualBox ,但是出现了问题。
Kernel driver not installed (rc=-1908
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executin
'/sbin/vboxconfig
as root
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
按照提示,安装了kernel-dev
[root@HY ~]# dnf list installed | grep kernel
abrt-addon-kerneloops.x86_64 2.10.4-3.fc27 @anaconda
kernel.x86_64 4.13.9-300.fc27 @anaconda
kernel-core.x86_64 4.13.9-300.fc27 @anaconda
kernel-devel.x86_64 4.14.8-300.fc27 @updates
kernel-headers.x86_64 4.14.8-300.fc27 @updates
kernel-modules.x86_64 4.13.9-300.fc27 @anaconda
kernel-modules-extra.x86_64 4.13.9-300.fc27 @anaconda
libreport-plugin-kerneloops.x86_64 2.9.2-1.fc27 @anaconda
感觉是这些,差不太多。。
然后运行
[root@HY ~]# /sbin/vboxconfig
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping 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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.13.9-300.fc27.x86_64
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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.13.9-300.fc27.x86_
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
我想应该是我的 kernel-headers 和 kernel-core 版本不对吧。。
Kernel driver not installed (rc=-1908
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executin
'/sbin/vboxconfig
as root
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
按照提示,安装了kernel-dev
[root@HY ~]# dnf list installed | grep kernel
abrt-addon-kerneloops.x86_64 2.10.4-3.fc27 @anaconda
kernel.x86_64 4.13.9-300.fc27 @anaconda
kernel-core.x86_64 4.13.9-300.fc27 @anaconda
kernel-devel.x86_64 4.14.8-300.fc27 @updates
kernel-headers.x86_64 4.14.8-300.fc27 @updates
kernel-modules.x86_64 4.13.9-300.fc27 @anaconda
kernel-modules-extra.x86_64 4.13.9-300.fc27 @anaconda
libreport-plugin-kerneloops.x86_64 2.9.2-1.fc27 @anaconda
感觉是这些,差不太多。。
然后运行
[root@HY ~]# /sbin/vboxconfig
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping 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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.13.9-300.fc27.x86_64
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.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.13.9-300.fc27.x86_
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
我想应该是我的 kernel-headers 和 kernel-core 版本不对吧。。