Second book the first unit * Automatic installation system *

Source: Internet
Author: User

Unit1. Automatic Installation System * * * *

1.kickstart Scripting * * * *

Kickstart script is a scripting problem that automatically answers all problems in the installation process 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 by this system as a template

Production of 2.kickstart scripts * * *

It's hard to write kickstart manually.

The Systemc-config-kickstart tool in the system can be made by graphic method kickstart

Yum Install system-config-kickstart-y/* Installation of the Graphics authoring tool

System-config-kickstart/* Open Graphics KS Authoring tool

Ksvalidator ks.cfg/* Detect KS syntax

3.kickstart file Sharing *********

Yum Install Httpd-y

Systemctl Stop Firewalld.service

Systemctl Disable Firewalld.service

Systemctl Start httpd

Systemctl Enable httpd

Systemctl start DHCPD

CP ks.cfg/var/www/html

4. Test KS File * * *

Zhe#!/bin/bash

Virt-install \

--name \

--ram 800 \

--FILE/VAR/LIB/LIBVIRT/IMAGES/$.QCOW2 \

--file-size 8 \

--location ftp://172.25.254.250/pub/rhel7.2 \/* (ISO source)

--extra-args "Ks=http://172.25.254.133/ks.cfg" &/* (ks.cfg Source)

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/89/BC/wKioL1gbLIHjzzUsAACK1XzgLO0374.jpg "title=" Img_ 20161029_230836.jpg "alt=" Wkiol1gblihjzzusaack1xzglo0374.jpg "/>

Note: DHCP is not open

********* additional PXE network installation service ******** /**** If the specified interface cannot be reached, the default is mostly not configured.

1. Corresponding Software Installation

Yum Install DHCP Tftp-server syslinux httpd-y

Systemctl Stop Firewalld.service

Systemctl Disable Firewalld.service

Tftp.service is a static (uncontrolled)

Vim/etc/xinetd.d/tftp

[disable=yes]======>[disable = no]

Systemctl Restart xinetd

Systemctl Start httpd

Systemctl enble 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.50.0 netmask 255.255.255.0{

Range 172.25.50.200 172.25.50.220;

Option routers 172.25.50.250;

FileName "pxelinux.0";

Next-server 172.25.50.10;/*pxelinux.0 file on that host, write that host IP.

}

Setting up the network in/var/lib/tftpboot/pxelinux.cfg/default

Label Linux

Menu Label ^install Red Hat Enterprise Linux 7.1

Menu default

Kernel Vmlinuz

Append initrd=initrd.img repo=http://172.25.50.250/rhel7.1 ks=http://172.25.50.10/ks.cfg

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/89/BC/wKioL1gbLP6y1kmGAACZa6pmmsk203.jpg "title=" Img_ 20161031_180054.jpg "alt=" Wkiol1gblp6y1kmgaacza6pmmsk203.jpg "/>

/**** If there is a problem with the installation process (not source installition) This is a KC.FCG problem.

Second book the first unit * Automatic installation system *

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.