WinPE Bad Magic, right names - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: WinPE Bad Magic, right names (/showthread.php?tid=7100) |
WinPE Bad Magic, right names - Luvan - 2013-11-12 10:06 Hi all, New to ipxe and wanted my Synology NAS to boot up Winpe. Created boot.ipxe script and put it on the nas web-server: #!ipxe kernel wimboot initrd bootmgr bootmgr initrd boot/bcd BCD initrd boot/boot.sdi boot.sdi initrd boot.wim boot.wim Put these files on web server in the same folder: boot.wim bootmgr wimboot boot\bcd boot\boot.sdi I downloaded the ipxe.iso. Boot it up in hyper-v, CTRL+B, do get a warning: DHCP gives my ip adress ok. chain http://webserver/test/boot.ipxe All files downloads with OK at the end. Run imgstat: But when i run boot it just says Bad cpio magic... Can anyone please tell me what im doing wrong? RE: WinPE Bad Magic, right names - mcb30 - 2013-11-12 15:44 (2013-11-12 10:06)Luvan Wrote: Run imgstat: The problem is that your boot.ipxe script is still part of iPXE's image list at the time you execute wimboot. The boot.ipxe script then shows up at the end of the initrd image, which confuses wimboot. You can fix this for your manual testing by typing "imgfree boot.ipxe" before typing "boot". If you include the "boot" command within the "boot.ipxe" script, then the problem will go away anyway, since running scripts are automatically excluded from iPXE's image list. Michael RE: WinPE Bad Magic, right names - Luvan - 2013-11-13 08:07 (2013-11-12 15:44)mcb30 Wrote: The problem is that your boot.ipxe script is still part of iPXE's image list at the time you execute wimboot. The boot.ipxe script then shows up at the end of the initrd image, which confuses wimboot. You are completely right So now when that works. How do i get the pxe server to automatically launch the boot.ipxe script? RE: WinPE Bad Magic, right names - Luvan - 2013-11-13 10:41 i have followed this guide: http://ipxe.org/download But i get connection time out... This is the embedded script: #!ipxe dhcp chain http://upkeepernas01/upkeeper/boot.ipxe And this is what i get: i tried to change the path to this in boot.ipxe: #!ipxe kernel http://upkeepernas01/upkeeper/wimboot initrd http://upkeepernas01/upkeeper/bootmgr bootmgr initrd http://upkeepernas01/upkeeper/boot/bcd BCD initrd http://upkeepernas01/upkeeper/boot/boot.sdi boot.sdi initrd http://upkeepernas01/upkeeper/boot.wim boot.wim boot But same result: The files are there, if i replace my compiled undionly.kpxe with the orginal, hit CTRL+B and run boot.ipxe manually, it works fine... What im i doing wrong? RE: WinPE Bad Magic, right names - Luvan - 2013-11-13 11:57 Think i got it to work when i changed to path in boot.ipxe to ipadress. Thanks RE: WinPE Bad Magic, right names - robinsmidsrod - 2013-11-14 09:16 It seems like you're having an issue with your web server. See details here: http://ipxe.org/err/4c0a60 Changing from dns name to ip address certainly seems to indicate you have either a DNS issue or a web server setup problem. The simple way is to test the address you're using in a normal web browser first. RE: WinPE Bad Magic, right names - Luvan - 2013-11-22 11:32 It works fine now, i created a dns record and all is good RE: WinPE Bad Magic, right names - BirtyBassett - 2014-04-30 22:24 My apologies for bumping an old thread but I have the same problem as OP. I am using the boot.ipxe, boot.ipxe.cfg & menu.ipxe scripts from this page. Below is a section from the menu.ipxe where I've added in an entry for dart in between the two macrium entries. It doesn't seem to matter whether I use imgstat or not. Quote::macrium-winpe This is the error I receive: Any ideas? RE: WinPE Bad Magic, right names - mcb30 - 2014-05-02 17:42 (2014-04-30 22:24)BirtyBassett Wrote: Spot the difference between the four initrd lines! The second is missing the "bcd" argument, and should be: Code: initrd ${base-url}/bcd bcd Michael RE: WinPE Bad Magic, right names - BirtyBassett - 2014-05-04 16:46 Embarrassed? Me? No, not at all!! Many thanks for pointing out the obvious!! All up and running now. |