Operation and maintenance automation system installation-answer file making and complete semi-automatic installation with FTP and HTTP

Source: Internet
Author: User
Tags aliyun

How to make the answer file:
Cat/root/anaconda-ks.cfg Reference template for production
Yum install System-config-kickstart use graphical tools for production
System-config-kickstart startup tool to set up
CENTOS6: Place the answer file in shared network access for system installation
Semi-automated installation that relies on CDs and answer files:
(1) Build a shared service to store the answer file on the additional machine
Yum Install vsftpd
Systemctl Start VSFTPD
CP Ks.cfg/var/ftp/pub/ks6-mini.cfg
Vim/var/ftp/pub/ks6-mini.cfg answer File Template
#platform =x86, AMD64, or Intel EM64T
#version =devel
#Firewall Configuration
Firewall--disabled

            #Install OS instead of upgrade Install #Use Network installation URL--url= "http://mirrors.aliyun.com/centos/6/os/x86_64/" #Root password ROOTPW--iscryp  Ted $1$pjz2w0ap$nfqbrmmdre1/yo4ddglbi0 #System Authorization information auth--useshadow            --passalgo=sha512 #Use Text mode install text Firstboot--disable #System Keyboard keyboard US #System language lang en_US # SELinux configuration SELinux--disabled #Installation logging Level Logg                    ing--level=info #Reboot after installation Reboot #System timezone TimeZone Asia/shanghai #Network Information Network--bootproto=dhcp--device=eth0- -onboot=on #SYstem bootloader Configuration bootloader--location=mbr #Clear the Master Boot Record             ZEROMBR #Partition Clearing information clearpart--all--initlabel #Disk Partitioning Information part/--fstype= "EXT4"--size=10240 part/boot--fs Type= "Ext4"--size=500 part swap--fstype= "swap"--size=1024%post Mkdir/roo T/.ssh/cat >/root/.ssh/authorized_keys <<eof ssh-rsa aaaab3nzac1yc2ea aaabiwaaaqearuusgjq6uyn45ld0trifnqyzy5izr6eskjk0dv25eplc7tdhqkh/98waton3l0zym+ v9iwxlg2hcaldm0drervu7yp6q0no9yyu+dgsastvndrnji5b3qrhplvbosbltvqdc9et7txmcp7zmcuh1yqcpsrnf/ dulaeijymtivhg68x0wgpgtpcgsz1ujxs6ho/v8i+3bpnz+w+kmmi9ajcczog9mv7+ Zshaq6hdlmakbosabycdxczj4q5eutpjap0nk6nksvi6tpu+o7gld1ujf4quxngmcp79erp+txcveujga3jp0tdgyxvu4fdw8rppnfxvejd+           kt00yxlmzew== [email protected]         EOF chmod 600/root/.ssh/authorized_keys cat >/etc/yum.repos.d/base.rep o <<eof [Hello] name=base_centos6 BASEURL=HTTPS://MIRRORS.A                    Liyun.com/centos/6/os/x86_64/gpgcheck=0 EOF Useradd Wang                    Echo 123789|passwd--stdin Wang &>/dev/null%end%packages @core @server-policy @workstation-policy Vim-enhanc Ed Lrzsz%end (2) answer file see the Linux data in the PXE data (3) Create the virtual machine, set the network mode (4) Press ESC to enter the CD Launcher interface (5 Press the TAB key to enter the option settings interface (6) Add option ks=ftp://192.168.43.60/pub/ks6-mini.cfg ip=192.168.43.52 netmask=255.255.2 55.0 CENTOS7: Share the KS file and ISO image warehouse to the same HTTPD service directory to install the system using the System-config-kickstart tool to create an answer file that will not be available for selection                Information for the installed package:You need to change the base repository name to development and then restart the System-config-kickstart program to get the Yum install httpd systemctl start httpd cd/var/www/html/mkdir ks mkdir centos/7-PV vim Ks/ks7                        -desktop.cfg Edit Answer File #version =devel # System Authorization information                        Auth--enableshadow--passalgo=sha512 # use CDROM installation media URL--url=http://192.168.43.60/centos/7/#cdrom # use graphical I  Nstall Text #graphical # Run the Setup Agent on first  Boot Firstboot--disable ignoredisk--ONLY-USE=SDA #                        Keyboard layouts Keyboard--vckeymap=us--xlayouts= ' Us ' # System language LaNg en_US. UTF-8 selinux--disabled Firewall--disabled # networ                        K Information Network--bootproto=dhcp--device=ens33--onboot=on--ipv6=auto--activate Network--hostname=centos7.yongstar.tech # root password root PW--iscrypted $6$urjjrqhwvrhbaask$z/4yajrvyaxxtxgp2q7c0iu0wyn6wgo8imm8kh6kgvkkpdxkxt8nolw.igtbeo/npimgvc0h/                        p3lb0gcxcoqp/# System Services Services--disabled= "Chronyd" # System TimeZone timezone Asia/shanghai--isutc--nontp user--nam E=wang--password=$6$llulhdzmw4jlo7gx$ 8lzgrcv.0f8aiqkiuf.tcfqtcufd4ig5smtp6nnqicsesbb88viclk1tol.bu7pj4vrktnvszkqlo3hh6tgou/--iscrypted--gecos= "Wang        "# X Window System configuration information xconfig--startxonboot                # System bootloader configuration bootloader--append= "Crashkernel=auto"--locatio N=MBR--BOOT-DRIVE=SDA part swap--fstype= "swap"--ONDISK=SDA--size=2048 PA                        Rt/boot--fstype= "XFS"--ONDISK=SDA--size=1024 part/--fstype= "XFS"--ondisk=sda--size=51200                        Part/app--fstype= "XFS"--ondisk=sda--size=20480 #autopart--TYPE=LVM # Partition Clearing Information zerombr clearpart--all--                         Initlabel%packages @^gnome-desktop-environment @base                        @core @desktop-debugging @directory-client @fonts @gnome-apps @gnome-desktop @gues                T-agents        @guest-desktop-agents @input-methods @internet-browser                        @network-file-system-client @networkmanager-submodules @x11 %end%addon com_redhat_kdump--enable--reserve-mb= ' auto '% End%anaconda Pwpolicy root--minlen=6--minquality=1--notstrict--nochange                        s--notempty pwpolicy user--minlen=6--minquality=1--notstrict--nochanges--emptyok                        Pwpolicy luks--minlen=6--minquality=1--notstrict--nochanges--notempty%end %post mkdir/root/.ssh/cat >/root/.ssh/authorized_keys & Lt;<eof Ssh-rsa aaaab3nzac1yc2eaaaabiwaaaqearuusgjq6uyn45ld0trifnqyzy5izr6eskjk0dv25eplc7tdhqkh/ 98waton3l0zym+v9iwxlg2hcaldm0drervu7yp6q0no9yyu+dgsastvndrnji5b3qrhplvbosbltvqdc9et7txmcp7zmcuh1yqcpsrnf/ dulaeijymtivhg68x0wgpgtpcgsz1ujxs6ho/v8i+3bpnz+w+kmmi9ajcczog9mv7+ Zshaq6hdlmakbosabycdxczj4q5eutpjap0nk6nksvi6tpu+o7gld1ujf4quxngmcp79erp+txcveujga3jp0tdgyxvu4fdw8rppnfxvejd+ kt00yxlmzew== [email protected] EOF chmod 600/root/.ssh/authorized_key                        S cat >/etc/yum.repos.d/base.repo <<eof [Hello]                        Name=base_centos7 baseurl=https://mirrors.aliyun.com/centos/7/os/x86_64/ Gpgcheck=0 EOF Useradd Wang Echo 123789|passwd--st                Din Wang &>/dev/null%end chmod 644 ks/ks7-desktop.cfg Set readable permissions Yum install Pykickstart The syntax of the Ksvalidator ks/ks7-desktop.cfg detection answer file that detects the syntax of the answer file mount/d Ev/sr0 CentOS/7/mount ISO file to directory to share if no disc device: CP/DEV/SR0 centos7.iso making ISO image file Mount Centos7.iso centos/7/mount ISO file to directory currently this experiment also needs to mount the CD-ROM boot installation system

Operation and maintenance Automation system installation-answer file making and complete semi-automatic installation in conjunction with FTP and HTTP

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.