创建额外配置文件
chdef -t osimage centos7.3-x86_64-install-compute-SN850 imagetype=linux osarch=x86_64 osdistroname=centos7.3-x86_64 osname=Linux osvers=centos7.3 otherpkgdir=/install/post/otherpkgs/centos7.3/x86_64 pkgdir=/install/centos7.3/x86_64 pkglist=/opt/xcat/share/xcat/install/centos/compute.centos7.3.pkglist profile=compute provmethod=install synclists=/opt/xcat/share/xcat/install/centos/compute.centos7.3.synclist template=/opt/xcat/share/xcat/install/centos/compute.centos7.3.tmpl
chdef -t osimage centos7.3-x86_64-install-compute-SN850 profile=SN850
创建目录上传并配置使用驱动包
mkdir -p /install/post/otherpkgs/centos7.3/x86_64
chdef -t osimage centos7.3-x86_64-install-compute-SN850 driverupdatesrc=rpm:/install/post/otherpkgs/centos7.3/x86_64/kmod-megaraid_sas-07.706.07.00_el7.3-1.x86_64.rpm
chdef -t osimage <osimagename> driverupdatesrc=rpm:<full path of driver disk1>,rpm:<full path of driver disk2>
设定驱动为全加载
chdef -t osimage centos7.3-x86_64-install-compute-SN850 netdrivers=allupdate
添加开机自动安装驱动
cat >/install/postscripts/installdriver<<'EOF'
#!/bin/bash
yum install -y http://mgt01/install/post/otherpkgs/centos7.3/x86_64/kmod-megaraid_sas-07.708.05.00_el7.3-1.x86_64.rpm
EOF
chmod 755 /install/postscripts/installdriver
chtab node=fat postscripts.postscripts=installdriver
生成内核文件(添加ignorekernelchk取消内核检查)
geninitrd centos7.3-x86_64-install-compute-SN850 --ignorekernelchk
设定安装系统
nodeset fat osimage=centos7.3-x86_64-install-compute-SN850 --noupdateinitrd
如果使用一键命令也需要noupdateinitrd,不然会重新生成内核
rinstall fat -u --noupdateinitrd
如果不希望输入-u --noupdateinitrd编辑/etc/profile添加
alias rinstall='rinstall -u --noupdateinitrd'
标签:xcat,raid,x86,compute,网卡,64,install,驱动,centos7.3
From: https://www.cnblogs.com/leaus/p/17884613.html