Brief introduction:
The learning content recorded in this session is to automate the installation of CentOS by reading the Kickstart configuration file through the Anaconda program. As a learning operator, I think it is very necessary to learn this skill.
Kickstart configuration file Composition: (self-viewing/boot/anaconda-ks.cfg)
Command segment: Set some basic functions (time zone, keyboard type, etc.)
Package segment: Indicates which package or package group to install (package group name starts with @)
Script segment:
%pre: Pre-installation script: The Linux environment is not complete at this time, so the script should be set up relatively simple.
%post: Post-installation script: The Linux environment is complete at this time.
How to configure Kickstart:
1. Manually edit the configuration file
2. System-config-kickstart with graphical tools (installation required)
Install System-config-kickstart:
# yum Install System-config-kickstart
Run System-config-kickstart:
# System-config-kickstart
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6B/FD/wKioL1U9Dv-RtNi0AAMfHtfxH5s953.jpg "title=" 222. JPG "alt=" wkiol1u9dv-rtni0aamfhtfxh5s953.jpg "/>650) this.width=650; src=" Http://s3.51cto.com/wyfs02/M01/6B/FD /wkiol1u9en6xhjopaaixvqgyfqy675.jpg "title=" 88.jpg "alt=" wkiol1u9en6xhjopaaixvqgyfqy675.jpg "/>650) this.width= 650; "Src=" http://s3.51cto.com/wyfs02/M02/6B/FD/wKioL1U9EBLisQSjAAJQP1uUg7g176.jpg "title=" 444.jpg "alt=" Wkiol1u9eblisqsjaajqp1uug7g176.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/01/wKiom1U9DynBVl2aAALRk1kPVZ4181.jpg "title=" 555. JPG "alt=" wkiom1u9dynbvl2aaalrk1kpvz4181.jpg "/>
You can also modify it according to the existing configuration file:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/01/wKiom1U9EAbzdoQcAAPhPGaUsTQ241.jpg "title=" 666. JPG "alt=" wkiom1u9eabzdoqcaaphpgaustq241.jpg "/>650) this.width=650; src=" http://s3.51cto.com/wyfs02/M02/6C/01 /wkiom1u9egpsmxazaanudde2dna772.jpg "title=" 77.jpg "alt=" Wkiom1u9egpsmxazaanudde2dna772.jpg "/>
To create a boot installation CD step:
1. Mount the system CD cd1-->
2. Copy the Isolinux to the/tmp/cdrom-->
3. Copy the Kickstart file Ks.cfg created above to/tmp/cdrom
4. Edit/tmp/dvd/isolinux/isolinux.cfg. The append instruction after a label is appended with the KS=CDROM:/KS.CFG information to enable the automatic invocation of the KS file provided on the disc--
5. Create the image, and execute it in the/tmp/directory:
# mkisofs-r-j-t-v--no-emul-boot--boot-load-size 4--boot-info-table-v "CentOS boot Disk"-B isolinux/isolinux.bin-c Isolinux/boot.cat-o/root/boot.iso cdrom/
End: Export Boot.iso, you can now install the production of the iOS boot CD-ROM, began to automatically installed.
This article is from the "Linux" blog, so be sure to keep this source http://laoliao.blog.51cto.com/10027070/1638896
Using Kickstart for CentOS automated installation-My Learning record