Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS-based Kickstart automated installation practice     - Grep how to find files based on file contents in UNIX (Linux)

- Teach you how to ensure password security under the Linux operating system (Linux)

- Composition and dynamic memory allocation C program (Programming)

- Linux in order to make NMAP hide and seek with the firewall (Linux)

- Upgrading to MySQL 5.7 partitioning problem solving (Database)

- Linux kernel RCU (Read Copy Update) lock Brief - prequel (Linux)

- MySQL master-slave delay problem (Database)

- How to use the beta / unstable version of the software in Debian library (Linux)

- IOS interview questions Summary (Programming)

- Sublime Text 3 shortcuts summary (Linux)

- CV: Linux command displays the progress of the run command (Linux)

- When Vim create Python scripts, vim autocomplete interpreter and encoding method (Programming)

- C ++ based foundation: the difference between C and C ++ (Programming)

- Ubuntu install Eclipse can not find JAVA_HOME problem (Linux)

- Ubuntu 14.04 / 14.10 how to install FFmpeg 2.5.1 (Linux)

- Oracle 12C RAC optimizer_adaptive_features cause of data into overtime (Database)

- C # asynchronous delegates (Programming)

- How to monitor network usage by nload in Linux (Linux)

- MySQL fuzzy query: LIKE and REGEXP pattern mode (Database)

- Linux5 install MySQL 5.6 (RPM mode) (Database)

  CentOS-based Kickstart automated installation practice
  Add Date : 2018-11-21      

Because the need to focus on the deployment of CentOS to build Hadoop-based big data platform in the wave of x86 servers, usually contact SLES (SUSE Linux Enterprise Server) and more has been achieved using a CD or PXE-based network automation installation Autoyast way (follow-up will share specific method ). This is mainly achieved by learning Kickstart easiest way to automate the installation CD CentOS, and most online tutorial is not fully applicable to its environment, this article will not go into Kickstart concepts, details refer to further reading.

Kickstart Linux is one of the most versatile automated installation method

Preparing the Environment

Custom Systems


Installation package

Proxy Internet Tips: export http_proxy = ip: port

yum -y install createrepo mkisofs
Production Process

Directory Structure

CentOS mirror copy of the original content, without any streamlining

mkdir / mnt / centos
mount / dev / sr0 / mnt / centos
mkdir / tmp / iso
cp -r / mnt / centos / * / tmp / iso
Increase Kickstart configuration file

File paths and installation can be freely defined

cd / tmp / iso / isolinux
# Modify the boot, watch portions ks =
vi isolinux.cfg

label linux
  menu label ^ Install or upgrade an existing system
  menu default
  kernel vmlinuz
  append initrd = initrd.img ks = cdrom: /isolinux/ks.cfg

Kickstart configuration file manually increase #
vi ks.cfg
#Kickstart File automatically generated by anaconda.
# Version = DEVEL

#Install OS instead of upgrade
# Indicates the installation, not an upgrade

#Use Text mode install
# Text mode installation

#Use Network installation
# Use network installation
#url --url = ftp: // ip / centos
#Local Installation Use CDROM installation media
# Use the installation CD-ROM

#Installation Number configuration
# If the RedHat system, will be asked to enter the key, here, is configured to skip, it will stop if you do not configure the installation where the user enters key requirements
#key -skip

#System Language
# Locales
#lang en_US.UTF-8
lang zh_CN.UTF-8

#System Keyboard
# Keyboard Type
keyboard us

#Network Information
# Network configuration
#network --device eth0 --bootproto dhcp --onboot yes

#Root Password
#root password
rootpw chinaums

#Firewall Configuration
# Disable the firewall
firewall --disabled

#SELinux Configuration
# Disable selinux
selinux --disabled

#Run The Setup Agent on first boot
# Disable When you first start the system settings wizard
firstboot --disable

#System Authorization information
# Configure user authentication, useshadow indicates local authentication, - passalgo the password encryption algorithm
authconfig --enableshadow --passalgo = sha512

#System Timezone
# Set the zone to Shanghai
timezone --isUtc Asia / Shanghai

#System Bootloader configuration
Parameters specified bootloader installation location #, followed by the specified drive sorting, indicating the operating system is installed, passed to the kernel
bootloader --location = mbr --driveorder = sda --append = "crashkernel = auto rhgb quiet"

#Clear The Master Boot Record
# Clear MBR boot record
zerombr yes

#Partition Clearing information
# Erase all data on the hard disk
clearpart --all --initlabel

#Disk Partitioning information
# Custom Partitioning

# Create a 200M size of the partition mounted / boot type as ext4
part / boot --fstype = ext4 --size = 200 --ondisk = sda

# 20000M create a SWAP partition size
part swap --size = 20000 --ondisk = sda

# Create / directory
part / --fstype = ext4 --grow --size = 1 --ondisk = sda

#Reboot After installation
# Set the restart after the completion of
reboot --eject

#This Packages is for CentOS 6.4
# Custom packages to CentOS 6.4
% Packages
@ Chinese-support

# Increase the installation after running the script
% Post
#config service
# Custom Service
service NetworkManager stop
chkconfig NetworkManager off

#eject cdrom
# Installation eject the disc

# After the restart execution
#reboot -f

# End Automated Deployment
% End
Generate dependencies and ISO files

Note that the accuracy of the path and command

cd / tmp / iso
createrepo -g repodata / * comps.xml.
mkisofs -o /tmp/CentOS-6.4_64_auto.iso -b isolinux / isolinux.bin -c isolinux / boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -joliet-long - R -J -v -T / tmp / iso /
- Depth understanding of the use of Spring Redis (Programming)
- RedHat command line and graphical interface switching (Linux)
- Ubuntu configuration SVN and http mode access (Server)
- Linux Apache server configure to protect system security (Linux)
- The easiest 11g Active DataGuard (ADG) to establish the configuration process (Database)
- To install the mail client terminal Evolution 3.13.2 under Ubuntu 14.04 (Linux)
- Zookeeper cluster deployment (Server)
- AFNetworking + Nginx HTTPS communication server + (Server)
- Linux, set and view environment variables (Linux)
- Linux Log Clear (Linux)
- The FreeBSD zfs: failed with error 6 Error Resolution (Linux)
- Docker improve safety (Server)
- CentOS 6.6 install rsync server (Server)
- Linux System Getting Started Learning: The Linux command line burn ISO or NRG image to DVD (Linux)
- Build your own CA services: OpenSSL command line CA Quick Guide (Server)
- Linux System Getting Started Learning: The Linux logrotate (Linux)
- Ubuntu and derivative system users how to install Pinta 1.5 (Linux)
- Installation on Ubuntu class Winamp audio player Qmmp 0.9.0 (Linux)
- Shell commonly commands (Linux)
- Oracle user password problem (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.