iPXE fails to boot anything
|
2013-02-18, 10:43
Post: #1
|
|||
|
|||
iPXE fails to boot anything
I switched from regular PXE to iPXE in the hope the Images required to download from the boot server via HTTP load quicker than with TFTP (and yes they do). I managed to set up a windows DHCP Server the correct way to get iPXE running and downloading the folowing menu script from my HTTP Server:
Code: #!ipxe I get lots of Problems because I cant boot anything. Selecting an option from the menu will load the kernel and the image but various things happen: Parted Magic (linux kernel) It boots for a short while and ends up in a kernel panic (Caps Lock and Scroll Lock blink rapidly) The Message is too long to read on the screen. memtest (Floppy Image) Ths Image loads and displays the memtest version selection screen. Selecting any version locks up the system just after start of specified Version NT Password and Registry Editor (iso) stops booting after the Message Loading Boot sector... booting... Acronis true Image Home (iso) Same as the Password reset tool. Since everything fails I am assuming I am doing something completely wrong. Using the classic method (PXE Linux and menu.c32) all these Options are working but again are limited to a TFTP Server. So far I would be happy if at least Parted Magic would boot. I verified that I am using the newest Version of provided tools and images. |
|||
2013-02-19, 10:59
Post: #2
|
|||
|
|||
RE: iPXE fails to boot anything
For the most part, your menu seems to be correct. You need to move the kernel command line parameter "iso" onto the "kernel" line instead of the "initrd" line, and you might want a "|| goto failed" at the end of the "choose" command.
Other than that I might be inclined to think your machine has a hardware problem. Have you thoroughly tested it with memtest and breakin? Does it come out clean? FYI: There is also a version of memtest86 that is compiled as a linux kernel (bzimage) which can run directly from a "kernel" line, no need to use memdisk. You might also try just "sanboot http://192.168.252.1/PXE/iso/atih11.iso" instead of using memdisk and see how that works instead. And finally, if you're using undionly.kpxe to boot, you might have better luck with ipxe.pxe (which uses iPXE-provided drivers for the hardware in question instead of vendor-provided drivers). |
|||
2013-02-19, 15:37
Post: #3
|
|||
|
|||
RE: iPXE fails to boot anything
(2013-02-19 10:59)robinsmidsrod Wrote: You need to move the kernel command line parameter "iso" onto the "kernel" line instead of the "initrd" lineDone, but it didn't get any farther (2013-02-19 10:59)robinsmidsrod Wrote: you might want a "|| goto failed" at the end of the "choose" command.Done (2013-02-19 10:59)robinsmidsrod Wrote: ...tested with memtest and breakin? Does it come out clean?memtest comes out ok with all tested Versions, the other software I have never heard of. If you can provide a link to it I will test it too. Memtest seemed to boot just fine, might be because it is a floppy image rather than an ISO Image (2013-02-19 10:59)robinsmidsrod Wrote: You might also try just "sanboot http://192.168.252.1/PXE/iso/atih11.iso" instead of using memdisk and see how that works instead.It definitely gets farther ahead and it also boots instantly, but no matter what iso I boot (and they all work over regular pxe or if booted with syslinux from a usb drive) at some point in the boot sequence it stops, I assume that the OS from the image sort of "drops the handle" to the iPXE sanboot layer. (2013-02-19 10:59)robinsmidsrod Wrote: you might have better luck with ipxe.pxe (which uses iPXE-provided drivers for the hardware in question instead of vendor-provided drivers).I tried it but the result is the same. |
|||
2013-02-21, 22:18
Post: #4
|
|||
|
|||
RE: iPXE fails to boot anything
memtest is a single binary application that is working in BIOS mode, that's why it's working without issues.
ISO files can't boot unless they are specifically made to work purely from a ramdisk that is loaded ONCE and then do not access the medium they are loaded from to fetch additional files. Any ISO that uses that approach will not work unless the initrd/ramdisk has special support in it to load the additional files off the network. Most ISOs that can also be loaded to a USB device have drivers for optical drives and other local storage (like USB) so that it can find additional files on those kind of devices automatically. Unfortunately it's not possible to load information from the network in a purely automatic way for most ISOs without additional configuration. E.g. Debian and Ubuntu LiveCDs can be booted from NFS or SMB because the ramdisk (casper) has support for that. I'm surprised to hear that atih11.iso works using regular PXE/TFTP, but not using ipxe. How do you boot atih11.iso using regular PXE? Do you actually mean, using pxelinux and memdisk? I think you should enable either serial or syslog logging so that you can post a log of what you experience with exact screenshots and error messages shown. Then we might be able to help you out more. |
|||
2013-02-21, 23:34
Post: #5
|
|||
|
|||
RE: iPXE fails to boot anything
My parted magic looks like this
Code: :parted-magic I started from Robins excellent bootstrap.ipxe and menu.ipxe https://gist.github.com/robinsmidsrod/2234639 |
|||
2013-02-22, 14:01
Post: #6
|
|||
|
|||
RE: iPXE fails to boot anything
(2013-02-21 22:18)robinsmidsrod Wrote: memtest is a single binary application that is working in BIOS mode, that's why it's working without issues.Not every Version works on every computer if booted with iPXE. The older versions (older than 4.0) usually work everywhere, the newer sometimes shows its blue background for a split second and then reboots the machine. (2013-02-21 22:18)robinsmidsrod Wrote: ISO files can't boot unless they are specifically made to work purely from a ramdisk that is loaded ONCE and then do not access the medium they are loaded from to fetch additional files.This is interesting because I have the same setup with syslinux an a USB flash drive and as soon the iso is loaded in memory and I see memdisk detecting the boot sector from it I unplug the device and everything works just fine with the Image in RAM. I can even boot some Windows restore disks with it. (2013-02-21 22:18)robinsmidsrod Wrote: I'm surprised to hear that atih11.iso works using regular PXE/TFTP, but not using ipxe. How do you boot atih11.iso using regular PXE? Do you actually mean, using pxelinux and memdisk?Exactly. This is my Menu File: --> This is a german setup Code: UI /boot/syslinux/menu.c32 (2013-02-21 22:18)robinsmidsrod Wrote: I think you should enable either serial or syslog logging so that you can post a log of what you experience with exact screenshots and error messages shown. Then we might be able to help you out more.If you can tell me how to do it I can send you a log. I should have a serial cable and a machine with a serial telnet application around, so I just need some information on how to setup serial logging |
|||
2013-02-22, 14:54
Post: #7
|
|||
|
|||
RE: iPXE fails to boot anything
Logging information is available from http://ipxe.org/console
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)