First Unit
Install Red Hat Enterprise Linux automatically
a Kickstart overview
1. Using kickstart, the system administrator can create a file that contains answers to all common problems during installation to automatically install Red Hat Enterprise Linux
2.kickstart is similar to an unattended installation of Jumpstart or Microsoft Windows in Oracle Solaris
two Kickstart production tool installation
1 Package: System-config-kickstart
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/91/CE/wKiom1j4b5iDsQwnAAFFLdb-9I0496.png "title=" 1.png "alt=" Wkiom1j4b5idsqwnaaffldb-9i0496.png "/>
2 Installation: Yum install System-config-kickstar
three creating a Kickstart file
(1) Using the System-config-kickstart tool:
1 Basic configuration: General Information settings
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/91/CE/wKiom1j4b9DhXqEgAADiW6YFqJE013.png "title=" 3.png "alt=" Wkiom1j4b9dhxqegaadiw6yfqje013.png "/>
Encrypt root password: Encrypt the password
2 Installation Method: Installation mode selection
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/91/CE/wKiom1j4b-TivrHIAACzKlH34Ns005.png "title=" 4.png "alt=" Wkiom1j4b-tivrhiaaczklh34ns005.png "/>
3 boot loader options: Boot program option
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/91/CD/wKioL1j4cBGAwd7lAADXhcVKeOU454.png "title=" 5.png "alt=" Wkiol1j4cbgawd7laadxhcvkeou454.png "/>
4 Partition information: Partitioning strategy
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/91/CE/wKiom1j4cCfwCQvdAADjtidHGY0024.png "title=" 6.png "alt=" Wkiom1j4ccfwcqvdaadjtidhgy0024.png "/>
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/91/CE/wKiom1j4cEmCqDMUAACYeRbchPs775.png "title=" 7.png "alt=" Wkiom1j4cemcqdmuaacyerbchps775.png "/>
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/91/CD/wKioL1j4cGCgpopSAACYVYT00uQ611.png "title=" 8.png "alt=" Wkiol1j4cgcgpopsaacyvyt00uq611.png "/>
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/91/CD/wKioL1j4cG3wsuaVAACWXeAswoI257.png "title=" 9.png "alt=" Wkiol1j4cg3wsuavaacwxeaswoi257.png "/>
5 Network configuration:: Networking Settings
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/91/CD/wKioL1j4cS6zaBj-AADYgbBiqO0262.png "title=" 10. PNG "alt=" Wkiol1j4cs6zabj-aadygbbiqo0262.png "/>
6 Authentication: Authentication Encryption method
7 Firewall configuration: Firewall information
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/91/CD/wKioL1j4cUTQ33hQAACqFaXCiCE158.png "title=" 11. PNG "alt=" Wkiol1j4cutq33hqaacqfaxcice158.png "/>
8 Display configuration: Graphical interface selection
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/91/CE/wKiom1j4cVnQd6fQAACEerVeRK0735.png "title=" 12. PNG "alt=" Wkiom1j4cvnqd6fqaaceerverk0735.png "/>
9 Package Selection: Packages selection
Pre-installation: Execute script before installation
Post-Installation: Execute script after installation
--> file--> Save--> FileSystem--> name (can be changed)-->/var/www/html/
under/var/www/html/, there is a ks.cfg file that indicates in what way, where to install, what package to install, and so on.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/91/CE/wKiom1j4cX-y6XPdAACsTl15VD8787.png "title=" 13. PNG "alt=" Wkiom1j4cx-y6xpdaacstl15vd8787.png "/>
Vim/var/www/html/ks.cfg
under the Ks.cfg file, add the following: Indicates the software to be installed at the time of installation
%packages: Installation Package
@base: The @ symbol represents a set of RPM packages, the list of software to be installed for each set of packages
GCC: Editor
%end: End of purpose
: Wq
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/91/CE/wKiom1j4cbmyKCJAAADA5o7g-ac436.png "title=" 15. PNG "alt=" Wkiom1j4cbmykcjaaada5o7g-ac436.png "/>
Vim/bin/vrit_create.sh: Write automatic installation script
chmod +x/virt_create.sh
test:virt_create/sh Redhat to see if it can be installed automatically Redhat
If you do not have a DHCP server, you cannot install it because you cannot get IP, you can download a DHCP, configure the DHCP configuration file, and then open the DHCP service
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/91/CE/wKioL1j4cgWAeMTmAADc_p7i7PQ598.png "title=" 18. PNG "alt=" Wkiol1j4cgwaemtmaadc_p7i7pq598.png "/>
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/91/CE/wKioL1j4cjPDTWy-AABVBnp9IcE976.png "title=" 17. PNG "alt=" Wkiol1j4cjpdtwy-aabvbnp9ice976.png "/>
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/91/CE/wKiom1j4cmbDQM0lAABve1oTT28466.png "title=" 19. PNG "alt=" Wkiom1j4cmbdqm0laabve1ott28466.png "/>650) this.width=650; src=" https://s3.51cto.com/wyfs02/M02/91/ Cf/wkiom1j4cstafygcaacam785fiq183.png "title=" 20.png "alt=" Wkiom1j4cstafygcaacam785fiq183.png "/>650) this.width=650, "src=" Https://s4.51cto.com/wyfs02/M00/91/CE/wKioL1j4cuTjPBf3AABPKBxPWro677.png "title=" 21.png " alt= "Wkiol1j4cutjpbf3aabpkbxpwro677.png"/>
(2) using a text editor:
-Template:/root/anaconda-ks.cfg
-Use ksvalidator command to verify correctness after editing
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/91/CE/wKioL1j4cdqQJnWuAABp-zUZwuM986.png "title=" 16. PNG "alt=" Wkiol1j4cdqqjnwuaabp-zuzwum986.png "/>
four Kickstart file parameters
%end: End of purpose
%packages: Installation Package
%pre: Execute script before installation
%post: Execute script after installation
URL: Installation Source path
Repo Yum: Source Address
Text: Installation
VNC: Enable VNC during installation
Askmethod: Interactive mode
Clearpart: Deleting partitions
Part: Partitioning Policy
Ignoredisk: Skipping a disk
Bootloader: Boot program settings
VOLGROUP:LVM Group settings
LOGVOL:LVM settings
ZEROMBR: Empty MBR
Network: Network Settings
Firewall: Firewall settings
Lang: Language Settings
Keyboard: Keyboard settings
TimeZone: Time zone setting
Auth: Selection of authentication methods
Rootpw:root Password
Selinux:selinux settings
Services: Boot-up service
Group, User: Build
Logging: Setup Log settings
Firstboot: First boot setting
Reboot, Poweroff, halt: Installation Complete action
five providing kickstart files for the Setup program
1 network servers: FTP, HTTP, and NFS
2 DHCP/TFTP Server
3 USB disk or CD-ROM
4 Local Disk
six creating the boot media
1 installation disk
2 PXE
3 Boot.iso
Seven making the installer point to the kickstart file
1 ks=http://server/dir/file
2 Ks=ftp://server/dir/file
3 Ks=nfs:server:/dir/file
4 Ks=hd:device:/dir/file
5 Ks=cdrom:/dir/file
Install Red Hat Enterprise Linux automatically