CentOS Unattended Installation (FTP mode)

Source: Internet
Author: User

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
    • Test environment

      • 2 sets of machines
        • Machine 1:ip 192.168.1.103/24 ran VSFTPD service, and shared/var/ftp, directory contents
          1. Ks.cfg CentOS Kickstart profile [is the configuration file installed, each time the system is installed, it will generate/ROOT/ANACONDA-KS.CFG]
          2. pub/centos/* copy of all content in the CentOS CD [theory can be hung, but the experiment hangs on No, can't read the file]
        • Machine 2 only need to put in the CentOS CD, boot and press ESC, enter the command Linux ks=ftp://192.168.1.103/ks.cfg can be completed
    • Ks.cfg configuration file Detailed

# 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)

Related Article

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.