-
# 如下错误 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
用uname -a看是否相同
如果两个命令得到的版本号一致,那么恭喜你可以直接安装Vmware Tools了;不过一般情况下,两个版本是不一致的,或者是提示kernel-devel没有安装;
那么要下载kernel-devel-3.10.0-693.11.1.el7.x86_64.rpm
然后进到文件所在目录后在终端中执行rpm -ivh kernel-xen-devel-2.6.18-164.el5.i686.rpm
-
但也有可能是一样但是还是报错,也就是说缺少模块
yum install kernel-devel yum update kernel* #如果内核有更新,则需要重新启动操作系统。
-
重新编译模块
/sbin/vboxconfig vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules.
reference:
网友评论