Thursday 10 March 2011

How to setup PXE boot server on Windows XP

Credit by : http://diddy.boot-land.net/pxe/files/walkthrough.htm
Thank you so much
Link for script and a cool guide -> http://diddy.boot-land.net/ccount12/click.php?id=3

[My steps are quite for a dummy user,don't need to know anything about the theories;If you would like to understand about PXE,read the cool guide above.]

System Requirement:
1. PXE boot server : Windows XP sp3 32bit
2. PXE client : Support PXE boot sequence.
3. Network setup in the same lan.

Preparation phase on PXE boot server:
1. Create mandatory directory c:\PXE Recommand use creating script [1_create_folders.cmd]
2. Share C:\PXE\tftpboot\ as tftpboot - simple file sharing must be used for the share [Just click Right and share it]
3. Add registry patch and reboot PC - open notepad,copy and paste code below

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"NullSessionPipes"=hex(7):43,00,4f,00,4d,00,4e,00,41,00,50,00,00,00,43,00,4f,00,4d,00,4e,00,4f,00,44,00,45,00,00,00,53,00,51,00,4c,00,5c,00,51,00,55,00,45,00,52,00,59,00,00,00,53,00,50,00,4f,00,4f,00,4c,00,53,00,53,00,00,00,4c,00,4c,00,53,00,52,00,50,00,43,00,00,00,62,00,72,00,6f,00,77,00,73,00,65,00,72,00,00,00,73,00,72,00,76,00,73,00,76,00,63,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"RestrictAnonymous"=dword:00000000

save as PXEboot.reg and exit,then double click the file.Don't forget reboot your server.
4. Install helpful tools
4.1 7-zip Windows 32 command line version -> http://www.7-zip.org/ download and install it after that copy file C:\Program Files\7-Zip\7z.exe to C:\PXE\tools.Change the exe file name from 7z to 7za because our script uses this format!!
4.2 Download gsar -> http://gnuwin32.sourceforge.net/packages/gsar.htm download and install it that copy file C:\Program Files\GnuWin32\bin\gsar.exe to C:\PXE\tools.
4.3 Download syslinux version x.xx -> http://www.kernel.org/pub/linux/utils/boot/syslinux/ download and save it in C:\PXE\tools
4.4 Download tftpd32 -> http://tftpd32.jounin.net/tftpd32_download.html download and save it in C:\PXE\tftpd32\
4.5 Download binl.zip -> http://diddy.boot-land.net/ccount12/click.php?id=5 and extract the contents to C:\PXE\binl\
5. Modified script [_parameters.cmd]

set SERVER_IP=[your server's ip]

The default is 192.168.2.2.Change it!!!

set syslinux=[your syslinux zip file name]

The default is syslinux-3.80.zip.Change it!!!
6. Run [2a_syslinux.cmd]
7. Configure C:\PXE\tftpd32\tftpd32.exe.Read carefully
7.1 Click Settings button
7.2 On the Global tab -> select only TFTP server and DHCP server
7.3 On TFTP tab -> set Base Directory as C:\PXE\tftpboot , TFTP security as Read only ,Advanced TFTP options select only Option negotiation.
7.4 On DHCP tab -> set DHCP Pool definition depends on your requirement.Boot file needs to be pxelinux.0

OK..Now we got the PXE boot server,Let's try by starting your client and booting it with PXE.
Boot menu will appear but no selectable OS..absolutely continue in part II.

2 comments:

Jerry Bishop said...

Great set of instructions. I just posted a short video of our PXE boot sequence here: pxe boot, sccm, imaging

Erch said...

i can suggest to have the whole Boot server pack unto a rar or zip folders... for easy set up.. just making a suggestion.. thank you