当前位置:网站首页>PXE高效批量网络装机
PXE高效批量网络装机
2022-07-26 07:18:00 【Y坚定的唯物主义者】
目录
部署PXE远程安装服务
- 搭建PXE远程安装服务器
- 验证PXE网络安装
实现Kickstart无人值守安装
- 准备安装应答文件
- 实现批量自动装机
搭建PXE的前提条件:
客户机的网卡支持 PXE 协议(集成 BOOTROM 芯片),且主板支持网络引导。
网络中有一台 DHCP 服务器以便为客户机自动分配地址、指定引导文件位置。 服务器通过 TFTP(Trivial File Transfer Protocol,简单文件传输协议)提供引导镜像文件的下载。
其中,第一个条件实际上是硬件要求,目前绝大多数服务器和大多数 PC 都能够提供此支持,只需在 BIOS 设置中允许从 Network 或 LAN 启动即可
壹、搭建过程
首先:
关闭防火墙和核心防护
setenforce 0
systemctl stop firewalld
一、配置网卡
首先我们要准备两张网卡

并复制配置文件并修改
![]()

二、配置DHCP
安装dhcp



保存并重启服务

三、配置tftp
安装工具
yum -y install tftp-server
yum -y install xinetd
重启服务
systemctl enable tftp
systemctl start tftp四、配置引导文件vmlinuz 和 initrd.img
用于 PXE 网络安装的 Linux 内核、驱动文件可以从 CentOS 7 系统光盘/镜像获得, 分别为 vmlinuz 和 initrd.img,位于光盘目录 images/pxeboot 下,将其复制到/var/lib/tftpbooot/
mount /dev/cdrom /mnt
cp /mnt/images/pxeboot/initrd.img vmlinuz /var/lib/tftpboot/ 
重启服务
systemctl start xinetd
systemctl enable xinetd
systemctl start tftp
systemctl enable tftp 五、配置引导文件pxelinux.0

找到文件所在位置并复制


六、配置启动菜单文件
因为由pxelinux.0这个文件决定是/var/lib/tftpboot/pxelinux.cfg/default文件,所以我们只要在/var/lib/tftpboot/下手动创建


安装vsftpd工具并启动


七、准备kickstart

按步骤在虚拟机内配置













修改ks.cfg文件

修改/var/lib/tftpboot/pxelinux.cfg/default 文件,在末尾添加ftp路径
贰、验证
确保dhcp,tftp,xinetd服务开启情况下
我们新建一个虚拟机,不给它配置系统光盘直接开启 设置其网卡为VMnet1


边栏推荐
- Drools (3): drools basic syntax (1)
- 火焰图分析Flink反压
- How regular expressions write variables
- 成为 Apache 贡献者,So easy!
- NFT数字藏品开发:数字藏品助力企业发展
- Hands on practice - teach you how to make an intelligent fish tank with STM32
- IDEA——使用@Slf4j打印日志
- Getting started with kernel PWN (5)
- Weekly tip 142: multi parameter constructors and explicit
- Advanced Mathematics (Seventh Edition) Tongji University General exercises two person solution
猜你喜欢

LTS(Light-Task-Scheduler)

Summer Challenge harmonyos - hamster game based on arkui (JS)

College degree sales career, from the third tier 4K to the first tier 20k+, I am very satisfied with myself

数据平台调度升级改造 | 从Azkaban 平滑过度到 Apache DolphinScheduler 的操作实践

Drools (4): drools basic syntax (2)

Analysis of strong tennis cup 2021 PWN competition -- baby_ diary

单身杯web wp

No .egg-info directory found in xxx\pip-pip-egg-info-mq

Upgrade ecological proposition: what has Alibaba cloud brought to thousands of businesses?

NFT数字藏品系统开发:NFT数藏 的最佳数字营销策略有哪些
随机推荐
Leetcode 1184: distance between bus stops
RGB-T追踪——【数据集基准】GTOT / RGBT210 / RGBT234 / VOT-2019-2020 / LasHeR / VTUAV
每周小贴士#142:多参数构造函数和explicit
Uncover the mystery of cloud native data management: operation level
Opengauss simple version installation error
Opencv learning basic functions
IR tool in JIT and download, compile and use of jitwatch
4、数据的完整性
The method of raspberry pie connecting tmall elf speaker to play music through Bluetooth
Manifest merger failed with multiple errors, see logs
How to expand and repartition the C disk?
Contents mismatch at: 08000000H (Flash=FFH Required=00H) ! Too many errors to display !
Weekly tip 142: multi parameter constructors and explicit
又是一年开源之夏,1.2万项目奖金等你来拿!
Rgb-t tracking - [dataset benchmark] gtot / rgbt210 / rgbt234 / vot-2019-2020 / laser / VTUAV
Relevant configurations of pychart: change font style and size, change picture background, and change the font color of console output
[749. Isolate virus]
Advanced Mathematics (Seventh Edition) Tongji University exercises 2-5 personal solutions
Summer Challenge harmonyos - hamster game based on arkui (JS)
3.0.0 alpha 重磅发布!九大新功能、全新 UI 解锁调度系统新能力