Unit 1 Kickstart

Source: Internet
Author: User

Unit 1

# # # # #1. Kickstart script

Kickstart script is a script file that automatically answers all problems during the installation of the system

This file enables automatic installation of the system

after the system is installed, it will be generated in the root home directory of the system.

Anaconda-ks.cfg This file is the kickstart script generated with this system template

# # # #2. Kickstart script Creation

It's hard to write kickstart manually .

The System-config-kickstart tool in the system can be made graphically kickstart

Yum Install System-config-kickstart-y # #安装图形制作工具

System-config-kickstart # #打开图形ks制作工具

Ksvalidator ks.cfg # #检测ks语法

# # # #3. Kickstart file shares

Yum Install Httpd-y

Systemctl Stop Firewalld.service

Systemctl Disable Firewalld.service

Systemctl Start httpd

Systemctl Enable httpd

CP ks.cfg/var/www/html

# # # #4. Test KS file

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/A9/wKiom1gZXHWhcWHpAADTzU2rxiU569.png-wh_500x0-wm_3 -wmp_4-s_1629232443.png "title=" 3.png "alt=" Wkiom1gzxhwhcwhpaadtzu2rxiu569.png-wh_50 "/>

# # # #5. Additional PXE network installation Services

1. Corresponding Software Installation

Yum Install DHCP Tftp-server syslinux httpd-y

Systemctl Stop Firewalld.service

Ststemctl Disable Firewalld.service

Vim/etc/xinetd/tftp

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/A7/wKioL1gZXKjRF-XzAAAiltPCePQ069.png-wh_500x0-wm_3 -wmp_4-s_2597042426.png "title=" 4.png "alt=" Wkiol1gzxkjrf-xzaaailtpcepq069.png-wh_50 "/>

Systemctl Restart xinetd

Systemctl Start httpd

Systemctl Enabel httpd

2. Must download and copy files

cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/

Copy all isolinux/* from the installation image to/var/lib/tftpboot/

Mkdir/var/lib/tftpboot/pxelinux.cfg

Cp/var/lib/tftpboot/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default

Configuration of the 3.DHCPD service

Subnet 172.25.254.0 netmask 255.255.255.0 {

Range 172.25.254.200 172.25.254.220;

Option routers 172.25.254.254;

FileName "pxelinux.0";

Next-server 172.25.254.100;

}


This article from "12110289" blog, declined reprint!

Unit 1 Kickstart

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.