首先安装所需要包

yum -y install httpd*tftp-server system-config-kickstart dhcp syslinux

挂载WiLinux的DVD光盘,并复制第一张光盘下的所有内容(文件和文件夹)到到/var/wwwhtml/下cp –rf   /mnt/cdrom/*   /var/www/html/


配置dhcp服务

vi /etc/dhcp/dhcpd.conf

servicedhcpd restart

chkconfigdhcpd on

更改配置文件

1.#option domain-name-servers 10.0.0.1; 
2.max-lease-time 7200; 
3.authoritative; 
4.
5.subnet 10.0.0.0 netmask 255.255.255.0 { 
6. range 10.0.0.1 10.0.0.253; 
7. next-server 10.0.0.8; 
8. filename "pxelinux.0"; 
9. } 


配置nfs服务器


vi /etc/exports


/os       *     (ro)        根据实际放ISO镜像目录

/tftpboot  *     (ro)


servicenfs restart

chkconfignfs on



配置tftp服务器


vi /etc/xinted.d/tftp


  1. # default:     off

  2. #     description: The tftp server serves files using the trivial file transfer     \

  3. # protocol.     The tftp protocol is often used to boot diskless \

  4. #     workstations, download configuration files to network-aware printers, \

  5. # and to     start the installation process for some operating systems.

  6. service tftp

  7. {

  8. socket_type = dgram

  9. protocol = udp

  10. wait = yes

  11. user = root

  12. server =     /usr/sbin/in.tftpd

  13. server_args =     -s /var/lib/tftpboot

  14. disable = no

  15. per_source = 11

  16. cps = 100 2

  17. flags = IPv4

  18. }

  19. [root@shanker     html]#


servicexinetd restart

chkconfigxinetd on

然后是system-config-kickstart图形界面下配置(如图1)

Wi Linux pxe安装手册_option

本次配置是NFS,所以选择NFS(如图2)

Wi Linux pxe安装手册_Linux_02

选择安装分区(如图3)

Wi Linux pxe安装手册_Linux_03

配置完成后,保存为ks.cfg文件

Wi Linux pxe安装手册_安装_04

建立tftpboot文件夹,并把配置文件复制过去

进入tftpboot 文件夹没有就重建一个

    #Cd /var/lib/tftpboot

#Mkdir/var/lib/tftpboot

  1. mkdir     /tftpboot

  2. cp     /usr/share/syslinux/pxelinux.0  /var/lib/tftpboot

3.cp/usr/share/syslinux/vesamenu.c32/var/lib/tftpboot

  1. cd     /var/www/html/p_w_picpath/pxeboot/

  2. cp initrd.img     var/lib/tftpboot

  3. cp vmlinux     /var/lib/tftpboot

  4. cp     /var/www/html/isolinux/*.msg  var/lib/tftpboot

  5. mkdir     /tftpboot/pxelinux.cfg

  6. cp     /var/www/html/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default

复制kickstart保存的文件到OS下


cp /ks.cfg /os


更改/tftpboot/pxelinux.cfg/deafault文件增加nfs目录


 ks=nfs:192.168.1.221:/iso/ks.cfg

保存后即可添加新的设备网络安装