上图是clonezilla的pxe配置 位置在/tftpboot .pxelinux.cfg里也有default文件.
下图是pxe的配置文件 位置在/var/lib/ftpboot . 客户机收到server端分发的ip地址 寻找网络引导程序(在centos里它是pxelinux.0) 同时从tftp server获取配置文件(默认在tftpboot里). 然后读取配置文件pxelinux.cfg 开始加载vmlinuz作为内核 加载initrd.img作为启动镜像 .最后会去找ks.cfg文件(我自己放到了inst里) 实现无交互自动安装.
ps:pxelinux.0在 yum install syslinux后 cd /usr/share/syslinux可以找到.
vmlinuz和initrd.img在刻录好的u盘里 C:\Centos7\images\pxeboot可以找到.
或者可以选择
挂载镜像到虚拟driver . mount /data/software/centos7.iso /var/www/html/inst/iso 然后cp /var/www/html/inst/iso/isolinux/* /var/lib/tftpboot
参考:
保奇哥的clonezilla系统
https://www.theskillpedia.com/automated-installations-of-rhel-centos-7-using-pxe-server-and-kickstart/
https://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.installclassic.doc_41/install/boot_esx_install/c_about_pxe_config_files.html
https://blog.youkuaiyun.com/yincg/article/details/70595175
https://blog.youkuaiyun.com/Blood_Seeker/article/details/69808799
顺便了解一下vmlinuz的恢复
www.178linux.com/97942