each time you install CentOS, you need the mouse to check the configuration. A machine installation can also accept, if there are more than one, it is not good, the following is the introduction of the CentOS FTP form unattended installation
# Kickstartfileautomatically generated by Anaconda. #version=DEVELInstallURL--url=FTP://192.168.1.103/pub/centos # Configuring the Installation Tree directory This article has been FTP modeLang en_US. utf-8keyboard Usnetwork--onboot No--device eth0--mtu= the--bootproto DHCP--Noipv6 # DHCP method get IPROOTPW--iscrypted $6$RyFEkouZJLufDNGf $polwfvq2chw2by1qvgfzx6hox1csrgvaifo03zec0urqnupt.el3fg50b4i3pqrrmfzjqpdw8bypte0shmzyi.# Reboot after Installationrebootfirewall--service=SSHauthconfig--enableshadow--passalgo=Sha512selinux--Enforcingtimezone--UTC asia/Shanghai # Default time zone bootloader--LOCATION=MBR--DRIVEORDER=SDA--append="crashkernel=auto rhgb rhgb quiet Quiet"# The following is the partition information you requested# Note This any partitions you deleted be not expressed# he Re so unlessClearAll partitions First, this is# not guaranteed to Workclearpart--all--drives=SDA # Delete disk part/boot--FSTYPE=EXT4--size= -# boot partition part/--FSTYPE=EXT4--size= the# split root partition part swap--grow--maxsize=1024x768--size=1024x768# Swap partition can use ' part swap '--recommended ' recommended repo--name="CentOS"--baseurl=FTP://192.168.1.103/pub/centos--cost=1000 # Mirror source, including all packages%packages--Nobase@core # Core Pack, you can add multiple%End%PostYum Install-y Vim # automatic script execution after installation can be written according to your own definition%end
Configuration parameters are many, only a little more detailed can refer to the official website CentOS Kickstart can also be a software automatically generated ks.cfg files, search packages yum search kickstart
out of two Pykickstart|system-config-kickstart installation can be
CentOS Unattended Installation (FTP mode)