kickstart+DHCP+NFS+TFTP+PXE 全自动化部署Linux系统

Posted meicheng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kickstart+DHCP+NFS+TFTP+PXE 全自动化部署Linux系统相关的知识,希望对你有一定的参考价值。

http://www.madmalls.com/blog/post/customize-centos-7-3-autoinstall-iso/
http://www.178linux.com/82613
https://www.osyunwei.com/archives/7577.html
https://blog.51cto.com/darren88/1704172
https://blog.51cto.com/433266/1893704
https://blog.51cto.com/hypocritical/1694976
http://www.linuxmysql.com/25/2017/672.htm
https://blog.slogra.com/
https://www.zyops.com/autoinstall-kickstart/
https://www.bilibili.com/video/av17467528?from=search&seid=12026567452303907129

kickstart+DHCP+NFS+TFTP+PXE

安装详细步骤

执行PXE——kickstart 安装需要的设备为

  • DHCP 服务器
  • TFTP 服务器
  • Kickstart所生成的ks.cfg配置文件
  • 一台存放系统安装文件的服务器。如NFS、HTTP、或FTP服务器
  • 一台带有PXE支持网卡的主机

用到的kickstart工具、依赖于X Windows,所以要提前安装好,XWindows及GNOME 并重启系统

yum grouplist | more

yum -y groupinstall 'X Window System'
yum -y groupinstall "GNOME Desktop" "Graphical Administration Tools"

修改/etc/inittab配置文件

id:5:initdefault

重启系统 reboot

启动图像化

start

上传centos7.4.iso 至 /usr/loca/src mkdir -p mnt/cdrom

mount -o loop centos7.4.iso /mnt/cdrom

安装dhcp

rpm -q dhcp 
yum -y install dhcp

创建Apache目录 mkdir -p /var/html/www

cp -rf /mnt/cdrom/* /var/html/www/

安装TFTP

yum -y install tftp-server

配置tftp

 vim /etc/xinetd.d/tftp
 
# default: off
# description: The tftp server serves files using the trivial file transfer #       protocol.  The tftp protocol is often used to boot diskless #       workstations, download configuration files to network-aware printers, #       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot
        disable                 = no  # 
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

yum  -y  install  xinetd*  

重启xinetd进程

以上是关于kickstart+DHCP+NFS+TFTP+PXE 全自动化部署Linux系统的主要内容,如果未能解决你的问题,请参考以下文章

kickstart自动化安装--tftp+nfs+dhcp

自动化批量部署Linux系统(Kickstart+DHCP+NFS(http)+TFTP+PXE)

Linux系统网络安装——基于pxe+dhcp+nfs+tftp+kickstart

KickStart+nfs+dhcp+tftp无人值守批量安装CentOS6.5(或CentOS7)

002.Kickstart部署之NFS架构

002.Kickstart部署之NFS架构