Brief description of PXE unattended system installation and configuration

Source: Internet
Author: User

0. Disable the Firewall:

# Iptables-F

Or

# Service iptables stop

========================================================== ========================================================== ==============

1. install and configure the DHCP server:

# Yum-y install DHCP // Yum install DHCP server

-------------------------------

# Vi/etc/DHCP/DHCPD. conf // configure the DHCP server

Option domain-name "londey.com"; // specifies the Domain Name

Option domain-name-servers 192.168.1.139; // specify the IP address of the Domain Name Server.

Default-lease-time 86400; // defines the default lease time

Max-lease-time 100000; // defines the maximum lease time


Subnet 192.168.1.0 netmask 255.255.255.0 {// define the DHCP network segment and mask

Range 192.168.1.150 192.168.1.200; // defines the DHCP address pool.

Option routers 192.168.1.139; // defines the IP address of the gateway route.

Next-server 192.168.1.139; // defines the next server IP address to be searched

Filename "pxelinux.0"; // defines the file to be searched on the next server

}

-------------------------------

# Chkconfig DHCPD on // set startup

# Service DHCPD start // enable DHCP service

========================================================== ========================================================== ==============

2. Install the TFTP server:

# Yum-y install TFTP-server // install the TFTP server and client

# Chkconfig xinet on // open the super daemon xinet

# Chkconfig TFTP on // open the TFTP Server

# SS-unl // check whether port 69 is enabled

========================================================== ========================================================== ==============

2. 5. Install syslinux: (subsequent configuration of TFTP)

# Yum-y install syslinux // install syslinux

# Cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot // copy pxelinux0 to the tftpboot folder

# Mkdir/var/lib/tftpboot/pxelinux. cfg // create the pxelinux. cfg directory in the tftpboot folder.

# Cp/Media/CDROM/images/pxeboot/{vmlinuz, initrd. IMG}/var/lib/tftpboot // copy vmlinuz, initrd. IMG to tftpboot

# Cp/Media/CDROM/isolinux/vesamenu. c32/var/lib/tftpboot // copy vesamenu. c32 to tftpboot

# Cp/Media/CDROM/isolinux/splash.jpg/var/lib/tftpboot // beibeibeisplash.jpg to tftpboot

# Cp/Media/CDROM/isolinux. cfg/var/lib/tftpboot/pxelinux. cfg/default // copy isolinux. cfg to pxelinux. cfg and change it to default

========================================================== ========================================================== ==============

3. Install and start the HTTPd service:

# Yum install httpd // install the HTTPd service

# Service httpd start // enable the HTTPd service

========================================================== ========================================================== ==============

4. Generate and place the KS file:

# Yum install system-config-kickstart // install system-config-kickstart

# System-config-kickstart // Open System-config-kickstart for graphical configuration of KS files

# Mv ks. cfg/var/www/html // move the KS configuration file to/var/www/html

========================================================== ========================================================== ==============

5. Modify the default file:

# Vi/var/lib/tftpbot/pxelinux. cfg/default // modify the defalut (pxelinux. cfg) File

Lable Linux

Ks = http: // 192.168.1.139/KS. cfg

========================================================== ========================================================== ==============

6. Put the image in the HTTP directory:

# Mount -- bind/media // var/www/html/PXE // mount the directory to/var/www/html/PXE/

# Http: // 192.168.100.1/PXE // you can open and test the HTTP service on the webpage.

========================================================== ========================================================== ==============


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.