LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to deal with an existing WDS PXE directory ? (http://www.linuxquestions.org/questions/linux-software-2/how-to-deal-with-an-existing-wds-pxe-directory-888748/)

zelycorn 06-28-2011 07:43 AM

How to deal with an existing WDS PXE directory ?
 
Hello,

im posting here because I can't find a solution to my issue :

An existing Windows 2003 Server hosts a WDS pxe role. A networtk shared directory provides some customized OS.

I have to migrate this server without altered the WDS directory. Is it possible to deal with this stack under Redhat with pxelinux ?

Actually, my tests are negative. But I definitively have to deal with as a requirement. Otherwise an update will be made for each alteration of the OS.

POC : Red Hat 5 64bits, Apache2, Samba3, pxelinux, tftp-hpa.

I had successfully boot a virtual pc under Red hat. But I'm alaways game over with the corporate OS. When I load a pxeboot.n12 file there is an invalid file or corrupt error. When I rename this file as pxeboot.0 (to use pxelinue) the next step is a boot menu. I load a BCD file but after a boot.ini file is required but not present. This file doesn't exits in the current directory.

paulsm4 06-29-2011 12:03 AM

I *think* your question is:

1) You currently have a Windows 2003 PXE server
<= More specifically, it sounds like you have a W2K3 server running WDS, with Microsoft PXE

2) You want to migrate away from it
<= It sounds like you're moving to Redhat and pxelinux

3) You're having problems getting the Windows hosts to boot

Correct so far?

These links might help:

http://linux-sxs.org/internet_serving/pxeboot.html

http://sysadminman.net/blog/2007/pxe...e-pxe-server-8

Please let us know how it goes!

zelycorn 06-29-2011 01:44 AM

Hello,

thanks for the second link.

I can't boot the WinPe.

Here is the directory I have to implement in pxelinux :

Boot
----Fonts----wgl4_boot.ttf
----x86----Images ----Generic_x8.wim
-----------abortxe.com
-----------bootmgr.exe
-----------hdlscom1.com
-----------hdlscom1.n12
-----------hdlscom2.com
-----------hdlscom2.n12
-----------lenabortpxe.com
-----------pxeboot.com
-----------pxeboot.n12
-----------wdsnbp.com
----boot.sdi
Tmp
----x86.{0901386B-E450-423A-B5D9-F69985A8F0B9}.bcd

As the tutotial in the second url said, I have to boot the pcxelinux.0 from syslinux, after load the pxelinux.cfg/default menu and then boot the pxeboot.com or n12 renamed in .0 to be processed by pxelinux network bootstrap program ?

But I doesn't want to rename or alter the WDS directory. Is it a way to proceed ?

zelycorn 06-29-2011 02:24 AM

So is it possible to load the Generic_X86.wim image with pxelinux ?

So far i have an error when trying to boot it :

pxelinux.cfg/default

DEFAULT net
PROMPT 0

LABEL net
KERNEL memdisk
APPEND initrd=win.img iso raw keeppxe

=> pxe boot :

MEMDISK: Image has fractional end sector cylinder
MEMDISK: Images seems to have fractional end cylinder
INT 13 08: Failure, assuming this is the only drive

zelycorn 06-29-2011 08:50 AM

Jun 29 15:45:01 00x in.tftpd[4394]: RRQ from filename pxelinux.cfg/default
Jun 29 15:45:01 00x in.tftpd[4395]: RRQ from filename Boot/pxeboot.0
Jun 29 15:45:02 00x in.tftpd[4396]: RRQ from filename bootmgr.exe
Jun 29 15:45:04 00x in.tftpd[4397]: RRQ from filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 29 15:45:04 00x in.tftpd[4397]: tftp: client does not accept options
Jun 29 15:45:04 00x in.tftpd[4398]: RRQ from filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 29 15:45:04 00x in.tftpd[4399]: RRQ from filename \boot.ini remapped to /boot.ini
Jun 29 15:45:04 00x in.tftpd[4399]: sending NAK (1, File not found) to 10.4

Always looking for a boot.ini but I haven't it. I have a boot.sdi and a default.bcd and a win.wim.

zelycorn 06-30-2011 06:26 AM

So, i have found this morning !

a tftp map include a remap for boot.ini and hyperfile.sys to a empty file. Then the boot.sdi is requested by the pxe client. then the wim image is loaded and the winpe is on the right way !

touch /tftpboot/Boot/empty

vi /etc/tftpd.map

re ^\\boot.ini Boot/empty
re ^\\hiberfil.sys Boot/empty
r ^\\boot\ Boot/
rg \\ /

/etc/init.d/xinetd restart

Jun 30 13:17:55 server in.tftpd[5953]: RRQ from ip filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 30 13:17:55 server in.tftpd[5953]: tftp: client does not accept options
Jun 30 13:17:55 server in.tftpd[5954]: RRQ from ip filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 30 13:17:55 server in.tftpd[5955]: RRQ from ip filename \boot.ini remapped to Boot/empty
Jun 30 13:17:55 server in.tftpd[5955]: tftp: client does not accept options
Jun 30 13:18:27 server in.tftpd[5982]: RRQ from ip filename \Boot\BCD remapped to /Boot/BCD
Jun 30 13:18:27 server in.tftpd[5982]: tftp: client does not accept options
Jun 30 13:18:27 server in.tftpd[5983]: RRQ from ip filename \Boot\BCD remapped to /Boot/BCD
Jun 30 13:18:28 server in.tftpd[5984]: RRQ from ip filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 30 13:18:28 server in.tftpd[5984]: tftp: client does not accept options
Jun 30 13:18:28 server in.tftpd[5985]: RRQ from ip filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 30 13:18:28 server in.tftpd[5986]: RRQ from ip filename \hiberfil.sys remapped to /hiberfil.sys
Jun 30 13:18:28 server in.tftpd[5986]: sending NAK (1, File not found) to ip
Jun 30 13:18:28 server in.tftpd[5987]: RRQ from ip filename \Boot\winpe.wim remapped to /Boot/winpe.wim
Jun 30 13:18:28 server in.tftpd[5987]: tftp: client does not accept options
Jun 30 13:18:28 server in.tftpd[5988]: RRQ from ip filename \boot\boot.sdi remapped to /boot/boot.sdi
Jun 30 13:18:28 server in.tftpd[5988]: tftp: client does not accept options
Jun 30 13:18:28 server in.tftpd[5989]: RRQ from ip filename \boot\boot.sdi remapped to /boot/boot.sdi
Jun 30 13:18:31 server in.tftpd[5990]: RRQ from ip filename \Boot\winpe.wim remapped to /Boot/winpe.wim
Jun 30 13:20:39 server in.tftpd[6105]: RRQ from ip filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf
Jun 30 13:20:39 server in.tftpd[6105]: tftp: client does not accept options
Jun 30 13:20:39 server in.tftpd[6106]: RRQ from ip filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttf


All times are GMT -5. The time now is 03:14 PM.