更新 scripts/README.md

This commit is contained in:
joy 2025-10-15 12:54:22 +08:00
parent 120ddc9a56
commit 54f402f9e1
1 changed files with 27 additions and 1 deletions

View File

@ -123,7 +123,33 @@
#查看版本nvidia-container-runtime --version|head -1 #查看版本nvidia-container-runtime --version|head -1
``` ```
#### 10批量安装/卸载 #### 10nvidia-container-toolkit 安装/卸载
```bash
#在再生龙克隆系统前,对目标母机系统进行增强配置,实现克隆还原后系统 “开箱即用”无需手动修改主机名、自动配置带内IP、修复再生龙还原后udev规则文件丢失问题等。
cd /opt/ && wget -qO- http://116.205.97.109/scripts/clonezilla_config.sh | bash
#=注意:在执行完脚本后需在 /opt/ip.txt 中填写 需要还原主机的IP子网掩码网关及其带外IP地址对应关系
cat /opt/ip.txt
#第一列:带内IP,第二列子网掩码第三列带内网关第四列带外IP
172.51.4.1 26 172.51.4.126 172.51.2.50
172.51.4.2 26 172.51.4.126 172.51.2.50
.......
脚本实现内容:
1. 备份/etc/udev下网卡规则文件
2. 替换当前主机IP及网关为初始值ip:0.0.0.0/0,gw:0.0.0.0
3. 添加开机执行脚本:
1.修改主机名称
2.获取带外IP根据带外IP修改网卡配置文件
3.还原udev 网卡规则文件(解决再生龙还原规则文件丢失问题)
```
#### 11批量安装/卸载
![Static Badge](https://img.shields.io/badge/组件[1]-orange?style=flat-square) ![Static Badge](https://img.shields.io/badge/组件[1]-orange?style=flat-square)
![Static Badge](https://img.shields.io/badge/mlnx_ofed-23.10.1.1.9.0-brightgreen?style=plastic) ![Static Badge](https://img.shields.io/badge/mlnx_ofed-23.10.1.1.9.0-brightgreen?style=plastic)