文章目录
前言
用来与kickstart来一起批量安装计算机。
1.pxe是什么:
预启动执行环境(Preboot eXecution Environment,PXE)也被称为预执行环境,提供了一种使用网络接口(Network Interface)启动计算机的机制。这种机制让计算机的启动可以不依赖本地数据存储设备(如硬盘)或本地已安装的操作系统。
2.实验环境
企业7主机:192.168.43.10
部署pxe环境(获得安装源等)
在这台主机上搭建dhcpd服务器,分配ip信息到客户端;
部署vsftpd服务,用来共享ks文件,共享安装源(用来挂载安装源)
制作ks.cfg文件
1.部署vsftpd:
共享ks文件
共享安装源
2.搭建dhcpd服务器
分配ip等信息到客户端
3.部署pxe环境
1.获得pxelinux.0文件
查找
[root@rhel7_node1 ftp]# yum whatprovides */pxelinux.0
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
software/filelists_db | 85 kB 00:00:00
westosrhe7/filelists_db | 3.4 MB 00:00:00
syslinux-4.05-15.el7.x86_64 : Simple kernel loader which boots from a FAT filesystem
Repo : westosrhe7
Matched from:
Filename : /usr/share/syslinux/pxelinux.0
syslinux-tftpboot-4.05-15.el7.noarch : SYSLINUX modules in /var/lib/tftpboot, available
: for network booting
Repo : westosrhe7
Matched from:
Filename : /var/lib/tftpboot/pxelinux.0
安装
[root@rhel7_node1 ftp]# yum install syslinux-4.05-15.el7.x86_64 -y
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
software | 2.9 kB 00:00:00
westosrhe7 | 4.3 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package syslinux.x86_64 0:4.05-15.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================
Package Arch Version Repositor