当前位置:网站首页>YUM仓库服务与PXE自动部署系统
YUM仓库服务与PXE自动部署系统
2022-07-17 00:15:00 【星辰为谁变】
1、yum仓库和客户端的配置步骤
(1)在yum服务器上配置
mkdir -p /var/ftp/centos7 (创建yum保存路径)
mount /dev/cdrom /media (挂载1611光盘)
cp -rf /media/* /var/ftp/centos7 (将1611内容复制到yum路径下)
安装vsftpd服务
rpm -ivh /media/Packages/vsftpd...
systemctl start vsftpd
systemctl enable vsftpd (2)linux客户端的配置
rm -rf /etc/yum.repos.d/* (清除缓存)
vim /etc/yum.repos.d/centos7.repo (配置yum仓库)
[aaa] (名字上下一致)
name=aaa
baseurl=ftp://192.168.1.10/centos7 (指向ftp服务器地址)
gpgcheck=0 (不验证软件包签名,1是验证)(3)客户端测试能否安装软件包
yum -y install samba*(4)在yum服务器上配置本机也能使用yum仓库
rm -rf /etc/yum.repos.d/* (清除缓存)
vim /etc/yum.repos.d/local.repo (配置yum仓库)
[aaa]
name=aaa
baseurl=file:///media (本地目录)
gpgcheck=0
yum -y install samba* (服务器测试能否安装软件包)2、PXE自动部署系统
(1)准备centos7安装源
参考如上
(2)安装并启动TFTP服务
yum -y install tftp-server
vim /etc/xinetd.d/tftp
disable = no (将yse改为no)
systemctl start tftp
systemctl enable tftp (启动和开机自启TFTP服务)(3)准备Linux内核,初始化镜像文件
cd /media/images/pxeboot/
cp vmlinuz initrd.img /var/lib/tftpboot/ (4)准备pxe引导程序,启动菜单文件
记录中定义了三个引导入口,分别为图形安装(默认)、文本安装、救援模式.其中。
prompt用来设置是否等待用户选择;I abe}用来定义并分隔启动项;kerne}和append用来定义引导参
yum -y install syslinux
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
mkdir /var/lib/tftpboot/pxelinux.cfg
vim /var/lib/tftpboot/pxelinux.cfg/default
default auto
prompt 1
label auto (图形安装)
kernel vmlinuz
append initrd=initrd.img method=ftp://192.168.1.10/centos7
label linux text (文本安装)
kernel vmlinuz
append initrd=initrd.img method=ftp://192.168.1.10/centos7
label linux rescue (救援安装)
kernel vmlinuz
append initrd=initrd.img method=ftp://192.168.1.10/centos7
(5) 安装并启动DHCP服务
yum -y install dhcp
vim /etc/dhcp/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.10;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.10,202.106.0.20;
range 192.168.1.100 192.168.1.200;
next-server 192.168.1.10; (指定TFTP服务器地址)
filename "pxelinux.0"; (指定pxe引导程序的文件名)
}
systemctl start dhcpd
systemctl enable dhcpd (启动和开机自启DHCP服务) (6)客户端验证
若要为已有系统的主机重装系统,则可能需要修改BIOS设置,将‘Boot
First“设为“NE丁WORK一或“LAN",然后重启主机:若使用VMware创建的虚拟机进行测试.虚拟机
内存至少需要2GB,否则在启动安装时会报错
在提示字串‘boot:”后直接按Enter键或执行auto 
3、实现Kiekstart无人值守安装
(1)配置安装应答参数
yum -y install system-config-kickstart(2)打开kickstart

(3)基本配置,语言和时区

(4) /boot 5G、/home 4G、/swap2G 剩下的磁盘空间都给根/
(5)网络配置
(6)安装方式选ftp
(7)防火墙禁用
(8)保存文件到root下,文件后缀为cfg
(9)保存应答文件,
vim /root/ks.cfg
(添加)
%packages
@^minimal
%end
(10)启动自动应答文件
cp /root/ks.cfg /var/ftp/ks.cfg
vim /var/lib/tftpboot/pxelinux.cfg/default
default auto
prompt 0
label auto
kernel vmlinuz
append initrd=initrd.img method=ftp://192.168.1.10/centos7 ks=ftp://192.168.1.10/ks.cfg(11) 客户端认证
边栏推荐
- ctfhub--ssrf
- Find() (if the name is used by too many people, I will add words)
- [unity Editor Extension] displays the memory size of all files in the resource directory
- Reprint: SQL injection common bypass
- The solution to the bounce and offset of unity3d game characters when jumping to the ground
- 已知先序遍历中序遍历,求树的层序遍历
- 转载:SQL注入常见绕过
- 流量回放工具gor使用经验
- Plant a seed and grow into a towering b+ tree ten years later
- 解决WIN10连接共享打印机出现0x00000709的错误
猜你喜欢

Jmeter beanshell实现把请求生成的参数化数据写入文件

安装软件提示无法定位程序输入点AddDllDirectory于动态链接库Kernel32.dll上(文末有下载地址)
![[unity Editor Extension] unity makes its own exclusive editor panel](/img/67/12a4ab5167d4a5fc2aaba5220c8df9.png)
[unity Editor Extension] unity makes its own exclusive editor panel

STL -- stack container

子网划分(详)

flask模板注入

Jmeter接口测试之响应断言

After unity imports the FBX model, the rotation and position of the object will change automatically at runtime

Jmeter响应时间测试组件&多接口并发

postman的json脚本转jmeter的jmx脚本
随机推荐
30分钟搞懂 HTTP 缓存
[unity Editor Extension] quickly locate the specified files and paths of resources and scripts
innodb、Mysql结构、三种删除的区别
Use JMeter to test services based on websocket protocol
Metersphere is based on JMeter distributed performance pressure testing platform
ctfhub--ssrf
WINRAR命令拷贝指定文件夹为压缩文件,调用计划任务进行备份。
并发虚拟用户、RPS、TPS的解读
Unity notes 1
Attack and defense world - easytornado notes
怎么做好测试用例评审
Make a simple record and check the set
postman的json脚本转jmeter的jmx脚本
Sword finger offer 53 - I. find the number I in the sorted array
子网划分(详)
理解:什么是接口,接口的概念
服务器知识(详情)
Server knowledge (details)
STL -- map container
深入性能测试数据分析