【发布时间】:2018-08-28 08:57:19
【问题描述】:
我正在尝试在 RHEL 7 VM 上安装 virtualbox5.2 当我尝试重建内核模块时,我收到以下错误:
[root@myserver~]# /usr/lib/virtualbox/vboxdrv.sh setup
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-3.10.0-693.11.1.el7.x86_64
我尝试安装 kernet-devel 并收到成功消息
Installed:
kernel-devel.x86_64 0:3.10.0-693.21.1.el7
Complete!
但设置仍然失败。
知道这里缺少什么吗?
【问题讨论】:
-
对于任何在基于 Debian 的发行版上遇到相同问题的人,请安装缺少的软件包:
sudo apt-get install -y linux-headers-amd64 linux-headers-$(uname -r) -
有一个guide for RHEL(我没有针对 RHEL 测试过)我成功验证了 Fedora 34。
标签: virtualbox redhat rhel7