当前位置:网站首页>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


边栏推荐
- NFT数字藏品系统开发:NFT数藏 的最佳数字营销策略有哪些
- I don't understand the MySQL 57 version under centos7 when I encounter a problem. I was informed by big Shen who knows it
- C51 and MDK coexist keil5 installation tutorial
- 正则表达式如何写变量
- NiO implementation
- Realization of LED water lamp based on C51
- How regular expressions write variables
- Talent column | can't use Apache dolphin scheduler? The most complete introductory tutorial written by the boss in one month [3]
- 倒计时2日!基于 Apache DolphinScheduler&TiDB 的交叉开发实践,从编写到调度让你大幅提升效率
- Why can't extern compile variables decorated with const?
猜你喜欢

Drools(3):Drools基础语法(1)

Compose canvas custom circular progress bar

Question: can't download sh shellcheck Please install it manually and some commands of shell script

Idea -- use @slf4j to print logs

Differences in the use of function call pointer parameters *p, * & P

Apache dolphin scheduler & tidb joint meetup | focus on application development capabilities under the development of open source ecosystem

WPS or office compression of ppt

中国联通改造 Apache DolphinScheduler 资源中心,实现计费环境跨集群调用与数据脚本一站式访问

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

金融任务实例实时、离线跑批Apache DolphinScheduler在新网银行的三大场景与五大优化
随机推荐
6、MySQL数据库的备份与恢复
With Huawei cloud welink, you can connect to the world even in the countryside
unity3d-对象池的用法
Unity3d asynchronous loading of scenes and progress bar loading
Apache dolphin scheduler version 3.0.0-beta-1 was released, and flinksql and Zeppelin task types were added
此章节用于补充2
Apache dolphin scheduler & tidb joint meetup | focus on application development capabilities under the development of open source ecosystem
I don't understand the MySQL 57 version under centos7 when I encounter a problem. I was informed by big Shen who knows it
达人专栏 | 还不会用 Apache Dolphinscheduler?大佬用时一个月写出的最全入门教程【三】
【C语言】你真的了解printf吗?(printf典型易错,强烈建议收藏)
5、多表查询
Common programming shortcut keys of idea (take off after learning the operation)
Orthogonality of 20220724 trigonometric function system
Hcip - MPLS Technology
Screen: frame paste, 0 fit, full fit
File server fastdfs
中国联通改造 Apache DolphinScheduler 资源中心,实现计费环境跨集群调用与数据脚本一站式访问
[yiku] wonderful! This library organization NPM script is simply explosive!
Lite actor: lightweight optimization of ark actor concurrency model
Tips when entering a formula in latex