centos7.8 安装virtualbox错误记录

  1. # 如下错误
    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

  1. 但也有可能是一样但是还是报错,也就是说缺少模块

    yum install kernel-devel
    yum update kernel*
    #如果内核有更新,则需要重新启动操作系统。
    
  2. 重新编译模块

    /sbin/vboxconfig
    vboxdrv.sh: Stopping VirtualBox services.
    vboxdrv.sh: Starting VirtualBox services.
    vboxdrv.sh: Building VirtualBox kernel modules.
    

    reference:

  3. https://blog.csdn.net/symeteor/article/details/90237965

  4. https://blog.csdn.net/s_k_yliu/article/details/6630210

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。