Linux PXE installation Centos7

Source: Internet
Author: User

Service side

3 Types of services required

DHCP + TFTP + vsftp

TFTP provides guidance on why no other protocol is used for PXE booting because the NIC will only integrate TFTP to the way the service is written to the mirror

DHCP sends TFTP boot to other machines to know tftp boot

VSFTP provides a system image that can be HTTP or NFS

Build local Yum Source slightly

Modify your own IP address 192.168.100.1 I'm using this address.

Installing DHCP tftp vsftp

Yum-y Install VSFTPD

Yum-y Install Tftp-server

Yum-y Install DHCP

Shutting down firewalls and SELinux

[Email protected] ftp]# Systemctl stop Firewalld
[Email protected] ftp]# Setenforce 0

1. Need a boot pxelinux.0

This file comes from Syslinux this package

Install him directly.

Yum-y Install Syslinux

[Email protected] ~]# RPM-QL syslinux | grep linux.0
/usr/share/syslinux/gpxelinux.0
/usr/share/syslinux/pxelinux.0

Filter installation successfully copied it to TFTP

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

This time with pxelinux.0 but need to configure the file

mkdir pxelinux.cfg Creating a configuration file

Copy disc isolinux/isolinux.cfg named default

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

Modify Default

Line 2nd time Out time list existing 100

Line 61st add a menu default to remove 67 rows

Modified to FTP append initrd=initrd.img inst.stage2=ftp://192.169.100.1/pub quiet

You'll need some additional files to copy the files under Isolinux to the directory.

[Email protected] tftpboot]# cp/media/cdrom/isolinux/*.

Start configuring DHCP

The way it was issued to TFTP

[Email protected] tftpboot]# vi/etc/dhcp/dhcpd.conf

Subnet 192.168.100.0 netmask 255.255.255.0 {network segment
Option routers 192.168.100.1; Gateway

Next-server 192.168.100.1; Server
FileName "pxelinux.0"; File
Max-lease-time 20000; Rental Period

Option Domain-name-servers 114.114.114.114; Dns
}

Restart Service

Linux PXE installation Centos7

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.