Home
%3CLINGO-SUB%20id%3D%22lingo-sub-898284%22%20slang%3D%22en-US%22%3ERe%3A%20How%20does%20the%20PXE%20boot%20process%20work%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-898284%22%20slang%3D%22en-US%22%3E%3CP%3EWithout%20a%20doubt%20this%20is%20the%20best%20approach%20to%20getting%20a%20complete%20environment%20to%20support%20all%20your%20pxe%20needs.%26nbsp%3B%20Having%20done%20imaging%20myself%2C%20befriending%20your%20network%20admin%20IMHO%20is%20essential%20-%20there%20are%20many%20factors%20that%20the%20impact%20proper%20deliver%20(or%20blocking%20where%20req)%20or%20pxe%20packets%2C%20your%20design%20needs%20to%20take%20delivery%20(network%20eq%2C%20server%20versions)%20and%20configuration%20(uefi%2Fbios)%20options%20as%20well%20as%20security.%26nbsp%3B%20Once%20all%20factors%20are%20understood%20a%20proper%20an%20effect%20design%20is%20possible%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-888557%22%20slang%3D%22en-US%22%3EHow%20does%20the%20PXE%20boot%20process%20work%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-888557%22%20slang%3D%22en-US%22%3E%3CP%3EWithin%20the%20IT%20department%20imaging%20devices%20for%20end%20users%20is%20something%20that%20we%E2%80%99ve%20probably%20all%20had%20to%20do%20at%20some%20point%2C%20either%20manually%20or%20with%20an%20automation%20product%20such%20as%20Windows%20Deployment%20Services%20(WDS)%2C%20Microsoft%20Deployment%20Toolkit%26nbsp%3B(MDT)%20or%20System%20Centre%20Configuration%20Manager%20(SCCM).%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20a%20lot%20of%20moving%20parts%20to%20imaging%20devices%20using%20one%20of%20the%20tools%20mentioned%20above%2C%20and%20there%20can%20be%20a%20lot%20of%20pain%20points%20in%20the%20process.%26nbsp%3B%20When%20you%20are%20trying%20to%20image%20a%20device%20you%20are%20usually%20trying%20to%20interact%20with%20it%20before%20the%20pre-installed%20Operating%20System%20(OS)%20launches%20or%20interact%20it%20when%20it%20doesn%E2%80%99t%20have%20an%20OS%20installed%20on%20it.%26nbsp%3B%20And%20to%20do%20that%20we%20want%20to%20interact%20with%20the%20Preboot%20Execution%20Environment%20or%20PXE%20as%20its%20commonly%20referred%20to.%20And%20this%20is%20often%20the%20part%20that%20can%20cause%20a%20lot%20of%20pain.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20PXE%20environment%20in%20its%20simplest%20form%20is%20the%20process%20of%20having%20your%20device%20boot%20from%20its%20network%20card.%20%26nbsp%3BFor%20the%20device%20to%20boot%20into%20the%20PXE%20environment%20it%20needs%20to%20receive%20the%20relevant%20instructions.%3CSTRONG%3E%20%26nbsp%3B%3C%2FSTRONG%3EThe%20most%20common%20way%20of%20trying%20to%20do%20this%20is%20to%20configure%20your%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows-server%2Fnetworking%2Ftechnologies%2Fdhcp%2Fdhcp-top%3FWT.mc_id%3Ditopstalk-blog-salean%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDynamic%20Host%20Configuration%20(DHCP)%20server%3C%2FA%3E%20to%20store%20and%20serve%20this%20information.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPXE%26nbsp%3BBoot%26nbsp%3BProcess%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20your%20DHCP%20server%20to%20store%20and%20serve%20this%20information%20looks%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20device%20sends%20out%20a%20DHCP%20broadcast%20and%20states%20that%20it%20needs%20to%20PXE%20boot%20(you%E2%80%99ve%20often%20initiated%20this%20request%20by%20hitting%20F12%20on%20the%20device%20as%20it%20starts%20up)%3C%2FLI%3E%0A%3CLI%3EThe%20DHCP%20server%20picks%20up%20this%20broadcast%20and%20replies%20with%20a%20suggested%20IP%20address%20to%20use.%20If%20the%20server%20has%20the%20information%20on%20how%20to%20PXE%20boot%2C%20that%20information%20is%20included%20in%20its%20reply%3C%2FLI%3E%0A%3CLI%3EThe%20device%20then%20replies%20to%20the%20server%20and%20uses%20the%20provided%20address%3C%2FLI%3E%0A%3CLI%3EThen%20the%20device%20contacts%20the%20PXE%20boot%20server%20(traditional%20a%20WDS%20server%20or%20SCCM%20server)%20and%20requests%20the%20boot%20file%20(also%20known%20as%20the%20Network%20Boot%20Program%20(NBP))%20that%20it%20was%20told%20to%20look%20for%20from%20the%20DHCP%20server%3C%2FLI%3E%0A%3CLI%3EThe%20file%20is%20then%20loaded%20and%20launched%20on%20the%20client%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWithin%20your%20DHCP%20server%2C%20Option%2066%20or%20Option%2067%20are%20the%20ones%20that%20you%20set%20within%20your%20scope%20options%20with%20the%20required%20information.%20Option%2066%20specifies%20which%20server%20to%20contact%20and%2067%20is%20the%20name%20of%20the%20file%20to%20request.%20This%20method%20can%20work%20fine%20when%20your%20clients%20are%20on%20the%20same%20part%20of%20your%20network%20as%20your%20servers%20and%20if%20you%20are%20only%20utilising%20one%20type%20of%20device%20architecture.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20when%20your%20devices%20are%20on%20another%20part%20of%20the%20network%20from%20your%20servers%2C%20or%20you%20have%20a%20mix%20of%20BIOS%2C%20UEFI%2C%2032-bit%2C%2064-bit%2C%20ARM%20devices%2C%20it%20all%20gets%20a%20bit%20messy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEspecially%20as%20each%20of%20those%20device%20types%20need%20a%20different%20boot%20file%20delivered%20to%20them%20and%20DHCP%20only%20allows%20you%20to%20specify%20one%20boot%20file.%20%26nbsp%3B%20Over%20the%20years%20I%E2%80%99ve%20learnt%20the%20hard%20way%20that%20each%20device%20needs%20a%20specific%20boot%20file%20and%20I%20know%20colleagues%20that%20have%20also%20fallen%20foul%20to%20this%20issue%20as%20well.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EIP%20Helpers%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20ultimate%20answer%20and%20supported%20method%20is%20to%20use%20IP%20helpers.%20%26nbsp%3BThese%20are%20options%20that%20are%20specified%20within%20your%20networking%20equipment.%26nbsp%3B%20Using%20IP%20helpers%20tells%20your%20device%20where%20to%20go%20for%20the%20boot%20file%20then%20your%20PXE%2FWDS%2FSCCM%20server%20dynamically%20delivers%20the%20correct%20boot%20file%20for%20the%20device%20architecture%2Ffirmware.%20%26nbsp%3BUtilising%20the%20IP%20helper%20method%20also%20allows%20you%20to%20specify%20more%20than%20one%20server%20so%20you%20can%20build%20multiple%20within%20your%20environment%2C%20then%20if%20one%20is%20offline%20the%20device%20should%20just%20use%20the%20next%20available%20one%20rather%20than%20fail%2C%20so%20you%20have%20a%20loose%20%E2%80%9Cload%20balanced%2Fredundancy%E2%80%9D%20solution%20in%20place.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENetwork%20Administrator%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EMy%20advice%2C%20if%20you%20are%20someone%20who%20is%20involved%20in%20building%20devices%20for%20your%20end%20users%2C%20is%20befriend%20your%20network%20administrator%20and%20ask%20them%20to%20configure%20the%20necessary%20IP%20helpers%20for%20you.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20little%20solution%20like%20this%20can%20save%20you%20a%20lot%20of%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20device%20building!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-888557%22%20slang%3D%22en-US%22%3E%3CP%3EWithin%20the%20IT%20department%20imaging%20devices%20for%20end%20users%20is%20something%20that%20we%E2%80%99ve%20probably%20all%20had%20to%20do%20at%20some%20point%2C%20either%20manually%20or%20with%20an%20automation%20product%20such%20as%20Windows%20Deployment%20Services%20(WDS)%2C%20Microsoft%20Deployment%20Toolkit%26nbsp%3B(MDT)%20or%20System%20Centre%20Configuration%20Manager%20(SCCM).%26nbsp%3B%20%26nbsp%3BThere%20are%20a%20lot%20of%20moving%20parts%20to%20imaging%20devices%20using%20one%20of%20the%20tools%20mentioned%20above%2C%20and%20there%20can%20be%20a%20lot%20of%20pain%20points%20in%20the%20process.%26nbsp%3B%20One%20of%20the%20pain%20points%20is%20often%20how%20to%20get%20the%20device%20to%20boot%20into%20the%20PXE%20environment%2C%20in%20this%20article%20we%20explore%20how%20that%20process%20works%20and%20understand%20why%20it%20can%20be%20a%20pain%20point.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135110i8252905974E09F5A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22dhcpexplained.png%22%20title%3D%22dhcpexplained.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDesktop%20PC%2C%20Linux%20Laptop%2C%20Surface%20tablet%2C%20Surface%20Studio%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-888557%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESarah%20Lean%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Within the IT department imaging devices for end users is something that we’ve probably all had to do at some point, either manually or with an automation product such as Windows Deployment Services (WDS), Microsoft Deployment Toolkit (MDT) or System Centre Configuration Manager (SCCM). 

 

There are a lot of moving parts to imaging devices using one of the tools mentioned above, and there can be a lot of pain points in the process.  When you are trying to image a device you are usually trying to interact with it before the pre-installed Operating System (OS) launches or interact it when it doesn’t have an OS installed on it.  And to do that we want to interact with the Preboot Execution Environment or PXE as its commonly referred to. And this is often the part that can cause a lot of pain.

 

The PXE environment in its simplest form is the process of having your device boot from its network card.  For the device to boot into the PXE environment it needs to receive the relevant instructions.  The most common way of trying to do this is to configure your Dynamic Host Configuration (DHCP) server to store and serve this information.

 

PXE Boot Process

 

Using your DHCP server to store and serve this information looks like this:

 

  • The device sends out a DHCP broadcast and states that it needs to PXE boot (you’ve often initiated this request by hitting F12 on the device as it starts up)
  • The DHCP server picks up this broadcast and replies with a suggested IP address to use. If the server has the information on how to PXE boot, that information is included in its reply
  • The device then replies to the server and uses the provided address
  • Then the device contacts the PXE boot server (traditional a WDS server or SCCM server) and requests the boot file (also known as the Network Boot Program (NBP)) that it was told to look for from the DHCP server
  • The file is then loaded and launched on the client

 

Within your DHCP server, Option 66 or Option 67 are the ones that you set within your scope options with the required information. Option 66 specifies which server to contact and 67 is the name of the file to request. This method can work fine when your clients are on the same part of your network as your servers and if you are only utilising one type of device architecture.

 

However, when your devices are on another part of the network from your servers, or you have a mix of BIOS, UEFI, 32-bit, 64-bit, ARM devices, it all gets a bit messy.

 

Especially as each of those device types need a different boot file delivered to them and DHCP only allows you to specify one boot file.   Over the years I’ve learnt the hard way that each device needs a specific boot file and I know colleagues that have also fallen foul to this issue as well.  

 

IP Helpers

 

The ultimate answer and supported method is to use IP helpers.  These are options that are specified within your networking equipment.  Using IP helpers tells your device where to go for the boot file then your PXE/WDS/SCCM server dynamically delivers the correct boot file for the device architecture/firmware.  Utilising the IP helper method also allows you to specify more than one server so you can build multiple within your environment, then if one is offline the device should just use the next available one rather than fail, so you have a loose “load balanced/redundancy” solution in place.

 

Network Administrator

My advice, if you are someone who is involved in building devices for your end users, is befriend your network administrator and ask them to configure the necessary IP helpers for you. 

 

A little solution like this can save you a lot of time.

 

Happy device building!

 

1 Comment
Contributor

Without a doubt this is the best approach to getting a complete environment to support all your pxe needs.  Having done imaging myself, befriending your network admin IMHO is essential - there are many factors that the impact proper deliver (or blocking where req) or pxe packets, your design needs to take delivery (network eq, server versions) and configuration (uefi/bios) options as well as security.  Once all factors are understood a proper an effect design is possible