text //建议使用文本安装,速度更快
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_AU
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone Asia/Shanghai
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part /boot --fstype="ext4" --size=200
part swap --fstype="swap" --size=2048
part / --fstype="ext4" --size=10000
%packages
@base
@basic-desktop
@chinese-support
@graphics
@technical-writing
@tex
@x11
%end
[root@PXE-server ~]# vim /var/lib/tftpboot/pxelinux.cfg/default
//
default linux //默认启动
#prompt 1
timeout 600
……
label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append ks=nfs:192.168.100.250:/data/nfs/ks.cfg initrd=initrd.img //在append后添加ks文件位置
……
七.客户端测试
客户端主板必须支持网卡启动,ROM网卡必须支持PXE协议
将客户端主机设置为网卡启动,开机测试