MSFN Forum: slow pxeboot.0 with 3rd party tftp - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

slow pxeboot.0 with 3rd party tftp Rate Topic: -----

#1 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 11 September 2012 - 03:37 PM

I just switched from using WDS to deploy my images to using tftp-hpa / pxelinux. This works wonderfully except one small time issue. When pointing pxelinux to the pxeboot.0 it takes approximately 30 seconds for bootmgr to find the BCD and launch the wim. I only found one article about this here. Is it possible to load bootmgr directly and not use pxeboot.0?

I have tried the following with no luck
LABEL test1
COM32 chain.c32
APPEND boot ntldr=/BOOTMGR

LABEL test2
COM32 chain.c32
APPEND fs ntldr=/BOOTMGR



This however works, but with the delay
LABEL Deployments with pass
COM32 chain.c32
kernel Boot/pxeboot.0


This post has been edited by mchipser: 11 September 2012 - 03:40 PM



#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,409
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 12 September 2012 - 02:55 AM

It would be interesting to understand if it's linked exclusively to the pxelinux way of loading BOOTMGR (whatever this way is) or if it is "generic".
But the fix suggested in the given link seems to me "logical", why cannot you use it?

Maybe you could try using grub4dos instead of pxelinux and see if the delay is the same:
https://sites.google...w/tutorials/pxe
http://diddy.boot-land.net/pxe/

And/or you could try the "new kid on the block", Serva:
http://www.vercot.co...va/default.html
https://sites.google...tutorials/serva
which does have a "WAIK independent" WDS server.

jaclaz

#3 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 12 September 2012 - 08:09 AM

I would expect similar behavior between the syslinux projects (iso, pxe, sys)

This works fine under isolinux, but not pxelinux. It says file can not be found.

LABEL test2
COM32 chain.c32
APPEND ntldr=/BOOTMGR



I am gonna try grub4dos and see if it removes the wait.

This post has been edited by mchipser: 12 September 2012 - 08:26 AM


#4 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 12 September 2012 - 08:55 AM

I don't have much of a delay... maybe less than 2 seconds. Except mine just says

LABEL wds
MENU DEFAULT
MENU LABEL Windows Deployment Services
KERNEL pxeboot.0


#5 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 12 September 2012 - 09:25 AM

Here is my current file (I had to move pxeboot.0 to the root of the tftp directory though)

LABEL Deployments
COM32 chain.c32
kernel pxeboot.0



https://www.youtube....ayer_detailpage is a video of the boot time.

This post has been edited by mchipser: 12 September 2012 - 09:31 AM


#6 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 12 September 2012 - 09:50 AM

I think i might have found the issue.. still not sure how to fix it though..

pxeboot.0 boots bootmgr.exe not bootmgr, the file sizes are different though, bootmgr is 375KB bootmgr.exe is 512KB.. when trying to boot bootmgr.exe straight from pxelinux i get an error saying the file is to large..

when booting bootmgr i get a bootmgr error.. Unable to load BCD. 0xc0000225

This post has been edited by mchipser: 12 September 2012 - 10:15 AM


#7 User is offline   kyor 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 11-October 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 September 2012 - 10:17 AM

I had the same issue several years ago with Windows 7. So i still use the Vista files to boot my Winpe4 Image without any delay. :thumbup

#8 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 12 September 2012 - 10:39 AM

View Postkyor, on 12 September 2012 - 10:17 AM, said:

I had the same issue several years ago with Windows 7. So i still use the Vista files to boot my Winpe4 Image without any delay. :thumbup



same issue? The boot time or the 0xc0000225 error?

I just tried a bootmgr from server 2008, should be the same as vista with no luck.

This post has been edited by mchipser: 12 September 2012 - 10:40 AM


#9 User is offline   kyor 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 11-October 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 September 2012 - 11:46 AM

I had a delay when i tried to load Winpe from PXE. I don't get a a error message

#10 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 12 September 2012 - 11:59 AM

Maybe i need the bootmgr.exe from vista.. not the bootmgr

Edit: I tried the vista bootmgr.exe with the same results..

This post has been edited by mchipser: 12 September 2012 - 09:11 PM


#11 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 13 September 2012 - 09:49 AM

I think the problem lies in how bootmgr.exe looks for the BCD, which is confirmed from the post earlier; however why cant i use bootmgr from pxelinux? I think it is an issue with using a *nix tftp server. I thought this would be fixed by using the remap feature of the tftp server, but apparently not..

when booting from isolinux i can boot bootmgr fine with no delay.

When trying to boot bootmgr from pxelinux it can not find the bcd but booting bootmgr.exe it find it with the delay..

I am going to try using a windows based tftp server and see what happens

EDIT:

here is a copy of my remap file.

re ^BCD Boot/BCD
r ^\\Boot\\ Boot/
r ^\\boot\\ Boot/
rg \\ /1


This post has been edited by mchipser: 13 September 2012 - 09:57 AM


#12 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 13 September 2012 - 03:24 PM

well i have been trying to get grub to boot the bootmgr / bootmgr.exe with no luck.. this is using TFTPD32

I keep getting an error..

Error 13: Invalid or unsupported executable format



The menu.lst looks like:

title winpe
pxe keep
chainloader /bootmgr


with this menu.lst i get this error

title winpe
pxe keep
chainloader --raw(pd)/bootmgr


Error 1: Filename must be either an absolute pathname or blocklist


This post has been edited by mchipser: 13 September 2012 - 03:43 PM


#13 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 14 September 2012 - 09:08 AM

I ended up doing what I found in the first post.. It doesn't completely remove the wait but reduces it quite a bit.. Until i find something better..

I tired to add the option 252 to my dhcp server but that didn't fix the issue.

Still not sure why syslinux & ioslinux perform different than pxelinux..

This post has been edited by mchipser: 14 September 2012 - 09:14 AM


#14 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,409
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 14 September 2012 - 10:28 AM

View Postmchipser, on 13 September 2012 - 09:49 AM, said:

I think the problem lies in how bootmgr.exe looks for the BCD, which is confirmed from the post earlier; however why cant i use bootmgr from pxelinux? I think it is an issue with using a *nix tftp server. I thought this would be fixed by using the remap feature of the tftp server, but apparently not..

when booting from isolinux i can boot bootmgr fine with no delay.

When trying to boot bootmgr from pxelinux it can not find the bcd but booting bootmgr.exe it find it with the delay..


BOOTMGR and BOOTMGR.EXE are actually the "same" file BUT the second has some added code to make it a suitable "pxe" target. EDIT: BUT the first has some added code (16 bit) to make it a "local boot" target.

EXACTLY like it was in the good ol'days with SETUPLDR and SETUPLDR.EXE, see:
http://reboot.pro/5900/
http://reboot.pro/4952/#entry40701

It seems to me like you pinned down exactly the problem, i.e. the way BOOTGR.EXE looks for the BCD, and right now it seems to me like there are only the metioned ways out:
  • use an original WDS server
  • using the workaround you found http://www.0xf8.org/...m-via-pxelinux/
  • using an alternate WDS server (suggested but UNtested)
  • using an alternate loader from pxelinux (suggested but UNtested)

Another possibility (also to be tested) is here:
http://reboot.pro/1656/
http://www.ultimated...7pxelinux1.html


jaclaz

This post has been edited by jaclaz: 14 September 2012 - 11:58 AM


#15 User is offline   kyor 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 11-October 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 14 September 2012 - 11:20 AM

@mchipser

if you like you can test my bootmgr.exe that i use for years with Linux without delay

For testing purpose i have uploaded it to
http://exfile.ru/372587

Greetings
kyor

#16 User is offline   joakim 

  • Member
  • PipPip
  • Group: Members
  • Posts: 150
  • Joined: 18-November 09
  • OS:none specified
  • Country: Country Flag

Posted 14 September 2012 - 11:42 AM

View Postjaclaz, on 14 September 2012 - 10:28 AM, said:

BOOTMGR and BOOTMGR.EXE are actually the "same" file BUT the second has some added code to make it a suitable "pxe" target.


Being a little picky, but it would be more correct to say something like;

"BOOTMGR and BOOTMGR.EXE are actually the same file, but the first has some added code (16-bit) to make it a suitable local boot target"

#17 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,409
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 14 September 2012 - 11:56 AM

View Postjoakim, on 14 September 2012 - 11:42 AM, said:

View Postjaclaz, on 14 September 2012 - 10:28 AM, said:

BOOTMGR and BOOTMGR.EXE are actually the "same" file BUT the second has some added code to make it a suitable "pxe" target.


Being a little picky, but it would be more correct to say something like;

"BOOTMGR and BOOTMGR.EXE are actually the same file, but the first has some added code (16-bit) to make it a suitable local boot target"

Yep :yes: , my bad I got it the "other way round" :blushing: .

jaclaz

#18 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 14 September 2012 - 12:16 PM

View Postjoakim, on 14 September 2012 - 11:42 AM, said:

View Postjaclaz, on 14 September 2012 - 10:28 AM, said:

BOOTMGR and BOOTMGR.EXE are actually the "same" file BUT the second has some added code to make it a suitable "pxe" target.


Being a little picky, but it would be more correct to say something like;

"BOOTMGR and BOOTMGR.EXE are actually the same file, but the first has some added code (16-bit) to make it a suitable local boot target"



I think the .exe version has the extra code, at least it is a bigger sized file..

#19 User is offline   mchipser 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 19-February 08

Posted 14 September 2012 - 12:18 PM

View Postjaclaz, on 14 September 2012 - 10:28 AM, said:

View Postmchipser, on 13 September 2012 - 09:49 AM, said:

I think the problem lies in how bootmgr.exe looks for the BCD, which is confirmed from the post earlier; however why cant i use bootmgr from pxelinux? I think it is an issue with using a *nix tftp server. I thought this would be fixed by using the remap feature of the tftp server, but apparently not..

when booting from isolinux i can boot bootmgr fine with no delay.

When trying to boot bootmgr from pxelinux it can not find the bcd but booting bootmgr.exe it find it with the delay..


BOOTMGR and BOOTMGR.EXE are actually the "same" file BUT the second has some added code to make it a suitable "pxe" target. EDIT: BUT the first has some added code (16 bit) to make it a "local boot" target.

EXACTLY like it was in the good ol'days with SETUPLDR and SETUPLDR.EXE, see:
http://reboot.pro/5900/
http://reboot.pro/4952/#entry40701

It seems to me like you pinned down exactly the problem, i.e. the way BOOTGR.EXE looks for the BCD, and right now it seems to me like there are only the metioned ways out:
  • use an original WDS server
  • using the workaround you found http://www.0xf8.org/...m-via-pxelinux/
  • using an alternate WDS server (suggested but UNtested)
  • using an alternate loader from pxelinux (suggested but UNtested)

Another possibility (also to be tested) is here:
http://reboot.pro/1656/
http://www.ultimated...7pxelinux1.html


jaclaz



  • use an original WDS server
  • using the workaround you found http://www.0xf8.org/...m-via-pxelinux/
  • using an alternate WDS server (suggested but UNtested)
  • using an alternate loader from pxelinux (suggested but UNtested)


I am currently using #2.. What other loaders can i use from pxelinux besides grub4dos / grldr, since that one kept giving me errors.

This post has been edited by mchipser: 14 September 2012 - 12:19 PM


#20 User is offline   joakim 

  • Member
  • PipPip
  • Group: Members
  • Posts: 150
  • Joined: 18-November 09
  • OS:none specified
  • Country: Country Flag

Posted 14 September 2012 - 12:37 PM

View Postmchipser, on 14 September 2012 - 12:16 PM, said:

I think the .exe version has the extra code, at least it is a bigger sized file..

Trust me, bootmgr has every single byte of bootmgr.exe, plus some more (16-bit). It's just that bootgmr.exe is compressed when residing "inside" bootmgr.

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy