目录
前言
PXE(preboot execute environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial filtransferprotocol)或MTFTP(multicast trivial file transfer protocol)协议下载一个启动软件包到本机内存中执行,由这个启动软件包完成终端(客户端)基本软件设置,从而引导预先安装在服务器中的终端操作系统。PXE可以引导多种操作系统。
一.网络配置
1.关闭防火墙
systemctl stop firewalld
setenforce 0
2.添加网卡
3.配置网卡
vim /etc/sysconfig/network-scripts/ifcfg-ens33 ifcfg-ens36 将ens33配置信息复制到ens36
systemctl restart network 重起网卡
二.安装DHCP服务
yum -y install dhcp 安装DHCP
查找DHCP路径
复制到指定目录下
vim /etc/dhcp/dhcpd.conf(设置网段,地址池,默认网关,tftp服务器地址,pxe引导程序文件)
开启服务
systemctl start dhcpd
systemctl enable dhcpd
三.安装TFTP服务
安装TFTP
yum -y install tftp-server
yum -y install xinetd
vim /etc/xinetd.d/tftp(disable=yes改为no表示开启TFTP服务)
mount /dev/cdrom /mnt
cd /mnt/images/pxeboot/
内核文件 内核初始化镜像文件 /var/lib/tftpboot/ 站点
cp initrd.img vmlinuz /var/lib/tftpboot/
开启服务
systemctl start xinetd
systemctl enable xinetd
systemctl start tftp
systemctl enable tftp
三.PXE引导程序
安装服务
查找位置
复制到指定位置
四.配置菜单文件
五.安装FTP服务
安装FTP
创建文件并复制到指定目录下
开启服务
systemctl start vsftpd
systemctl enable vsftpd
六.安装Kickstart
开启配置文件