随笔 - 746  文章 - 0  评论 - 39  阅读 - 79万

PXE:kickstart配置文件:全自动安装centos、redhat 系统的配置

复制代码
default menu.c32

#多网卡,其实centos7会自动处理,默认使用第一个网卡
label centos76
menu label ??? centos76 from ftp
timeout 1000
kernel centos76/isolinux/vmlinuz
append initrd=centos76/isolinux/initrd.img method=ftp://192.168.143.1/centos76 ks=ftp://192.168.143.1/ks7.cfg

#多网卡,默认网卡
label centos76
menu label special eth-name centos76 from ftp
timeout 1000
kernel centos76/isolinux/vmlinuz
append initrd=centos76/isolinux/initrd.img method=ftp://192.168.143.1/centos76 ks=ftp://192.168.143.1/ks7.cfg ksdevice=ens32

#多网卡,传统内核网卡
label centos76
menu label eth0 centos76 from ftp
timeout 1000
kernel centos76/isolinux/vmlinuz
append initrd=centos76/isolinux/initrd.img method=ftp://192.168.143.1/centos76 ks=ftp://192.168.143.1/ks7.cfg net.ifnames=0 biosdevname=0 ksdevice=eth0


#【多】网卡
label rhel6
menu label rhel6 from ftp
kernel rhel610/isolinux/vmlinuz
append initrd=rhel610/isolinux/initrd.img method=ftp://192.168.56.1/rhel610 ks=ftp://192.168.56.1/ks6.cfg ksdevice=eth0

#单网卡
label rhel6
menu label rhel6 from ftp
kernel rhel610/isolinux/vmlinuz
append initrd=rhel610/isolinux/initrd.img method=ftp://192.168.56.1/rhel610 ks=ftp://192.168.56.1/ks6.cfg ksdevice=eth0
复制代码

 

 

复制代码
auth

install
cdrom

lang en_US.UTF8
keyboard us
timezone  Asia/Shanghai

#network --device=eth0 --bootproto=query

clearpart --all --drives=sda
zerombr
autopart

rootpw root

bootloader
#reboot
halt

%packages
-@Base
wget
net-tools
ftp
telnet
strace
%end

%post
touch /root/jinsen-install.log
chkconfig iptables off
chkconfig ip6tables off
chkconfig kdump off
%end
复制代码

 

posted on   jinzhenshui  阅读(520)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2009-03-30 Linux 架设sshd服务器
2009-03-30 Windows 下ftp命令基本使用

点击右上角即可分享
微信分享提示