Use Kickstart to create an automatic installation disc for RHEL6

Source: Internet
Author: User

Everyone must know about PXE + FTP + DHCP + TFTF + Kickstart to implement one-click Network installation system! If you do not know how to build the Rhel6.0 system, you can refer to the author's article to use Kickstart to implement unattended installation of the Rhel6.0 system. If you already know about it, this article uses kickstart to create an automatically installed iso image, to use kickstart to automatically install an iso image, perform the following steps.

I. Prepare an iso image for installing the system. The author uses the rhel6 system as an example.
[Root @ localhost/] # mkdir-p/opt/rhel6
[Root @ localhost/] # mount/dev/cdrom/media
[Root @ localhost/] # cp-ASON/media/./opt/rhel6 // parameter-a indicates that the permission remains unchanged

2. Create the ks. cfg file, that is, the configuration file produced by kickstart.
Enter system-config-kickstart in the command line to open the kickstart Configuration Wizard.
[Root @ localhost/] # system-config-kickstart
NOTE: If system-config-kickstart is installed, run yum-y install system-config-kickstart.
For specific configuration methods, refer to the author's article and use Kickstart to implement unattended installation of Rhel6.0 System
NOTE: For the installation method options, select cdrom instead of ftp or others. The/boot partition should be at least 200 MB.

3. Copy the ks. cfg file to the system image directory and modify the isolinux. cfg configuration file.
[Root @ localhost/] # cp/root/ks. cfg/opt/rhel6/isolinux/
[Root @ localhost/] # vim/opt/rhel6/isolinux. cfg

... // Omit Part of the content
22 append ks = cdrom:/isolinux/ks. cfg initrd = initrd. img

4. Compile the iso. sh script to produce the iso file.

Before writing an iso. sh script, check whether the system has installed software such as genisoimage or mkisofs.
[Root @ localhost/] # vim/opt/iso. sh
#! /Bin/bash
MKISO = 'which genisoimage 2>/dev/null' | MKISO = 'which mkisofs 2>/dev/null' | {
Echo "Sorry, you don't have genisoimage or mkisofs installed ."
Exit 1
}
$ MKISO-v-R-J-joliet-long-uc-level 3-input-charset utf8 \
-Publisher "up14"-p "sysdengqi@163.com"-V "rhel6.1 _ x86_64 "\
-C boot. cat-hide boot. cat-B isolinux/isolinux. bin \
-No-emul-boot-load-size 4-boot-info-table \
-O/opt/rhel6.iso/opt/rhel6
Note: Fill in the last line in the script according to your actual directory.
[Root @ localhost/] # cd/opt/
[Root @ localhost opt] # chmod + x iso. sh
[Root @ localhost opt] #./iso. sh
... // Omit Part of the content
Total translation table size: 2048
Total rockridge attributes bytes: 388720
Total directory bytes: 600064
Path table size (bytes): 254
Done with: The File (s) Block (s) 1674886
Writing: Ending Padblock Start Block 1675418
Done with: Ending Padblock Block (s) 150
Max brk space used 3a1000
1758181 extents written (3272 MB)
If the preceding information is displayed, the iso image file is successfully created.

5. Install the system.

The preceding four steps have completed the configuration of an iso image for one-click rhel6 installation. Now we need to test whether the iso image file is available. We can use a virtual machine for testing and create a new virtual machine, use rhel6.iso for installation. After the installation interface is displayed, you need to wait about 60 seconds to start automatic installation. If you do not need other operations, it will be automatically installed. After the test is complete, burn the iso into a CD. If an automatic installation CD is complete, is it easy!

Use PXE + DHCP + Apache + Kickstart to install CentOS5.8 x86_64

Kickstart fully automated installation of CentOS 6.3

Linux Installation notes on Kickstart

PXE/Kickstart remote automatic installation of RedHat Linux

DHCP + TFTP + HTTP + Kickstart automatic server 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.