Kickstart Batch Deployment

Source: Internet
Author: User

The images in the CD-ROM is used to boot the Boot.iso, and the name of the Yum source must be called
Load stage1.img load keyboard, language, startup mode, etc.
Loading stage2.img loading a micro-system

1. Requires DHCP server, client obtains IP address from DHCP server
The 2.DHCP server provides the client with an IP address and informs the client of the location of the TFTP server (the code file needed for network boot)
3. Find TFTP for related files

The role of DHCP: providing IP to the client
Tell PXE where to find TFTP, with TFTP to pxelinux.0, directory/tftpboot/linux-install


TFTP function: Provide stage1 file, Vmlinuz initrd.img

Kiskstart Installation configuration:
Note: #网卡需要支持网络启动
#注意yum源文件名改为base. Repo
1. Configure the Yum source
Vim/etc/yum.repos.d/base.repo
[Base]
Name=base
Baseurl=file:///media/server
Enabled=1
Gpgcheck=0

2. Hang on CD, yum install related packages
Mount/dev/cdrom/media
3. Configure DHCP server
vim/etc/dhcpd.conf
 ddns-update-style interim;
 ignore client-updates;
 next-server 192.168.10.251;
 filename "pxelinux.0";
 subnet 192.168.10.0 netmask 255.255.255.0 {
        option routers                   192.168.10.1;
        Option subnet-mask               255.255.255.0;
        Option domain-name-servers      192.168.10.1;
        range DYNAMIC-BOOTP 192.168.10.128 192.168.10.254;
        default-lease-time 21600;
        max-lease-time 43200;
 }

4. Configuring the TFTP server
Vim/etc/xinetd.d/tftp
Service TFTP #配置tftp中的2个参数
{
Server_args =-s/tftpboot/linux-install/
Disable = no
}
5. Copy the kernel file and initialize the memory disk image, httpd publish the package
Cp/media/isolinux/isolinux.cfg/tftpboot/linux-install/pxelinux.cfg/default
cp/media/isolinux/vmlinuz/media/isolinux/initrd.img/tftpboot/linux-install/
Mv/etc/httpd/conf.d/welcome.conf/etc/httpd/conf.d/welcome.conf.bak
Mkdir/var/www/html/rhel
Mount/dev/cdrom/var/www/html/rhel

6. Configure/tftpboot/linux-install/pxelinux.cfg/default
Default KS
Timeout 3
Append ks=http://192.168.10.251/ks.cfg initrd=initrd.img

7. Create Kickstart
Vim/etc/yum.repos.d/base.repo
[Base]
Name=base
Baseurl=file:///var/www/html/rhel/server
Enabled=1
Gpgcheck=0


8. Configuring the Ks.cfg Unattended answer file
System-config-kickstart #注意启动软件时, the Yum source package relationship needs to be loaded, and if a flashback occurs, check the Yum source configuration
CP ks.cfg/var/www/html/
Vim/var/www/html/ks.cfg
Key--skip #跳过key
%packages #添加软件包, can be obtained in the/root/anaconda-ks.cfg, paste it.


9. Configure individual machines to install different systems, mac=00-50-56-36-db-2d
cd/tftpboot/linux-install/pxelinux.cfg/
CP default 01-00-50-56-36-db-2d #注意, number of bits of MAC address, this address is more than the address of the native one
Vim 00-50-56-36-db-2d

CP Default 01-00-0c-29-f4-5e-64
Vim 01-00-0c-29-f4-5e-64
Append ks=http://Another publishing point


Kickstart Batch Deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.