PXE(preboot execute environment,预启动执行环境)

是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial file transfer protocol)或MTFTP(multicast trivial file transfer protocol)协议下载一个启动软件包到本机内存中执行,由这个启动软件包完成终端(客户端)基本软件设置,从而引导预先安装在服务器中的终端操作系统。PXE可以引导多种操作系统

主要实现从网卡启动的全自动系统安装

在60主机中

 linux--pxe 安装系统 将isolinux复制到/westos中

将/westos添加到vsftpd的默认发布目录中

linux--pxe 安装系统 

(服务端)

将60主机中的isolinux通过lftp服务下载到本机中

 

安装软件

 linux--pxe 安装系统

查看tftp-server服务的配置文件

 linux--pxe 安装系统

 

 

 

[[email protected] ~]# vim /etc/xinetd.d/tftp

 14         disable              = no   ##将14行yes改为no

linux--pxe 安装系统

[[email protected] ~]# systemctl restart xinetd.service  重启服务

 

查看60端口是否开启

 linux--pxe 安装系统

 

[[email protected] tftpboot]# mkdir pxelinux.cfg

 

[[email protected] tftpboot]# cp isolinux.cfg pxelinux.cfg/default

 

[[email protected] tftpboot]# cp /usr/share/syslinux/pxelinux.0 .

 

 linux--pxe 安装系统

 

 

[[email protected] ~]# systemctl start httpd

 

[[email protected] ~]# systemctl stop firewalld.service

 

[[email protected] ~]# cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf

linux--pxe 安装系统

[[email protected] ~]# vim /etc/dhcp/dhcpd.conf

linux--pxe 安装系统

[[email protected] ~]# systemctl restart dhcpd

 

[[email protected] tftpboot]# vim pxelinux.cfg/default

将65行修改

linux--pxe 安装系统

更改等待时间

linux--pxe 安装系统

Menu title 可更改标题

linux--pxe 安装系统

Menu default   启动位置

默认启动为check,更改为linux

linux--pxe 安装系统

menu background  此处可更改背景图

[[email protected] tftpboot]# systemctl start xinetd

 

测试:需要断开你所设定的网段,以免影响实验效果

调启动方式为网卡启动

 

 

 linux--pxe 安装系统

 

 linux--pxe 安装系统

完全自动安装

[[email protected] ~]#  yum system-config-kickstart -y

[[email protected] ~]# system-config-kickstart   开启图形

之后的操作在启动安装虚拟机中有具体介绍

(文件保存到/var/www/html中)

[[email protected] ~]# vim /var/www/html/ks.cfg

(此文件也可在Pre-Installation Script中写入内容,开机自动运行)

linux--pxe 安装系统

[[email protected] ~]# ksvalidator ks.cfg  检测程序是否正确

[[email protected] ~]# systemctl restart httpd

[[email protected] ~]# systemctl restart dhcp

结果

linux--pxe 安装系统



本文转自 無緣 51CTO博客,原文链接:http://blog.51cto.com/13352594/2050486

相关文章:

  • 2022-12-23
  • 2021-06-25
  • 2021-06-14
  • 2022-12-23
  • 2022-01-11
  • 2021-08-01
  • 2021-10-21
  • 2021-06-24
猜你喜欢
  • 2021-06-07
  • 2021-04-30
  • 2022-12-23
  • 2021-06-27
  • 2021-11-21
  • 2021-08-10
  • 2021-11-27
相关资源
相似解决方案