Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS-based Kickstart automated installation practice     - Fedora 22 install Adobe Flash Player (Linux)

- RegExp object implements regular match --JavaScript (Programming)

- MySQL management partition table (Database)

- Red Hat Linux mount U disk (Linux)

- Spring Boot + Nginx + Tomcat + SSL configuration notes (Server)

- Ubuntu 14.10 / 14.04 how to install Quick Start tool Mutate 2.2 (Linux)

- The AWK use Cygwin tools mysql binlog log viewer (Database)

- Wi-Fi hackers use to attack your seven methods (Linux)

- Oracle study notes view (Database)

- Windows 7 hard disk to install Ubuntu 15.04 (Linux)

- Swift string common method (Programming)

- How to cool down your Ubuntu system (Linux)

- CentOS7 install JDK (Linux)

- Towards Docker (Server)

- Java data structures - the single linked list LinkedList linear table (Programming)

- Log device files under Linux - logger (Linux)

- Android Custom View step (Programming)

- How to handle special characters in JSON (Programming)

- How to configure security services under Linux (Linux)

- C ++ multithreading and critical resource instance (Programming)

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

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

CentOS-6.4-x86_64

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
install

#Use Text mode install
# Text mode installation
text

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

#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
@base
@core
@ 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
#eject

#reboot
# 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 /
     
         
         
         
  More:      
 
- Installation of Theano + CUDA under Ubuntu (Linux)
- Mac OS X system setup Google Go language development environment configuration tool Sublime Text 2 (Linux)
- Ubuntu deployed under regular tasks with crontab (Linux)
- Linux installed Cisco Packet Tracer (Linux)
- DB2 table space is redirected to restore the database combat (Database)
- Doubly linked list basic operations (Linux)
- Shell programming entry (Programming)
- ORA-38856: Unable instance UNNAMED_INSTANCE_2 (redo thread 2) marked enabled (Database)
- Linux --- file descriptors and redirection (Linux)
- Oracle database online redo logs are several methods of recovery of deleted (Database)
- CentOS yum configuration under local sources (Linux)
- PHP generates a random password several ways (Programming)
- Ubuntu 14.04 next upgrade to GNOME 3.12 (Linux)
- Java Concurrency: synchronized (Programming)
- Linux System Getting Started Tutorial: How to find the maximum memory your system supports (Linux)
- Oracle 12c users create (Database)
- Ubuntu System Log Configuration / var / log / messages (Linux)
- Linux fast set ip bond (Linux)
- To_explore Linux system boot process (Linux)
- How to configure HTTP Strict Transport Security (HSTS) (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.