Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE with SCCM Chaining
2012-08-08, 13:22
Post: #3
RE: iPXE with SCCM Chaining
(2012-08-08 11:35)robinsmidsrod Wrote:  Why are you using PHP at all? From what I can see, this is just a static
iPXE script, and might as well be served as a plain text file.

Because I didn't go trough with it when the most simple script didn't boot as supposed. Debugging only come very complex for something that already didn't work in the most simple version.
The url where the script is located is: http://inventory.somehostname.nl/boot.ph...uristring}
All strings I want to save in a database. So that is always complete. Even when a pc isn't installed yet or not booting windows correctly.
The advanced version that can select on vlan (ip range) show a prompt or not and check if asset is set and the guid is unique, if not load a freedos image and prompt for these settings.

(2012-08-08 11:35)robinsmidsrod Wrote:  The Microsoft WDS binaries does not use the traditional PXE interface to
fetch files, it uses TFTP explicitly. You also need a TFTP server that
supports that backslash hack, like tftpd-hpa (in Ubuntu).

I've used this URL to ensure WDS is loaded correctly:
chain tftp://${next-server}/%5CBoot%5CPXE%5Cpxeboot.n12
The folder PXE doesn't exist by default. Thats why I used ${arch} to select the folder x64 or x86 where the file is located and do exist by default.
But replacing the slaches is worth trying. The responce that ipxe give has also %5C in it so why not use it in the command in the first place.
So in my case the result is:

echo "chain tftp://\${next-server}/%5CBoot%5C\${arch}%5Cwdsnbp.com\n";

And yes it works! I want a prompt for F12 so I didn't use pxeboot.n12
Also the Auto-Add policy is enabled so I must use Wdsnbp.com
But it works fine now. And because the next-server is the same server where all started it causes no problems.
Microsoft's WDSTFTP Server also does support folders. But you must enable access to them first by modifying the ReadFilter field in the windows register. Use of a wildcard isn't recursively. It doesn't include subfolders.

Thanks for your help and all info. It really helped a lot.
Now test it with a pc that is still unknown in SCCM Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPXE with SCCM Chaining - bshogeman - 2012-08-07, 14:47
RE: iPXE with SCCM Chaining - bshogeman - 2012-08-08 13:22



User(s) browsing this thread: 1 Guest(s)