虚拟机安装驱动包时出现报错“Drv_dkms_env_check failed”,安装驱动包失败。
Verifying archive integrity... 100% SHA256 checksums are OK. All good. Uncompressing ASCEND DRIVER RUN PACKAGE 100% [Driver] [2023-02-28 16:13:38] [INFO]Start time: 2023-02-28 16:13:38 [Driver] [2023-02-28 16:13:38] [INFO]LogFile: /var/log/ascend_seclog/ascend_install.log [Driver] [2023-02-28 16:13:38] [INFO]OperationLogFile: /var/log/ascend_seclog/operation.log [Driver] [2023-02-28 16:13:38] [WARNING]Do not power off or restart the system during the installation/upgrade [Driver] [2023-02-28 16:13:38] [INFO]set username and usergroup, HwHiAiUser:HwHiAiUser [Driver] [2023-02-28 16:13:40] [INFO]driver install type: Rebuild [Driver] [2023-02-28 16:13:40] [INFO]Rebuilding by kernel path(/lib/modules/4.18.0-193.el8.x86_64/build), detail in /var/log/ascend_seclog/ascend_rebuild.log [Driver] [2023-02-28 16:13:43] [WARNING]Rebuild ko has something wrong, detail in /var/log/ascend_seclog/ascend_rebuild.log [Driver] [2023-02-28 16:13:43] [INFO]Do you want to try build driver after input kernel absolute path? [y/n]: y [Driver] [2023-02-28 16:13:58] [INFO]Please input your kernel absolute path or input [Q/q] to exit: q [Driver] [2023-02-28 16:14:04] [ERROR]Drv_dkms_env_check failed, details in : /var/log/ascend_seclog/ascend_install.log [Driver] [2023-02-28 16:14:04] [INFO]Failed to install driver package, please retry after uninstall and reboot!
执行如下命令,安装内核头文件。
yum install kernel-devel kernel-headers -y