Description: Kickstart Server System: centos 6.5 64-bit IP address: 192.168.0.250 need to install a deployed Linux system: centos 6.5 64 bit eth0 (first NIC, for external network) IP address segment: 60.28.x.xeth1 (second NIC for intranet) IP address segment: 192.168.0.128 Subnet Mask: 255.255.255.128 Gateway: 192.168.0.250dns:114.114.115.115 8.8.4.4 All servers support PXE network boot implementation objective: To configure the Kickstart server, fully automated batch installation to deploy Linux system specific operations: Part One: Operating in the Kickstart server system, shutting down Selinuxvim /etc/selinux/config#SELINUX=enforcing #注释掉 #selinuxtype=targeted #注释掉SELINUX =disabled #增加: wq! #保存退出setenforce 0 #使配置立即生效二, close iptables/etc/init.d/iptables stop Three, install the HTTP server yum install httpd #安装chkconfig httpd on #设置开机启动service httpd start #启动四, Mount System install image to HTTP Server site Directory upload system install image file Centos-6.5-x86_64-bin-dvd1.iso to/usr/local/src/directory mkdir -p /var/www/html /os #创建挂载目录mount -t iso9660 -o loop /usr/local/src/centos-6.5-x86_64- bin-dvd1.iso /var/www/html/os #挂载系统镜像vi /etc/fstab #添加以下代码. Automatic mount/usr/local/src/centos-6.5-x86_64-bin-dvd1.iso /for bootVar/www/html/os iso9660 defaults,ro,loop 0 0
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/9E/wKioL1YkhYaRk7TXAAM3d4zjdtE240.jpg "title=" 1.png " alt= "Wkiol1ykhyark7txaam3d4zjdte240.jpg"/>
Install TFTP server yum install tftp tftp-server #安装vim/etc/xinetd.d/tftp #编辑
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/A2/wKiom1YkhdDSWwiZAAFYmakD0jA035.jpg "title=" 2.png " alt= "Wkiom1ykhddswwizaafymakd0ja035.jpg"/>
service xinetd start #启动mkdir -p /var/lib/tftpbootcp /var/www/html/os/images/ pxeboot/vmlinuz /var/lib/tftpbootcp /var/www/html/os/images/pxeboot/initrd.img /var/lib/ tftpbootmkdir -p /var/lib/tftpboot/pxelinux.cfgcp /var/www/html/os/isolinux/isolinux.cfg / var/lib/tftpboot/pxelinux.cfg/default #拷贝启动菜单vi /var/lib/tftpboot/pxelinux.cfg/default # Edit Modify Default linuxprompt 0timeout 600display boot.msgf1 boot.msgf2 options.msgf3 general.msgf4 param.msgf5 rescue.msglabel linuxkernel vmlinuzappend initrd= initrd.img ks=http://192.168.0.250/ks.cfg ksdevice=em2 ip=dhcplabel textkernel vmlinuzappend initrd=initrd.img textlabel kskernel vmlinuzappend ks initrd= initrd.imglabel locallocalboot 1label memtest86kernel memtestappend -chmod 644 /var/lib/tftpboot/pxelinux.cfg/default , #设置文件权限yum install syslinux #安装引导程序cp /usr/share/syslinux/pxelinux.0 /var/lib/ tftpboot/ #拷贝引导文件到tftp服务器根目录六, installing DHCP server yum install dhcp #安装cp /usr/share/doc/ dhcp-3.0.5/dhcpd.conf.sample /etc/dhcp/dhcpd.conf #复制配置文件模板vi /etc/dhcpd.conf #编辑配置文件
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/9E/wKioL1Ykhv_z2mmIAAMaZM_AZWw684.jpg "title=" 3.png " alt= "Wkiol1ykhv_z2mmiaamazm_azww684.jpg"/>
VI/ETC/SYSCONFIG/DHCPD #指定DHCP服务的网络接口DHCPDARGS =em2:wq! #保存退出dhcpd #测试dhcp服务器配置是否正确service dhcpd start #启动dhcp服务chkconfig dhcpd on #设置开机启动
Seven, configure Kickstart automatic installation files yum install System-config-kickstart #安装工具包cd/var/www/htmlvi ks.cfg #编辑
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/A2/wKiom1Ykh67zjhhaAAPTLYv6Bwc293.jpg "style=" float: none; "title=" 4.png "alt=" Wkiom1ykh67zjhhaaaptlyv6bwc293.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/9E/wKioL1Ykh9WipvcMAAGWy9mN3ms766.jpg "style=" float: none; "title=" 5.png "alt=" Wkiol1ykh9wipvcmaagwy9mn3ms766.jpg "/>
This article is from the "Water Lions," blog, please be sure to keep this source http://darren88.blog.51cto.com/4779311/1704172
KICKSTART+HTTP+DHCP+TFTP automatic batch installation of Linux system deployment