Automatic installation system and network installation Services

Source: Internet
Author: User

{unit automatically installs system}

[1.kickstart Script]

Kickstart script is a script file that automatically answers all problems during the installation of the system

This file enables automatic installation of the system

after the system is installed, it will be generated in the root home directory of the system.

Anaconda-ks.cfg This file is the kickstart script generated by this system as a template

[Production of 2.kickstart scripts]

writing Kickstart scripts manually is a lot of difficulty

The System-config-kickstart tool in the system can be made graphically kickstart

(The following operations are in the virtual machine)

Yum Install system-config-kickstart-y * * Installing graphical tools

System-config-kickstart * * Open Graphics KS Authoring tool

Ksvalidator ks.cfg * * Detect KS syntax

[3.kickstart file Sharing]

Yum Install Httpd-y

Systemctl Stop Firewalld

Systemctl Disable FIREWALLD

Systemctl Start httpd

Systemctl Enable httpd

CP ks.cfg/var/www/html

[4. Test KS file]

[Email protected] ~]# virt-install \

>--name kstest \

>--ram 800 \

>--file/var/lib/libvirt/images/kstest.qcow2 \

>--location ftp://172.25.254.250/pub/rhel7.2 \

>--extra-args "ks=http://172.25.254.117/ks.cfg" &

[Additional PXE network installation Services]

1. Corresponding Software Installation

Yum Install DHCP Tftp-server syslinux httpd-y

Systemctl Stop Firewalld

Systemctl Disable FIREWALLD

Vim/etc/xinetd.d/tftp

[disable = yes] ====> [diable = no]

Systemctl Restart xinetd

Systemctl Start httpd

Systemctl Enable httpd

2. Must download and copy files

cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/

Copy all isolinux/* from the installation image to/var/lib/tftpboot/

mkdir/var/lib/tftpboot/pxelinux.cfg/

Cp/var/lib/tftpboot/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default

DHCP configuration file

Vim/etc/dhcp/dhcpd.conf

Subnet 172.25.254.0 netmask 255.255.255.0 {

Range 172.25.254.200 172.25.254.220;

Option routers 172.25.254.254;

FileName "pxelinux.0";

Next-server 172.25.254.13;

}


This article is from the "12106768" blog, please be sure to keep this source http://12116768.blog.51cto.com/12106768/1868648

Automatic installation system and network installation Services

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.