Batch deploy RedHatLinux with Kickstart

Source: Internet
Author: User
Automatic Management is a required course for every linux administrator, especially when the number of linux servers managed is too large. There is a lot of automation: Teachmachinestobuildthemselves makes Teachmachinestowatchthemselves, and Teachmachinestofixthemselves has recently studied linux Automation

Automatic Management is a required course for every linux administrator, especially when the number of linux servers managed is too large. There are a lot of automation:
Enable Automatic Machine Building (Teach machines to build themselves)
Enable Automatic Machine Monitoring (Teach machines to watch themselves)
Make the machine self-repair (Teach machines to fix themselves)

A recent study of linux automatic deployment started with the Kickstart Installations Automatic Installation solution provided by the traditional RedHat, and then the Cobbler launched recently.

System Environment: CentOS 5 and Apache2

1. Generate the ks. cfg configuration file
Ks. cfg can be generated by the GUI Program system-config-kickstart. If you know the meaning of each row configuration, you can write a ks. cfg file by yourself. Here we will introduce the system-config-kickstart generation method. After all, it will take less time to remember things. This process can be completed in any redhat system with a desktop. We only need the ks. cfg file.

Install system-config-kickstart:

  1. Rpm-qa | grep kickstart
  2. # If not, install
  3. Yum install-y system-config-kickstart

Create the ks. cfg configuration file based on the redhat official Kickstart aggregator:

Run system-config-kickstart in GUI mode to bring up the following window. Enter the following information based on the official Kickstart aggregator and your actual situation.

The Installation Method specifies the Installation source, which can be CD-ROM, NFS, FTP, HTTP, or Hard Drive. I chose to install from a local CD-ROM. DHCP is recommended for Network Configuration.

Finally, click File --> Save to Save ks. upload the cfg file to your apache web server root directory (for example,/var/www/html), and confirm that the file can be accessed (My http: // 192.168.56.102/ks. cfg ). System deployment is required.

2. Deploy redhat linux

Put the redhat CD on the machine where the operating system is to be installed, enter the following content after "boot:", and press enter (http: // 192.168.56.102/ks. cfg stores ks for you. cfg web server ). Ks. cfg can also be stored on nfs, ftp, and floppy disk. For specific configuration, see the official Starting a Kickstart Installation:

Linux ks = http:// 192.168.56.102/ks. cfg

Then, the system uses dhcp to obtain an IP address and download ks from the web server. cfg file. If you do not have DHCP, the system will prompt you if you want to manually set the IP address after obtaining the IP address fails. In this case, you can manually set the IP address. After ks. cfg is downloaded, the system configures the system based on the cfg content and determines whether the installation source is CD-ROM, NFS, FTP or HTTP. Then, based on the cfg content, ask for the unspecified part. After the corresponding operation is completed, the system is installed.

3. Others

Redhat official manual

The installation steps are simplified and not completely automated. You can deploy redhat remotely and automatically by placing the installation source on the web server, ftp, or nfs, and then using PXElinux. Specific can refer to: http://www.linuxidc.com/Linux/2012-01/51843.htm

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

Related Article

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.