首页 > 系统服务 > 详细

Linux下使用Kickstart自动化安装平台架构

时间:2017-09-07 19:08:08      阅读:283      评论:0      收藏:0      [点我收藏+]

PXE工作于Client/Server的网络模式。在启动过程中,终端要求服务器分配IP地址,再用TFTP协议下载一个自动启动软件包到内存中执行。

要使用kickstart安装平台,包括完整的架构为:Kickstart+DHCP+NFS+TFTP+PXE,从架构可以看出,大概需要安装的服务,例如dhcp,tftp,nfs,kickstart/pxe等。

1,安装常用软件

yum -y install  dhcp* nfs*   tftp*

2,启动tftp服务(跟telnet类似)

vi /etc/xinetd/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
}



#将里边的yes改为no,这个文件中的我已经改掉了

3,TFTP+PXE配置

要实现远程安装系统,首先需要在TFTP目录下指定PXE内核模块及相关参数。

配置如下:

#挂载景象    
 mount /dev/cdrom  /mnt/

#拷贝一个文件到这个目录/var/lib/tftpboot/,如果没有的话需要提前安装
find / -name "pxelinux.0"
yum -y install syslinux 
find / -name "pxelinux.0"
cp  /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/




  

 

Linux下使用Kickstart自动化安装平台架构

原文:http://www.cnblogs.com/sexiaoshuai/p/7490948.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!