Cannot boot vmlinuz in efi
|
2015-12-31, 11:43
Post: #13
|
|||
|
|||
RE: Cannot boot vmlinuz in efi
SOLVED, finally.
So after 3 days I finally found a solution/workaround, I'll explain everything so other people might use this. Basically it all comes down to GRUB2, I created a standalone bootx64.efi image with a single menu entry for the desired installation image, in this case RHEL 6.7 To make the standalone bootx64.efi: install required packages Code: sudo yum install grub2-efi* grub2 uses tftp to download images, while i use http with ipxe, so I had to create a new folder structure in my tftp root folder (until now it only had ipxe for legacy and efi) Code: cd /tftpboot now the config file: Code: vim boot/grub/grub.cfg without "root=/dev/null" the installation couldn't find any hard-drives (no idea why) now, while in /tftpboot/grub2-efi/rhel67server/ run the following command: Code: grub2-mkstandalone -d /usr/lib/grub/x86_64-efi/ -O x86_64-efi --fonts="unicode" -o bootx64.efi boot/grub/grub.cfg you'll see a new file "bootx64.efi", copy to the same directory the kernel and initrd files of the wanted installation. Finally in ipxe I just chain to the newly created file: Code: :rhel67-efi And that's it, work perfectly fine, hope this helps someone else, I'm going to add some older versions of RHEL and hopefully it'll work for them as well. Only issue is that grub uses tftp and it's a lot slower, loading the same files (vmlinuz, initrd.img) via http takes less then a second, while via tftp it can take up to 15-20 seconds, is it possible from grub to use http instead of tftp? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)