Thursday 19 May 2011

How to setup PXE boot server on Windows XP Part III

I got a new requirement from my team to add RHEL and SUSE into the existing PXE boot server,OK that would be easier than Windows.

Tested OS:
RHEL AS4U8/5U6/6
SUSE 10sp3/11sp1

My PXE boot is just a normal windows xp machine with 20 GB harddisk that is insufficient for keeping all os images so I decided to setup NFS in different machine.Fortunately there is unused SUN server in my farm so I will setup it as my NFS server to keep images file.

1. At your NFS server,mount the iso file:

[root@RFATEST184 /]# mount -F hsfs -o ro `lofiadm -a /temp/rhel-server-6.0-i386-dvd.iso` /mnt

2. Created and shared file in directory /share/pxe

[root@RFATEST184 pxe]# share
- /share/pxe ro ""

3. Copy all files in /mnt to /share/pxe/[OS image]

[root@RFATEST184 pxe]# cp -pr /mnt/* /share/pxe/32as6/

4. Check required file in your share directory

For RHEL
[root@RFATEST184 32as6]# pwd
/share/pxe/32as6
[root@RFATEST184 32as6]# ls -li images/pxeboot/
total 63074
275230 -r--r--r-- 1 root root 441 Sep 23 2010 TRANS.TBL
275231 -r--r--r-- 1 root root 28587578 Sep 23 2010 initrd.img
275232 -r-xr-xr-x 1 root root 3667328 Sep 23 2010 vmlinuz

For SUSE
[root@RFATEST184 loader]# pwd
/share/pxe/32suse10sp3/DVD1/boot/i386/loader
[root@RFATEST184 loader]# ls -li linux initrd
576202 -rw-r--r-- 1 root root 10726367 May 14 13:03 initrd
576210 -rw-r--r-- 1 root root 1305277 May 14 13:03 linux

5. Now open your windows xp PXE boot server then ftp to NFS and copy 'image' directory for RHEL or 'boot' directory for SUSE to tftpboot directory

C:\PXE\tftpboot>ls 32as6\images\pxeboot
TRANS.TBL initrd.img vmlinuz

C:\PXE\tftpboot>ls 32suse10sp3\boot\i386\loader\linux
32suse10sp3\boot\i386\loader\linux

C:\PXE\tftpboot>ls 32suse10sp3\boot\i386\loader\initrd
32suse10sp3\boot\i386\loader\initrd

6. Configure file C:\PXE\tftpboot\pxelinux.cfg\default by adding below entry and save it.

For RHEL
label 32AS6
menu label Install AS6 32bit
kernel /32as6/images/pxeboot/vmlinuz
append initrd=/32as6/images/pxeboot/initrd.img switches

For SUSE
label 32suse10
menu label Install Suse 10sp3 32bit
kernel /32suse10sp3/boot/i386/loader/linux
append initrd=/32suse10sp3/boot/i386/loader/initrd splash=silent showopts

7.
Boot the client PC using PXE boot option
8. Select an option from the menu
9. the ramdisk OS will be loaded.Don't forget to select Network/NFS source image for installation(Setup NFS's IP and shared directory)
10. enjoy setup.

3 comments:

Unknown said...

As you wrote " I got a new requirement from my team to add RHEL and SUSE into the existing PXE boot server,OK that would be easier than Windows." that right makeing PXE Server for Linux distribution is quit easy. i am trying yo install for Windows 7 and Windows XP fro Linxux(RHEL or CentOS) pxe Server, but no luck from last two days. My DHCP, TFTF etc services are ok and tested in Linux installation from long time but i am missing something in Windows part... As you said in blog you have done this, can you please share your steps to me as well

Unknown said...

As you wrote " I got a new requirement from my team to add RHEL and SUSE into the existing PXE boot server,OK that would be easier than Windows." that right makeing PXE Server for Linux distribution is quit easy. i am trying yo install for Windows 7 and Windows XP fro Linxux(RHEL or CentOS) pxe Server, but no luck from last two days. My DHCP, TFTF etc services are ok and tested in Linux installation from long time but i am missing something in Windows part... As you said in blog you have done this, can you please share your steps to me as well

Aflando said...

Hi sukrant sirohi,
I have left my blog for a long time, sorry about that. One problem that I've ever faced with Linux PXE boot server(assume that your PXE boot server is also linux) for windows distribution is a Capital Character, I recommend building the windows image such as WinPE for windows 7 in all lower case character to avoid this problem.

Hope this help!