分类: LINUX
2010-02-09 20:51:51
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
per_source = 11
cps = 100 2
flags = IPv4
}
2. 安装配置dhcp
# vim /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet
option routers
option subnet-mask 255.255.255.0;
option time-offset -18000; # Eastern Standard Time
range dynamic-boot
default-lease-time 21600;
max-lease-time 43200;
next-server
filename "pxelinux.0";
}
3. copy相关文件
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
# cp -r /media/cdrom/isolinux/* /tftpboot/
# mkdir /tftpboot/pxelinux.cfg/
# mv /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/default
4. 配置/tftpboot/pxelinux.cfg/default为kickstart安装
# vim /tftpboot/pxelinux.cfg/default
label linux
kernel vmlinuz
append ks=nfs:
5. 配置anaconda-ks.cfg
# vim /kickstart/anaconda-ks.cfg
install
nfs --server 10.10.11.153 --dir /media/cdrom
lang zh_CN.UTF-8
6. 共享/media/cdrom 和/kickstart/目录
# vim /etc/exports
/media/cdrom *(ro,sync)
/kickstart *(ro,sync)
7. 重启服务