In computing, the Preboot eXecution Environment (PXE, sometimes pronounced as  pixi specification describes a standardized client-server environment that boots a software assembly, retrieved from a network, on PXE-enabled clients. On the client side it requires only a PXE-capable network interface controller (NIC), and uses a small set of industry-standard network protocols such as DHCP and TFTP.
The concept behind the PXE originated in the early days of protocols like BOOTP/DHCP/TFTP, and as of 2015 it forms part of the Unified Extensible Firmware Interface (UEFI) standard. Given fast and reliable local area networks (LANs), PXE is the most frequent choice[2] for operating system booting, installation and deployment. (Wikipedia)
Myt system : Centos 7.3
Hoatname -dhcp-server
IP = 192.168.0.200
DNS1=213.46.228.196
DNS2=62.179.104.196
GATEWAY=192.168.0.1

1-Setup Static Ipadress for PXE server

This is how my configuration look like

 

Install FTP Server and copy DVD content to FTP folder

1-install ftp server and copy files to pub folder

2-Make yum Local repo serve r from /var/ftp/pub
vi /etc/yum.repos.d/local.repo

save and exit
Listing repo data

Then

Install create repo package from /var/ftp/pub/Packages

Create repo

Sync repo to get last updated packages ( if u have internet)

So far so good

Install and Configure Apache and Kick start

Apache :

Create Kickstart file :

you can use this ready file auto.cfg :
Please note : The crypted password in my case is “000000”. later you can change your password to your choice

 

Install TFTP and DHCP server

Trivial File Transfer Protocol (TFTP) is a simple lockstep File Transfer Protocol which allows a client to get a file from or put a file onto a remote host. One of its primary uses is in the early stages of nodes booting from a local area network. TFTP has been used for this application because it is very simple to implement.
TFTP was first standardized in 1981[1] and the current specification for the protocol can be found in RFC 1350
The Dynamic Host Configuration Protocol (DHCP) is a standardized network protocol used on Internet Protocol (IP) networks. The DHCP is controlled by a DHCP server that dynamically distributes network configuration parameters, such as IP addresses, for interfaces and services. A router or a residential gateway can be enabled to act as a DHCP server. A DHCP server enables computers to request IP addresses and networking parameters automatically, reducing the need for a network administrator or a user to configure these settings manually. In the absence of a DHCP server, each computer or other device (e.g., a printer) on the network needs to be statically (i.e., manually) assigned to an IP address. (Wiki)
Install :

Configure TFT service to run under xinetd

Enable and start

Configure DHCP Server

my dhcpd simple configuration :

Enable and resart DHCPD

Configure the boot menue and the image for remote PXE

Please execute the bellow commands

 

Enable firewall ports

Enable ftp, dhcp, http, nfs and 4011 port from firewall

 

Now   boot  your  VM from network  and  see the  magic

SHARE
Linux Engineer, born in Morocco, living in Amsterdam. with large knowledge of TUX and opensource. am Working with Linux from very long time , i have created this blog to serve people. please join us

LEAVE A REPLY

Please enter your comment!
Please enter your name here