yum install dhcp -y
vim /etc/dhcp/dhcpd.conf
---------------------------------------------

allow booting;
allow bootp;
ddns-update-style interim;
ignore client-updates;
subnet 192.168.10.0 netmask 255.255.255.0 {
        option subnet-mask      255.255.255.0;
        option domain-name-servers  192.168.10.10;
        range dynamic-bootp 192.168.10.100 192.168.10.200;
        default-lease-time      21600;
        max-lease-time          43200;
        next-server             192.168.10.10;
        filename                "pxelinux.0";
}
-----------------------------------------------
 systemctl restart dhcpd
 systemctl enable dhcpd
 firewall-cmd --permanent --add-service=dhcp
 firewall-cmd --reload

yum install tftp-server -y
vim /etc/xinetd.d/tftp
-------------------------------
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
-------------------------------------

systemctl restart xinetd

systemctl enable xinetd
 firewall-cmd --permanent --add-port=69/udp
 firewall-cmd --reload

yum install syslinux -y
cd /var/lib/tftpboot/
cp /usr/share/syslinux/pxelinux.0 .
cp /media/cdrom/images/pxeboot/{vmlinuz,initrd.img} .
cp /media/cdrom/isolinux/{vesamenu.c32,boot.msg} .
mkdir pxelinux.cfg
cp /media/cdrom/isolinux/isolinux.cfg pxelinux.cfg/default
vim pxelinux.cfg/default
------------------------
第一行改为:default linux
第64行改为:append initrd=initrd.img inst.stage2=ftp://192.168.10.10 ks=ftp://192.168.10.10/pub/ks.cfg quiet
第70行改为:append initrd=initrd.img inst.stage2=ftp://192.168.10.10 rd.live.check ks=ftp://192.168.10.10/pub/ks.cfg quiet

yum install vsftpd -y
systemctl restart vsftpd
systemctl enable vsftpd
firewall-cmd --permanent --add-service=ftp
firewall-cmd --reload
cp -r /media/cdrom/* /var/ftp
setsebool -P ftpd_connect_all_unreserved=on
cp ~/anaconda-ks.cfg /var/ftp/pub/ks.cfg
chmod +r /var/ftp/pub/ks.cfg
vim /var/ftp/pub/ks.cfg
-------------------------------
第6行cdrom改为:url --url=ftp://192.168.10.10
第21行时区改为:timezone Asia/Shanghai --isUtc
第28行改为:clearpart --all --initlabel

最新文章

  1. git命令分类图
  2. [.net 面向对象程序设计深入](0) 开篇
  3. C# 显示问题
  4. catalog备份数据库及RMAN存储脚本
  5. BZOJ 4326 树链剖分+二分+差分+记忆化
  6. FastCgi与PHP-fpm之间是个什么样的关系
  7. 【Hadoop需要的Jar包】Hadoop编程-pom.xml文件
  8. .NET中JSON的序列化和反序列化
  9. C++函数学习笔记
  10. prototype原型链继承
  11. 通过localstorage和cookie实现记录文章的功能
  12. 基本Guava工具
  13. Caused by: java.sql.SQLException: Incorrect integer value: '' for column 'clientId' at row 41
  14. 第49章:MongoDB-数据导入导出
  15. vue 路由 及 跳转传递参数的总结
  16. 在operator =中要处理“自我赋值”
  17. authentication plugin caching_sha2
  18. Codeforces Round #525 (Div. 2)-A/B/C/E
  19. 2018ICPC网络赛(焦作站)E题题解
  20. 【Java并发编程】:守护线程与线程阻塞的四种情况

热门文章

  1. regulator_get 调用过程【转】
  2. Cordova 开发 App
  3. 异常机制及throw与throws的区别(转)
  4. 【POI2004】【Bzoj2069】T2 洞穴 zaw
  5. 国产手机没有google services 和google play崩溃,判断google services是否存在
  6. RDA 重现率
  7. npm 是干什么的?
  8. sqlserver2000连接失败,不存在或拒绝访问
  9. bzoj 1999: [Noip2007]Core树网的核【树的直径+单调队列】
  10. ZOJ-3960 What Kind of Friends Are You?