码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2019-04-02 00:17:15      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:uri   ks.cfg   init   sbin   flags   efault   lin   station   com   

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系统

标签:uri   ks.cfg   init   sbin   flags   efault   lin   station   com   

原文地址:https://www.cnblogs.com/MeiCheng/p/10640043.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!