Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chain grub/grub2 failed
2017-01-20, 14:16
Post: #1
Chain grub/grub2 failed
Hey, hope this is not a beginner mistake.

I want to chain grub and/or grub2 for installing CentOS6 and/or CentOS7 because trying to load kernel and initrd directly from iPXE failed.

I have a script for iPXE which looks like this:

Code:
#!ipxe
chain tftp://xxx.xxx.xx.xx/centOS7/grubx64.efi

I always end up in the grub shell. My first thought was that the grub.cfg file is not loaded but I don't know how to.

Thanks for your help.


Additional Information:

Handling grubx64.efi directly from my dhcpd.conf works fine for me. So this:

Code:
class "pxeclients" {
             match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
              next-server xxx.xxx.xx.xx;
             if option architecture-type = 00:07 {
                    filename "centOS7/grubx64.efi";
              } else {
                    filename "xxxx";
              }

in dhcpd.conf works fine, but

Code:
filename "ipxe.efi";

with the script above doesn't work and ends up in the grub shell.
Find all posts by this user
Quote this message in a reply
2017-08-24, 23:46
Post: #2
RE: Chain grub/grub2 failed
I too am having the same issue. I'm unable to get GRUB2 to search for the boot.cfg files when chainloading from iPXE.

Its working fine when the grubx64.efi is provided over DHCP. However the same functionality is not available through iPXE chainloading.

See the TFTP log for iPXE chainload to GRUB2:
Code:
Aug 24 23:25:09 dhcpd: DHCPDISCOVER from 00:50:56:83:f0:cc via ens192
Aug 24 23:25:09 dhcpd: DHCPOFFER on 82.150.110.231 to 00:50:56:83:f0:cc via ens192
Aug 24 23:25:13 dhcpd: DHCPREQUEST for 82.150.110.231 (82.150.110.46) from 00:50:56:83:f0:cc via ens192
Aug 24 23:25:13 dhcpd: DHCPACK on 82.150.110.231 to 00:50:56:83:f0:cc via ens192
Aug 24 23:25:13 in.tftpd[7636]: RRQ from 82.150.110.231 filename ipxe/snponly.efi
Aug 24 23:25:13 in.tftpd[7636]: tftp: client does not accept options
Aug 24 23:25:13 in.tftpd[7637]: RRQ from 82.150.110.231 filename ipxe/snponly.efi
Aug 24 23:25:13 in.tftpd[7637]: Client 82.150.110.231 finished ipxe/snponly.efi
Aug 24 23:25:15 dhcpd: DHCPDISCOVER from 00:50:56:83:f0:cc via ens192
Aug 24 23:25:16 dhcpd: DHCPOFFER on 82.150.110.230 to 00:50:56:83:f0:cc via ens192
Aug 24 23:25:18 dhcpd: DHCPREQUEST for 82.150.110.230 (82.150.110.46) from 00:50:56:83:f0:cc via ens192
Aug 24 23:25:18 dhcpd: DHCPACK on 82.150.110.230 to 00:50:56:83:f0:cc via ens192
Aug 24 23:25:18 in.tftpd[7639]: RRQ from 82.150.110.230 filename ipxe_boot.ipxe
Aug 24 23:25:18 in.tftpd[7639]: Client 82.150.110.230 finished ipxe_boot.ipxe
Aug 24 23:25:18 in.tftpd[7640]: RRQ from 82.150.110.230 filename grub2/grub.cfg-01-00-50-56-83-f0-cc
Aug 24 23:25:18 in.tftpd[7640]: Client 82.150.110.230 finished grub2/grub.cfg-01-00-50-56-83-f0-cc
Aug 24 23:25:38 in.tftpd[7648]: RRQ from 82.150.110.230 filename grub2/grubx64.efi
Aug 24 23:25:38 in.tftpd[7648]: Client 82.150.110.230 finished grub2/grubx64.efi

TFTP log for DHCP TFTP delivery of grub2:
Code:
Aug 24 23:24:20 in.tftpd[7555]: RRQ from 82.150.110.231 filename grub2/grubx64.efi
Aug 24 23:24:20 opbuildproxy03p in.tftpd[7555]: tftp: client does not accept options
Aug 24 23:24:20 in.tftpd[7556]: RRQ from 82.150.110.231 filename grub2/grubx64.efi
Aug 24 23:24:20 in.tftpd[7556]: Client 82.150.110.231 finished grub2/grubx64.efi
Aug 24 23:24:20 in.tftpd[7557]: RRQ from 82.150.110.231 filename /grub2/grub.cfg-01-00-50-56-83-f0-cc
Aug 24 23:24:20 in.tftpd[7557]: Client 82.150.110.231 finished /grub2/grub.cfg-01-00-50-56-83-f0-cc
Aug 24 23:24:20 in.tftpd[7558]: RRQ from 82.150.110.231 filename /EFI/redhat/x86_64-efi/command.lst
Aug 24 23:24:20 in.tftpd[7558]: Client 82.150.110.231 File not found /EFI/redhat/x86_64-efi/command.lst
Aug 24 23:24:20 in.tftpd[7559]: RRQ from 82.150.110.231 filename /EFI/redhat/x86_64-efi/fs.lst
Aug 24 23:24:20 in.tftpd[7559]: Client 82.150.110.231 File not found /EFI/redhat/x86_64-efi/fs.lst
Aug 24 23:24:20 in.tftpd[7560]: RRQ from 82.150.110.231 filename /EFI/redhat/x86_64-efi/crypto.lst
Aug 24 23:24:20 in.tftpd[7560]: Client 82.150.110.231 File not found /EFI/redhat/x86_64-efi/crypto.lst
Aug 24 23:24:20 in.tftpd[7561]: RRQ from 82.150.110.231 filename /EFI/redhat/x86_64-efi/terminal.lst
Aug 24 23:24:20 in.tftpd[7561]: Client 82.150.110.231 File not found /EFI/redhat/x86_64-efi/terminal.lst
Aug 24 23:24:20 in.tftpd[7562]: RRQ from 82.150.110.231 filename /grub2/grub.cfg-01-00-50-56-83-f0-cc
Aug 24 23:24:20 in.tftpd[7562]: Client 82.150.110.231 finished /grub2/grub.cfg-01-00-50-56-83-f0-cc
Aug 24 23:24:20 in.tftpd[7563]: RRQ from 82.150.110.231 filename /grub2/grub.cfg-01------
Aug 24 23:24:20 in.tftpd[7563]: Client 82.150.110.231 File not found /grub2/grub.cfg-01------
Find all posts by this user
Quote this message in a reply
Post Reply 




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