无人值守批量安装Linux操作系统
作者:网络转载 发布时间:[ 2013/4/23 10:37:28 ] 推荐标签:
配置tftp服务器
1、安装tftp服务器
# vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no (yes改为no)
per_source = 11
cps = 100 2
flags = IPv4
}
# service xinetd restart
# lsof -i:69
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 2197 root 5u IPv4 7277 UDP *:tftp
2、准备好引导镜像
# yum install syslinux -y
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
# mkdir /tftpboot/pxelinux.cfg 《--安装条目的配置目录
安装界面需要的特殊镜像,准备引导配置文件
# cp 光盘镜像/isolinux/* /tftpboot/
# mv /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/default
# ls /tftpboot/
boot.cat isolinux.bin options.msg rescue.msg
boot.msg param.msg splash.lss
general.msg pxelinux.0 TRANS.TBL
initrd.img memtest pxelinux.cfg vmlinuz
# ls /tftpboot/pxelinux.cfg/
default

sales@spasvo.com