RHEL6.3 + PXE + DHCP + Apache + NFS + KickStart unattended installation of RHEL6.3

Source: Internet
Author: User
Principle: generate ks through kickstart. cfg file to filter out the manual intervention during the installation process. The system can be automatically installed after the NIC is started until the system is complete, thus achieving large-scale deployment and installation of the operating system. system Environment: [root @ rhel6u3-1 ~] # Uname-r2.6.32-279.el6.i686 [root @ rhel6u3-1 ~] # Lsb_release-aLSBVersion:

Principle:Use kickstart to generate the ks. cfg file, filter out the manual intervention during the installation process, and finally enable automatic installation of the system from the start of the NIC until it is complete, thus achieving large-scale deployment and installation of the operating system.

System Environment:

[root@rhel6u3-1 ~]# uname -r2.6.32-279.el6.i686[root@rhel6u3-1 ~]# lsb_release -aLSB Version:          :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noahDistributor ID:         RedHatEnterpriseServerDescription:            Red Hat Enterprise Linux Server release 6.3 (Santiago)Release:  6.3Codename:             Santiago
Step 1: configure the yum Environment

Attach an image file

[Root @ rhel6u3-1 ~] # Mount/dev/cdrom/media/cdrom // mount the disk image file mount: block device/dev/sr0 is write-protected, mounting read-only

Configure the YUM library to point to the image file Mount location.

[Root @ rhel6u3-1 ~] # Vim/etc/yum. repos. d/rhel-source.repo // create and edit yum repository pointing to CD Mount location [rhel-source-beta] name = Red Hat Enterprise Linux $ releasever Beta-$ basearch-Sourcebaseurl = file: /// media/cdromenabled = 1 gpgcheck = 0 [root @ rhel6u3-1 ~] # Yum clean all [root @ rhel6u3-1 ~] # Yum makecache
Step 2: Install the services and software packages required for unattended operation

Including dhcp, xinetd, tftp, nfs, http, system-config-kickstart syslinux

[Root @ rhel6u3-1 Packages] # yum-y install dhcp xinetd tftp-server nfs * httpd syslinux system-config-kickstart // install all required Packages

Check whether the package is successfully installed.

[Root @ rhel6u3-1 Packages] # rpm-qa dhcp // provide network parameters for the pxe Nic and point to the tftp Server File dhcp-4.1.1-31.P1.el6.i686 [root @ rhel6u3-1 Packages] # rpm-qa xinetd // tftp service dependency service xinetd-2.3.14-34.el6.i686 [root @ rhel6u3-1 Packages] # rpm-qa tftp-server // provides the Kernel File tftp-server-0.49-7.el6.i686 required for startup installation [root @ rhel6u3-1 Packages] # rpm-qa nfs-utils/ /provide the nfs-utils-1.2.3-26.el6.i686 of the system files required for installation [root @ rhel6u3-1 Packages] # rpm-qa httpd // provide the unattended kickstat script httpd-2.2.15-15.el6_2.1.i686 required for installation [root @ rhel6u3-1 Packages] # rpm-qa syslinux // provides the pexlinux.0 file syslinux-4.02-7.el6.i686 [root @ rhel6u3-1 Packages] # rpm-qa system-config-kickstart // generate ks. cfg system-config-kickstart-2.8.6.4-1.el6.noarch
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.