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