批量安装NPU驱动固件、CANN、MindStudio、框架、toolbox前需要参考以下操作完成配置。
单机安装请跳过本章节。
进入ascend-deployer/ascend_deployer目录,编辑inventory_file文件,在[worker]下面需注释或删除“localhost ansible_connection='local'”内容,新增执行Ascend Deployer工具所在设备和待安装设备的IP地址、用户名,添加完成后执行:wq保存退出。格式参考如下:
[worker] ip_address_1 ansible_ssh_user="root" # root用户 ip_address_2 ansible_ssh_user="root" # root用户
(可选)安装npu时,在[worker]下面可增加npu_num相关说明(非必填),示例如下:
[worker] ip_address_1 ansible_ssh_user="root" npu_num="请替换为npu卡的数量" # root用户 ip_address_2 ansible_ssh_user="root" npu_num="请替换为npu卡的数量" # root用户
下载表格:表格名称为inventory_template.xls,随Ascend Deployer安装软件包一起下载,并存放于ascend_deloyer目录下。
使用表格:
确保所有设备都能正常连接,若存在设备连接失败情况,请检查该设备的网络连接和sshd服务是否开启。