更改

跳转至: 导航搜索

如何使用Kickstart自动批量安装Linux客户端(CentOS)

删除1,795字节, 2016年9月29日 (四) 20:01
Kickstart基本原理为使用工作于Client/Server模式下Intel公司PXE(Preboot eXecution Environment详情请点击#REDIRECT [[http://zh.wikipedia.org/wiki/%E9%A2%84%E5%90%AF%E5%8A%A8%E6%89%A7%E8%A1%8C%E7%8E%AF%E5%A2%83 维基百科]),通过网络下载系统镜像并安装。在启动过程中,终端请求服务器分配IP地址后, 如何 使 用TFTP(Trivial File Transfer Protocol)协议下载软件包到本机内存中执行,并根据预先配置文件(本例中为client01.cfg)完成终端系统安装及设置。服务器配置如下: 操作系统为CentOS 6(2.6.32-504.e16.x86_64) 主机名为osdis.test.com IP地址为192.168.162.10 子网掩码为255.255.255.0(24) 网关为192.168.162.2 DNS为192.168.1.1  1.PXE基本原理如下。[[File:PXE.png]] 2.输入“ifconfig”查看服务器IP配置。[[File:Kickstart1.png]] 3.输入“yum -y install httpd”安装Apache。[[File:Kickstart2.png]] 4.提示已经安装完毕。[[File:Kickstart3.png]] 5.输入“chkconfig --level 35 httpd on”设置Apache开机时以35模式 用Kickstart 自动 启动。[[File:Kickstart4.png]] 6.输入“service httpd start”启动Apache。[[File:Kickstart5.png]] 7.输入“yum -y install tftp-server” 批量 装tftp。[[File:Kickstart6.png]] 8.提示已经安装完毕。[[File:Kickstart7.png]] 9.输入“vi /etc/xinetd.d/tftp”编辑。[[File:Kickstart8.png]] 10.注意下图中“server_args = -s /var/lib/tftpboot”在CentOS中的区别。[[File:Kickstart9.png]] 11.按“i”进入编辑状态,修改“disable”后的值为“no装Linux客户端( 默认为yesCentOS) ”,确认无误后按“ESC”,并输入“:x”保存退出。[[File:Kickstart10.png]] 12.输入“/etc/init.d/xinetd start”启动tftp。[[File:Kickstart11.png]] 13.输入“chkconfig --level 35 xinetd on”并按回车键确定,确保开机自动启动tftp.[[File:Kickstart12.png]]
1,138
个编辑

导航菜单