EFI PXE bootstrap and NBI image support
|
2016-10-14, 00:33
Post: #1
|
|||
|
|||
EFI PXE bootstrap and NBI image support
It appears the build for EFI PXE Bootstrap (32 or 64-but) with IMAGE_NBI enabled is broken. I cannot build it locally, or with Rom-o-Matic.
Is there some inherent incompatibility with these options? I need NBI image support because Clonezilla and DRBL still appear to use NBI images. Here is the log from a Rom-O-Matic build which failed: Code: Build failed: |
|||
2016-10-17, 19:32
Post: #2
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
EFI mode only supports to boot efi executables for the right cpu architechture. So you need to get a kernel with CONFIG_EFI_STUB enabled and recent enough to not be to buggy in EFI mode.
Use GitHub Discussions VRAM bin |
|||
2016-10-20, 06:35
(This post was last modified: 2016-10-20 06:56 by anary.)
Post: #3
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
The built-in EFI PXE boot correctly handles booting from DRBL, but when I use iPXE it gives the following error:
Code: Could not find config file (tftp)/grub-efi.cfg/grub.cfg- or (tftp)/grub-efi.cfg/grub.cfg Any ideas? The directory with grub-efi.cfg on the DRBL server appears to be: Code: /tftpboot/nbi_image/grub-efi.cfg/grub.cfg Any idea how to point it to the correct place? Or am I barking up the wrong tree with this line of reasoning and I do actually need NBI image support? |
|||
2016-10-20, 07:58
Post: #4
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
It seems you are trying to get grub.efi to work from ipxe? I would instead suggest to get a working efi kernel - which will work fine in ipxe.
For example http://b800.org/sysr/sysrcd.ipxe works in both legacy and efi. No magic just simple initrd and kernel with efi support. Then some extras to load squashfs. It is possible to add clonezilla on top of this, will however take a look on DRBL and see what they have. Use GitHub Discussions VRAM bin |
|||
2016-10-21, 02:38
(This post was last modified: 2016-10-21 02:40 by anary.)
Post: #5
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
I need to be able to start Clonezilla through DRBL because my setup involves initiating Clonezilla restores to about ~40 computers on-demand, and DRBL is used to automate the process. I am open to other suggestions.
This has been working great until recently when computers/laptops started arriving without CSM/BIOS or without uEFI Network Boot options, or without wired ethernet at all. In which case I add a USB Ethernet dongle to the machine and use iPXE to do a PXE boot through the USB dongle. In CSM/BIOS mode iPXE loads up DRBL just fine, but in uEFI it's giving me trouble. |
|||
2016-10-21, 22:59
Post: #6
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
Ok so tested to download the latest clonezilla zip: clonezilla-live-2.4.7-8-amd64.zip by selecting amd64 and zip on this page: http://clonezilla.org/downloads/download...nch=stable
extracted and created a ipxe script with this: Code: #!ipxe Which boots just fine in efi mode (at least until it goes of and tries to fetch the squashfs) This is based on the information at: http://clonezilla.org/livepxe.php Use GitHub Discussions VRAM bin |
|||
2016-10-23, 01:08
(This post was last modified: 2016-10-23 01:10 by anary.)
Post: #7
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
This may deserve a new thread since I don't think it has anything to do with NBI Image support anymore. It appears to be an issue with iPXE EFI chainloading a grub2 PXE EFI file.
I posted the same bug to the DRBL forum (https://sourceforge.net/p/clonezilla/dis...ff/?page=1) and Steven Shiau from the DRBL/Clonezilla project made a thread on the iPXE development mailing list about it: http://lists.ipxe.org/pipermail/ipxe-dev...05214.html |
|||
2016-10-23, 03:17
Post: #8
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
This is my sort of working configurations (both - legacy and efi):
NFS: Code: :clonezilla1 TFTP: Code: :clonezilla2 HTTP: Code: :clonezilla3 FTP: Code: :clonezilla4 ${boot-url} = http://ip/tftproot NFS is the fastest solution. pzdr |
|||
2016-10-23, 13:20
Post: #9
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
(2016-10-23 01:08)anary Wrote: This may deserve a new thread since I don't think it has anything to do with NBI Image support anymore. It appears to be an issue with iPXE EFI chainloading a grub2 PXE EFI file. Hu, Why are you chaining from ipxe to grub, when you can chain the kernel directly? Use GitHub Discussions VRAM bin |
|||
2016-10-23, 13:24
Post: #10
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
(2016-10-23 03:17)maggreg Wrote: This is my sort of working configurations (both - legacy and efi): What is needed is a squashfs loaded by ipxe option. That way you don't have to rely on the kernel/distribution or network configuration to work in the distro, instead we know that ipxe does the right thing and the init scripts can then just load squashfs from ramfs without any extra downloads. Use GitHub Discussions VRAM bin |
|||
2016-10-23, 17:46
(This post was last modified: 2016-10-23 17:49 by maggreg.)
Post: #11
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
(2016-10-23 13:24)NiKiZe Wrote: What is needed is a squashfs loaded by ipxe option. Try: Code: set args1 vga=791 boot=live union=overlay components net.ifnames=0 noprompt edd=on nomodeset nosplash username=user config locales=pl_PL.UTF-8 keyboard-layouts=pl timezone=Europe/Warsaw i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.blacklist=yes where file.cgz is: Code: find live | cpio -o -H newc | gzip -9 > file.cgz Sorry for my English. pzdr |
|||
2016-10-23, 19:49
(This post was last modified: 2016-10-23 19:51 by anary.)
Post: #12
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
(2016-10-23 13:20)NiKiZe Wrote: Hu, Why are you chaining from ipxe to grub, when you can chain the kernel directly? Because machines should not always enter Clonezilla, the default state is to boot the local OS. However, when a machine is selected to be re-imaged (via the drbl-client-switch command in the DRBL server), a Clonezilla menu item is generated in grub so that the machine enters Clonezilla on the next boot. |
|||
2016-10-23, 20:46
Post: #13
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
(2016-10-23 19:49)anary Wrote:(2016-10-23 13:20)NiKiZe Wrote: Hu, Why are you chaining from ipxe to grub, when you can chain the kernel directly? Then change that so it generates a ipxe menu instead, using grub at all when booting a linux from ipxe seems to be totally wrong. Use GitHub Discussions VRAM bin |
|||
2016-10-23, 22:34
(This post was last modified: 2016-10-23 22:35 by anary.)
Post: #14
|
|||
|
|||
RE: EFI PXE bootstrap and NBI image support
(2016-10-23 20:46)NiKiZe Wrote: Then change that so it generates a ipxe menu instead, using grub at all when booting a linux from ipxe seems to be totally wrong. Yes, I think re-writing DRBL/Clonezilla menu configuration scripts to generate iPXE menus would be the most correct solution, but would also be quite the undertaking. The question becomes "should iPXE be able to chainload grub EFI"? If there is a bug in chainloading iPXE to grub EFI (as suggested in http://lists.ipxe.org/pipermail/ipxe-dev...05214.html ), it may be fixed with considerably less effort than re-writing all the grub menu generating scripts DRBL uses. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)