RHEL5 + PXE + DHCP + Apache + Kickstart install RHCE lab environment

Source: Internet
Author: User
Because both work and study require this purpose, after the experiment is successful, I will write out the unattended installation process of kickstart for sharing. At the same time, I hope that the majority of users can make good suggestions, make progress together! Reprinted please indicate me and the source! If there are bugs in the experiment steps, we should not modify them or improve them. Thank you for your comments (fuqin liquor cooking). principle and concept: 1.1 What is PXE? In strict terms, PXE is not a installation method, it is a guiding method. A prerequisite for PXE installation is that the computer to be installed contains

Because both work and study require this purpose, after the experiment is successful, I will write out the unattended installation process of kickstart for sharing. At the same time, I hope that the majority of users can make good suggestions, make progress together! Reprinted please indicate me and the source! Modification and improvement of bugs in the experiment steps are not interrupted. Thank you for your comments (fuqin liquor preparation)

Principles and concepts:
1.1 What is PXE
Strictly speaking, PXE is not an installation method, but a boot method. A prerequisite for PXE installation is that the computer to be installed contains a network card (NIC) supported by PXE, that is, the network card must have a PXE Client. PXE (Pre-boot Execution Environment) Protocol enables the computer to start over the network. The Protocol is divided into client and server. The PXE client is in the ROM of the NIC. When the computer boots, the BIOS transfers the PXE client to the memory for execution, the PXE client downloads the files stored on the remote end to the local computer for running through the network. To run the PXE protocol, you must set the DHCP server and TFTP server. The DHCP server is used to assign an IP address to the PXE client (the host on which the system is to be installed). Because the IP address is assigned to the PXE client, you need to add relevant PXE settings when configuring the DHCP server. In addition, TFTP client already exists in the PXE Client ROM. The PXE Client uses the TFTP protocol to download the required files to the TFTP Server.
1.2 What is KickStart
KickStart is an unattended installation method. The working principle of KickStart is to record various parameters required for manual intervention during a typical installation process and generate a file named ks. cfg file. In the subsequent installation process (not limited to the machine that generates the KickStart Installation File), when parameters are required, the installer first looks for the file generated by KickStart. When a proper parameter is found, the parameter is used. If no proper parameter is found, manual intervention is required by the installer. In this way, if the KickStart file covers all the parameters that need to be filled in during the installation process, the installer can only tell the installer where to get ks. cfg file, and then busy with your own affairs. After the installation is complete, the installer restarts the system based on the restart option set in ks. cfg and ends the installation.
1.3 PXE + KickStart installation conditions
The devices required for executing PXE + KickStart installation are:
? DHCP server;
? TFTP server;
? Ks. cfg configuration file generated by KickStart
? A server that stores system installation files, such as NFS, HTTP, or FTP servers.
? Host that will be installed with a PXE support Nic;
Installation steps:
1. Install httpd
Yum-y install httpd *
2. Mount the RHEL5 DVD and copy all the content (files and folders) under the first chapter to/var/html/www.
1. mount/dev/cdrom/mnt
2. cp-rf/mnt/*/var/html/www

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.