1. Install a CentOS7.x the desktop version of the system server, turn off the firewall and selinux;
2. In the server software installed pxe + kickstart unattended needs;
yum install dhcp tftp-server httpd sysliinux -y
3. Start the installation of the software and set boot from the start
① configuration dhcp, dhcp server start
② configuration tftp, tftp start
③ start http, configure the boot from the start
4. The mirror mount in the default directory http
5. Configure pxe, /usr/share/syslinux/pxelinux.0 to copy the / var / lib / tftpboot / directory
6. isolinux image file directory is mounted in the file, copy to the tftp directory (/ var / lib / tftpboot /):
cp /var/www/html/CentOS7/isolinux/* /var/lib/tftpboot/
7. Copy the file isolinux.cfg / var / lib / tftpboot / directory to the file in the default directory pxelinux.cfg
8. editing /var/lib/tftpboot/pxelinux.cfg/default, can modify the name of the installation interface, may change the default option in the image reading position, and from the network
9. Add a virtual machine of the same configuration, do not add the image file (note: the installation is unsuccessful restart just fine).
Here the pxe portion installed, then the configuration kickstart unattended
Method a: system-config-kickstart installation service at the desktop version of the system, operation of generating a file in the ks.cfg / var / www / html directory.
Method two: Reference csdn, 51cto search sites such as writing a document written by someone else ks.cfg, placed under / var / www / html directory.
Method three: Read the manual kickstart with an editor to write, placed under / var / www / html directory.
10. The second method used here, (the individual a recommended method, two methods troublesome)
11.在配置文件添加ks.cfg的路径,重启http服务(systemctl restart httpd)
vi /var/lib/tftpboot/pxelinux.cfg/default
12.测试等待,不用手操作
参考文献:https://www.cnblogs.com/clsn/p/7833333.html#auto_id_17
https://blog.csdn.net/hello_xiaozhuang/article/details/80864249等