Kickstart unattended installation Linux 7.6

# kickstart unattended installation Oracle Linux 7.6 ** This article is as follows **> Download the mirror file can be transmitted via the HTTP service through the HTTP service. 1. Introduction to the Kickstart architecture. 1. Install Kickstart needs to rely on service packages. 2. Copy requires all files to all files to the HTTP service directory. 3. Configure the TFTP-related configuration and copy the startup file. 4. Configure the unattended launch menu. 5. Configure the DHCP server. 6. Write a Kickstart profile. 7. Start all services, and install the ## 1. Architecture introduction 1. ** PXE client Send UDP broadcast request ** PXE client starts from its own PXE network card, will be UDP with UDP via PXE Bootrom Simple User Data News Agreement Sends a broadcast request to request IP to the DHCP server in this network. 2. ** DHCP server provides information ** DHCP server receives the client’s request, verify that it comes to the legal PXE client request, verify that it will give the client a “provider” response, this “provider” in the response contains The IP address, the PXELinux launcher (TFTP) location assigned to the client, and the location where the configuration file is located. 3. ** PXE client requests Download Start File ** After receiving the “response” of the server, it will respond to a frame to request the transfer to start the desired file. These startup files include: pxelinux.0, pxelinux.cfg / default, vmlinuz, initrd.img, etc. 4. ** TFTP server responds to the client request and transmits the file ** After the server receives the client’s request, there will be more information to respond between the client and the server to determine the startup parameters. BootRom is downloaded from the TFTP server from the TFTP server (pxelinux.0, pxelinux.cfg / default). After the DEFAULT file is downloaded, the boot kernel of the Linux installer is started based on the boot order defined in the file. 5. ** Request Download Auto Answer File ** The client successfully installed the kernel through the pxelinux.cfg / default file, the installer first must determine what you install Linux, if it is installed through the network (NFS, FTP, HTTP), will initialize the network at this time and position the installation source location. Then read the location of the auto answer file Ks.cfg specified in the DEFAULT file, requesting the file based on the location. 6. ** Client installation operating system ** After downloading the ks.cfg file, find the HTTP image by this file, and download the package required by the installation process according to the configuration of the file. After the HTTP mirroring and client establish a connection, the package will start the package, and the client will begin to install the operating system. After the installation is complete, you will be prompted to reboot your computer. ## 2. Kickstart Configuration Profile> Kickstart Server can be Windows or Linux, this article describes the configured Kickstart server under Linux, and the DHCP server and the HTTP / FTP / TFTP server may not be configured in one server.

### 2.1 Configuring Local YUM Source Install Kickstart Server Requires Package> DHCP with TFTP, HTTP Services in a Server “ `SHELL # Cat

//192.168.204.231/oel7eof“ ### 2.4 Kickstart Profile Sample ** Method 1 ** Each CentOS installer creates a Kickstart profile for each installation, record your true installation configuration. If you want to implement and install a system, you can generate your own Kickstart profile based on the Kickstart profile of the system. (The generated file name is anaconda-ks.cfg located in /root/anaconda-ks.cfg) ** Method 2 ** CentOS provides a graphical Kickstart configuration tool. To run the tool on any installed Linux system, you can easily create your own Kickstart profile. The Kickstart Configuration Tool Command is redhat-config-kickstart (rhel3) or system-config-kickstart (rhel4, rhel5). ** Method 3 ** Read the Kickstart Profile Manual. You can create your own Kickstart profile with any text editor. ** Method 4 ** Red Hat can generate a configuration file> Profile example with https://access.redhat.com/Labsinfo/kickstartconfig, Ks.cfg name is custom, you can modify it yourself, only need to be with / var /lib/tftpboot/oel7/pxelinux.cfg/default file specified in the specified consistency.

“ `shell # ks.cfg, kickstart profile # Cat Base.repoecho -e” baseurl = file: ///mnT “>> Base.repoecho -e” enabled = 1 “>> base.repoecho -e” gpgcheck = 0 “>> base.repo% end% packages @ ^ minimal @ compat-libraries @ debugging @ developmentsysstatlrzsztelnetwgetvimmakenet-tools% endEOF / * verify that the ks.cfg file has a syntax error # ksvalidator / var / www / html / oel7 / ks. CFG“ ### 2.5 DHCP Server “ “ “ “ s * Note: When configuring DHCP, you can configure the network card that can be configured, specify the listening network card / * DHCPDARGS = Eth1 # Specify the listener network card # Cat <> / etc / dhcp / DHCPD.CONFSUBNET 192.168.204.0 Netmask 255.255.255.0 {Range 192.168.204.100 192.168.204.200; #DHCP service to allocate the IP range of the client. #option domain-name-servers 8.8.8.8; #dns #option domain-name “Internal. Example.org “; Option Routers 192.168.204.1; # Gateway Option Subnet-Mask 255.255.255.0; Option Broadcast-Address 192.168.204.255; # ¹ã ¹ã d dLT-Lease-Time 21600;