在CentOS7 上实现PXE自动化安装Centos windows
一、安装前准备
关闭防火墙和SELINUX
systemctl stop firewalld
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0
二、安装相关软件包并启动服务
yum -y install httpd tftp-server dhcp syslinux system-config-kickstart
systemctl enable httpd
systemctl enable tftp
systemctl enable dhcpd
mkdir -pv /var/www/html/centos/7/os/x86_64
mount /dev/sr0 /var/www/html/centos/7/os/x86_64
vi /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.200 192.168.10.210