当前位置:网站首页>PXE高效批量网络装机
PXE高效批量网络装机
2022-07-26 16:27:00 【胃不好的小学生】
目录
一、配置网卡
首先我们要准备两张网卡

二、配置DHCP
安装dhcp







三、配置tftp
安装工具
yum -y install tftp-server
yum -y install xinetd

四、配置引导文件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/下手动创建


七、准备kickstart
按步骤在虚拟机内配置















修改ks.cfg文件

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



边栏推荐
- A firefox/chrome plug-in that visualizes browser history
- 2022 latest Beijing Construction Safety Officer simulation question bank and answers
- The process and harvest of developing browser plug-ins with clojurescript
- TensorFlow Lite源码解析
- DTS is equipped with a new self-developed kernel, which breaks through the key technology of the three center architecture of the two places Tencent cloud database
- Reflections on the mystery of Silicon Valley
- Final consistency distributed transaction TCC
- Digital currency of quantitative transactions - merge transaction by transaction data through timestamp and direction (large order consolidation)
- 工作流引擎在vivo营销自动化中的应用实践
- Pat grade a 1046 shortest distance
猜你喜欢

Application of workflow engine in vivo marketing automation

Nacos win10 installation and configuration tutorial

Re7: reading papers fla/mlac learning to predict charges for critical cases with legal basis

该怎么写单元测试呢

vlang捣鼓之路

匿名方法和lambda表达式使用的区别

Linux Installation mysql8.0.29 detailed tutorial

基于sisotool极点配置PI参数及基于Plecs的三相电压源逆变器仿真

Advanced CAD exercises (I)

限流对比:Sentinel vs Hystrix 到底怎么选?
随机推荐
40个高质量信息管理专业毕设项目分享【源码+论文】(六)
综合设计一个OPPE主页--顶部,头部的设计
[physical simulation] ultra simple shape matching simulates rigid body motion
guetzli简单使用
srec_ Use of common cat parameters
Final consistency distributed transaction TCC
面试时候常说的复杂度到底是什么?
Comprehensively design an oppe homepage -- layout and initialization
JS API summary of Array Operations
Comprehensively design an oppe homepage -- Design of star models
C#事件和委托的区别
Pat grade a 1046 shortest distance
理财产品锁定期是什么意思?理财产品在锁定期能赎回吗?
Botu PLC Sequential switch function block (SCL)
限流对比:Sentinel vs Hystrix 到底怎么选?
movable-view 组件(可上下左右拖动 )
Tdengine landed in GCL energy technology, with tens of billions of data compressed to 600gb
How to balance open utilization and privacy security compliance of public data?
如何保证缓存和数据库一致性
Configmap of kubernetes
