Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wimboot from SYSLINUX menu?
2012-09-26, 18:18
Post: #1
wimboot from SYSLINUX menu?
I work at a large university. We use iPXE to chainload to a SYSLINUX/PXELINUX menu via HTTP. From there, we usually use MEMDISK to load Linux or Windows installers.

What I'm hoping to do is change to booting the wims directly off the server. I can do it using the generic wimboot instructions, but not from the SYSLINUX menu. Any pointers on how to get that to work?

Here's our current process:

Native PXE pulls undionly.kpxe via TFTP (all DHCP points to load this iPXE binary)
(iPXE script embedded in undionly.kpxeSmile
#!ipxe
imgfree
set 210:string http://server/ipxe/
set 209:string http://server/ipxe/menus/default\
set filename \${210:string}pxelinux.0
chain ${filename}

Which brings us into the PXELINUX menu. Invoking MEMDISK from there loads the payload into RAM via HTTP and boots it. I want to wimboot, though.
Find all posts by this user
Quote this message in a reply
2012-09-28, 08:57
Post: #2
RE: wimboot from SYSLINUX menu?
You have two options.

You can either go with native iPXE text-based menus. See http://ipxe.org/cmd/menu for docs and https://gist.github.com/2234639 for an extensive example.

If you want to keep your PXELINUX-based menu you can run ipxe.lkrn from a normal PXELINUX menu (it looks like a Linux kernel) and make it run your specialized script. I think http://ipxe.org/ has some docs for that too (try to search for ipxe.lkrn). Be aware that this last option requires the client machine to have native iPXE drivers, as ipxe.lkrn will not reuse the UNDI/PXE stack currently loaded.
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-10-01, 15:58
Post: #3
RE: wimboot from SYSLINUX menu?
Thanks!

I actually tried to go from PXE -> iPXE -> PXELINUX -> iPXE.lkrn w/embedded wimboot script.

It sort of loaded most of the way, then it bailed out, but I think it was non-hardware specific.

I have a lot of different kinds of hardware in the field, is there a way to make an iPXE.lkrn that includes ALL hardware support?
Find all posts by this user
Quote this message in a reply
2012-10-02, 11:18 (This post was last modified: 2012-10-02 11:18 by robinsmidsrod.)
Post: #4
RE: wimboot from SYSLINUX menu?
The compilation targets named ipxe.* contain all drivers supported by iPXE. If it doesn't load, then you're either using unsupported hardware, or you've hit a bug in one of the drivers. You can use the tool util/niclist.pl to figure out what hardware is supported. The --format csv param is quite useful if you need to grep/search for your hardware id. If your hardware is not supported you'll have to use undionly.kpxe to take advantage of iPXE's UNDI support.
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-11-02, 01:22
Post: #5
RE: wimboot from SYSLINUX menu?
Good News on this front!
Thanks to Shao Miller (sha0 on IRC), there were patches to both Wimboot and Syslinux to get this to work, and it does work well.

First, make sure you grab the latest Wimboot (Version 1.0.2).
If you are running Syslinux 4.06, there are patches here: http://www.syslinux.org/archives/2012-Oc...18383.html and you will also need to do this: http://www.syslinux.org/archives/2012-Oc...18406.html (fixes a typo in the patch).

With the patches, your menu option should look something like:
Code:
LABEL wimbootpe
    menu label ^2 Wimboot Ghost PE via Syslinux
    com32 linux.c32
    append wimboot initrdfile=winpe/bootmgr.exe,winpe/BCD,winpe/boot.sdi,winpe/boot.wim

With this, I have wimboot working through a vesamenu at my work.
Some notes, if you don't feel like using that version of Syslinux, or applying the patches, you will have to create a cpio archive yourself of the files, then reference that file as the initrd, but it _should_ work.

Once the patches get accepted into Syslinux (probably in the 5.00 branch), there will be documentation created for this, but for now we were holding off, since it's not in the offical tree yet.
Find all posts by this user
Quote this message in a reply
2013-05-04, 16:32
Post: #6
RE: wimboot from SYSLINUX menu?
It seems like the links above are broken. This link gives the start of the thread from October 2012 on the syslinux mailing-list. [syslinux] [PATCH] 4 Patches for initrd+= and initrdfile= Options
Visit this user's website Find all posts by this user
Quote this message in a reply
2014-03-26, 15:56
Post: #7
RE: wimboot from SYSLINUX menu?
maybe someone need this....

syslinux-4.06_patches.zip

Patch3 is already fixed [typo], just do:

Code:
patch -p1 < 0001....patch
patch -p1 < 0002....patch
patch -p1 < 0003....patch
patch -p1 < 0004....patch
Find all posts by this user
Quote this message in a reply
Post Reply 




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