PXE安装部署

一、实验环境
一台红帽7.9的机子,配置网络可用,安装httpd tftp等所需软件,确保火墙selinux都关闭
二、配置PXE服务端
1.开启RHEL7的机子,确保有图形界面

# 下载图形界面
        yum group install "Server with GU!"
# 切换到图形界面
        init 5

2.安装和部署 kickstart 无人看守安装
#安装kickstart
        yum install system-config-kickstart -y
# 启动图形制作工具
        system-config-kickstart

3、安装httpd将文件共享出去

#下载httpd
        yum install httpd -y
#将文件复制到默认发布目录
        cp /root/ks.cfg /varwww/html!
        In -s /rhel7/ /var/wwwhtml4、安装dhcp服务器
# 安装dhcp服务器
        yum install dhcp -y
# 生成配置文件
        icp -f/usrshare/docdhcp*/dhcpd conf.example /etc/dhcp/dhcpd.conf
# 编辑配置文件
        vim /etc/dhcp/dhcpd.conf
#先删除37行之后的内容
5、安装配置syslinux和tftp
# 安装所需软件
        yum install syslinux.x86 64 -
        yum install tftp-server.x86 64 -y
# 启动tftp来共享pxelinux.0数据文件
        systemctl enable --now tftp
#将所需资源导入/var/lib/tftpboot/
        cp /rhel7/isolinux/* /var/lib/tftpboot!
        cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot!

#查看/var/lib/tftpboot/
        cd /var/lib/tftpboot/
        [root@node1 tftpboot]# ls
        boot.cat grub.conf isolinux.bin memtestsplash.png upgrade.img vmlinuz
        boot.msg initrd.img isolinux.cfg pxelinux.0 TRANS.TBL vesamenu.c32

#进入dhcp配置文件添加
        vim /etc/dhcp/dhcpd.cof

3、客户端测试

  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值