centos6.6 Kickstart Unattended Installation (ii): Configuration Chapter A

Source: Internet
Author: User

Environment Description:
Kickstart Server System: Server-centos 6.6 Final
IP Address: 172.100.11.231
Subnet Mask: 255.255.255.0
Gateway: 172.100.11.1
Linux system to install deployment: CentOS 6.6

Configuration Prelude:First, close SELinux
vi /etc/selinux/configSELINUX=disable :wq!  #以上步骤是为了让selinux重启后禁用setenforce 0 #使配置立即生效,本次,及时。
Second, service iptables stopTo install a DHCP server:Download DHCP:
yum install dhcp -y  
Configure DHCP:
vi /etc/dhcpd.conf  添加下面信息:ddns-update-style interim;ignore client-updates;allow booting; #定义能够PXE启动allow bootp;  #定义支持bootpsubnet 172.100.11.0 netmask 255.255.255.0 {    range  172.100.11.70 172.100.11.80; #dhcp客户端获取ip的范围    option routers                  172.100.11.1;#网关    option subnet-mask          255.255.255.0;#掩码    default-lease-time 21600;    max-lease-time 43200;    next-server 172.100.11.231; #TFTP Server的IP地址,本机ip    filename "pxelinux.0";   #pxelinux启动文件位置,后面会介绍}
To start the DHCPD service:
service dhcpd start  
TFTP server:TFTP installation:
TFTP configuration:

The TFTP service is managed by the XINETD service. Edit the '/etc/xinetd.d/tftp ' File and change ' disable = Yes ' to: Disable = No.

[[email protected] Server]# vi /etc/xinetd.d/tftp# default: off# description: The tftp server serves files using the trivial file transfer #       protocol.  The tftp protocol is often used to boot diskless #       workstations, download configuration files to network-aware printers, #       and to start the installation process for some operating systems.service tftp{        socket_type             = dgram        protocol                = udp        wait                    = yes        user                    = root        server                  = /usr/sbin/in.tftpd        server_args             = -s /tftpboot        disable                 = no        per_source              = 11        cps                     = 100 2        flags                   = IPv4}
To start the TFTP service:

/var/lib/tftpboot is the root location of the TFTP server, and the XINETD service is restarted after the configuration is complete, allowing the TFTP server to take effect. (CentOS 6.x)
/tftpboot is the root location of the TFTP server, and the XINETD service is restarted after the configuration is complete, allowing the TFTP server to take effect. (CentOS 5.x)

/etc/init.d/xinetd restart
PXE boot configuration (bootstrap)pxelinux.0

The PXE boot image file is provided by the Syslinux package, and if it is not found: pxelinux.0 can be generated under installation.

yum install -y syslinux

As soon as the syslinux is installed, a pxelinux.0 is generated and the pxelinux.0 file is copied to the '/var/lib/tftpboot ' directory:

find / -name "pxelinux.0"/usr/lib/syslinux/pxelinux.0cp /usr/lib/syslinux/pxelinux.0   /var/lib/tftpboot/
Pxelinux.cfg/default

Next, create the/var/lib/tftpboot/pxelinux.cfg/directory, which is used to store the client's configuration files.

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

Copy the ' isolinux/isolinux.cfg ' file in the disc to '/var/lib/tftpboot/pxelinux.cfg/default '

cp /mnt/cdrom/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default

Here's a pit:
I find a lot of tutorials are not good, I use the following configuration:

Note: Notifies the client of the location of the KS file (NFS shared; initrd.img location)
For the configuration of "/var/lib/tftpboot/pxelinux.cfg/default" See here:

Test whether the file can be read, start the installation interface

At this point you can see the startup page on the client:

Take another virtual machine experiment:

How to configure this machine:
To create a new Linux machine:
New virtual machine – Prompt me to install the disk location and so on: not to search;
Nic: Set to bridging mode: (i.e. vmnet0)

To start the client:


Select Network boot:
Quick CRTL + ALT + Insert
Fast ESC
Choose the last one


centos6.6 Kickstart Unattended Installation (ii): Configuration Chapter A

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.