RHEL5 with RHEL6---PXE network boot Configuration

Source: Internet
Author: User
PXE (prebootexecuteenvironment) is the latest technology developed by Intel. It works in the Client/Server network mode and supports workstation downloading images from remote servers over the network, in addition, it supports the Startup Process of the operating system from the network. During the startup process, the terminal requires the server to assign an IP address, and then use TFTP (trivialfiletransferprotocol) or MTFTP (multicasttrivialfile

PXE (preboot execute environment) is the latest technology developed by Intel. It works in the Client/Server network mode and supports workstation to download images from remote servers over the network, this also supports the Startup Process of the operating system from the network. During the startup process, the terminal requires the server to assign an IP address, and then use TFTP (trivial file transfer protocol) or MTFTP (multicast trivial file transfer protocol) download a startup software package to the local memory and execute it. the startup Software Package completes the basic software settings of the terminal to guide the terminal operating system that is pre-installed on the server.

PXE can guide a variety of operating systems, such as Windows 95/98/2000 and linux.

PXE

1. Start "dhcpd" service

# Yum install dhcpd

Create "dhcpd. conf" in the directory of/etc/dhcp (RHEL6)

Create "dhcpd. conf" in the directory of/etc/(RHEL5)

 

* We can find a sample in/usr/share/doc/dhcp-*/dhcpd. conf. sample

 

# Example:

Ddns-update-style interim;

Subnet 192.168.122.0 netmask 255.255.255.0 {

Option routes 192.168.122.1;

Option domain-name-servers 10.66.191.13;

Option time-offset-18000;

Range dynamic-bootp 192.168.122.168 192.168.122.254;

Default-lease-time 21600;

Max-lease-time 43200;

Filename "pxelinux.0 ";

Next-server 192168.122.30;

}

 

# Service dhcpd start

If we use virtual machine, we shoshould stop "dnsmasq"

#/Etc/init. d/dnsmasq stop

 

2. Start "tftp" service

# Yum install tftp-server

Then let "tftp" start

# Chkconfig tftp on

# Service xinetd restart

 

Profiles:

We can find "tftpboot" at "/" in RHEL5, and at "/var/lib" in RHEL6.

We can also change root of tftp in "/etc/xinetd. d/tftp"

"Server_args =-s/tftpboot"

How to find the files above:

Initrd. img:/var/www/html/rhel6u0/isolinux/

Vmlinuz:/var/www/html/rhel6u0/isolinux/

Pxelinux.0:/usr/share/syslinux (if there isn't syslinux, we shoshould install first)

Default:/var/lib/tftpboot/isolinux. cfg (this is an example)

# Example:

Default linux

Prompt 1

Timeout 300

Label linux

Kernel vmlinuz

Append initrd = initrd. img ks = http: // 192.168.122.30/ks. cfg

**

We shoshould close Selinux and iptables

3 Start httpd service

# Service httpd start

4 how to config/var/www/html

Related Article

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.