Dhcp filename option for pxeboot of Power PC architecture

Hi all,
I have some IBM Power PC 8 server to install but I cannot find a way to set the dhcp option:

filename=core.elf

In dhcp lease file to perform the correct pxe installation.
What I have to change in the PXE template? Is there a variable to set to define the “filename” ?
Or there is a best practice to install PPC with Foreman?

Thank you.

Daniele

Hello,

with recent versions of Foreman (1.14+) you set PXELoader to Grub2 EFI
and then the filename will be grubppc64le.efi or grubppc64.efi
depending on endian.

Note the incorrect extension (PPC is not EFI compatible), we are
tracking this under Bug #16706: Rename POWER DHCP filenames to elf - Foreman and we
will rename this properly according to grub2-mknetdir:
Bug #20815: Ship regexp.mod in foreman-bootloaders - Foreman

So for you at the moment is best to create a (relative) symlink named
grubppc64.efi -> path/to/your/core.elf

LZ

··· On Wed, Aug 30, 2017 at 5:32 PM, Daniele Gregori (E4) wrote: > Hi all, > I have some IBM Power PC 8 server to install but I cannot find a way to set the dhcp option: > > filename=core.elf > > In dhcp lease file to perform the correct pxe installation. > What I have to change in the PXE template? Is there a variable to set to define the “filename” ? > Or there is a best practice to install PPC with Foreman? > > Thank you. > > Daniele > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal

Hi Lukas,
I followed your instructions, first I did the symbolic link with:

[root@srv-install grub2]#pwd
/var/lib/tftpboot/grub2
[root@srv-install grub2]# ln -s /var/lib/tftpboot/core.elf grubppc64le.efi

And I changed also the PXE GRUB2 UEFI template in the operating system tab then I checked also the dhcpd.lease and there is the right filename:

host davide13.e4srv {
dynamic;
hardware ethernet 70:e2:84:14:1c:13;
fixed-address 172.16.2.207;
supersede server.filename = "grub2/grubppc64le.efi";
supersede server.next-server = ac:10:02:02;
supersede host-name = "davide13.e4srv";
}

When I boot the system I receive this error message:

Aug 31 17:47:53 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032
Aug 31 17:47:53 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032
Aug 31 17:47:54 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207.
Aug 31 17:47:54 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207
Aug 31 17:47:54 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24
Aug 31 17:47:54 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032
Aug 31 17:47:54 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032
Aug 31 17:47:54 srv-install in.tftpd[3851]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13
Aug 31 17:47:54 srv-install in.tftpd[3851]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3852]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002CF
Aug 31 17:47:54 srv-install in.tftpd[3852]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3853]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002C
Aug 31 17:47:54 srv-install in.tftpd[3853]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3854]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002
Aug 31 17:47:54 srv-install in.tftpd[3854]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3855]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC100
Aug 31 17:47:54 srv-install in.tftpd[3855]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3856]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC10
Aug 31 17:47:54 srv-install in.tftpd[3856]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3857]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1
Aug 31 17:47:54 srv-install in.tftpd[3857]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3858]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC
Aug 31 17:47:54 srv-install in.tftpd[3858]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3859]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/A
Aug 31 17:47:54 srv-install in.tftpd[3859]: sending NAK (1, File not found) to 172.16.2.207
Aug 31 17:47:54 srv-install in.tftpd[3860]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/default
Aug 31 17:47:54 srv-install in.tftpd[3860]: sending NAK (1, File not found) to 172.16.2.207

I noted also that this file:

-rw-r–r-- 1 foreman-proxy foreman-proxy 539 Aug 31 16:40 grub.cfg-01-70-e2-84-14-1c-13

that contains:

[root@srv-install grub2]# cat grub.cfg-01-70-e2-84-14-1c-13

This file was deployed via 'Kickstart default PXEGrub2' template

set default=0
set timeout=10

menuentry 'Kickstart default PXEGrub2' {
linuxefi boot/CentOS_PPc-7.3.1611-ppc64le-vmlinuz ks=http://srv-install.e4srv/unattended/provision?token=667ddd59-732d-406b-849b-af906342689f network ksdevice=bootif ks.device=bootif BOOTIF=00-70-e2-84-14-1c-13 kssendmac ks.sendmac inst.ks.sendmac ip=172.16.2.207::172.16.2.1:255.255.255.0:::none nameserver=172.16.2.2 nameserver=8.8.8.8
initrdefi boot/CentOS_PPc-7.3.1611-ppc64le-initrd.img
}
[root@srv-install grub2]#

Is in the directory:

/var/lib/tftpboot/grub2

The name and the location differs from the name/location find by the system.
Last but not least my Foreman version is 1.15.2.

Any hints?

Thank you

Daniele

Hello,

with recent versions of Foreman (1.14+) you set PXELoader to Grub2 EFI
and then the filename will be grubppc64le.efi or grubppc64.efi
depending on endian.

Note the incorrect extension (PPC is not EFI compatible), we are
tracking this under http://projects.theforeman.org/issues/16706 and we
will rename this properly according to grub2-mknetdir:
http://projects.theforeman.org/issues/20815

So for you at the moment is best to create a (relative) symlink named
grubppc64.efi -> path/to/your/core.elf

LZ
··· On 31/08/2017, 14:02, "foreman-users@googlegroups.com on behalf of Lukas Zapletal" wrote:
On Wed, Aug 30, 2017 at 5:32 PM, Daniele Gregori (E4) <Daniele.Gregori@e4company.com> wrote:
> Hi all,
>     I have some IBM Power PC 8 server to install but I cannot find a way to set the dhcp option:
>
> filename=core.elf
>
> In dhcp lease file to perform the correct pxe installation.
> What I have to change in the PXE template? Is there a variable to set to define the “filename” ?
> Or there is a best practice to install PPC with Foreman?
>
> Thank you.
>
> Daniele
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.



-- 
Later,
  Lukas @lzap Zapletal

-- 
You received this message because you are subscribed to the Google Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Is this non-Red Hat OS? I mean the system that serves the DHCP/TFTP?

> [root@srv-install grub2]# ln -s /var/lib/tftpboot/core.elf grubppc64le.efi

TFTP runs in chroot, never do absolute symlinks, only relative. Not
sure if this is same for non-RH OS tho.

> Aug 31 17:47:54 srv-install in.tftpd[3851]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13

This is weird, the path should be /grub2.

Where this core.elf comes from? Can you try grubppc64le.efi from
foreman-bootloaders package? We don't yet have debian packages, you
can just unpack upstream tarball here:

http://downloads.theforeman.org/foreman-bootloaders/

If that fails, try to build core.elf. yourself with grub2-mkimage:

https://www.theforeman.org/2016/09/new-post.html

LZ

Hi Lukas,
The system composed by Foreman (tftp) server and Power PC client is centos 7.
I take the Foreman bootloader and move the grubppc64le.efi to the /var/lib/tftpboot/grub2 directory with the same result, from /var/log/messages:

Sep 1 09:26:54 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032
Sep 1 09:26:54 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032
Sep 1 09:26:54 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207.
Sep 1 09:26:54 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207
Sep 1 09:26:54 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24
Sep 1 09:26:54 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032
Sep 1 09:26:54 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032
Sep 1 09:26:54 srv-install in.tftpd[18238]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13
Sep 1 09:26:54 srv-install in.tftpd[18238]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18239]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002CF
Sep 1 09:26:54 srv-install in.tftpd[18239]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18240]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002C
Sep 1 09:26:54 srv-install in.tftpd[18240]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18241]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002
Sep 1 09:26:54 srv-install in.tftpd[18241]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18242]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC100
Sep 1 09:26:54 srv-install in.tftpd[18242]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18243]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC10
Sep 1 09:26:54 srv-install in.tftpd[18243]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18244]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1
Sep 1 09:26:54 srv-install in.tftpd[18244]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18245]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC
Sep 1 09:26:54 srv-install in.tftpd[18245]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18246]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/A
Sep 1 09:26:54 srv-install in.tftpd[18246]: sending NAK (1, File not found) to 172.16.2.207
Sep 1 09:26:54 srv-install in.tftpd[18247]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/default
Sep 1 09:26:54 srv-install in.tftpd[18247]: sending NAK (1, File not found) to 172.16.2.207

I don’t understand who set the file: /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13.
I tried also to do:

cp grub.cfg-01-54-ab-3a-71-3f-d6 pxelinux.cfg/AC1002CF

then the messages wrote:

Sep 1 10:43:05 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found)
Sep 1 10:43:06 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032
Sep 1 10:43:06 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032
Sep 1 10:43:06 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207.
Sep 1 10:43:06 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207
Sep 1 10:43:06 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24
Sep 1 10:43:06 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032
Sep 1 10:43:06 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032
Sep 1 10:43:06 srv-install in.tftpd[17038]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13
Sep 1 10:43:27 srv-install dhcpd: DHCPDISCOVER from a4:bf:01:05:fe:87 (DCMIA4BF0105FE85) via 172.17.0.1
Sep 1 10:43:30 srv-install in.tftpd[17050]: RRQ from 172.16.2.207 filename /grub2/grubppc64le.efi
Sep 1 10:43:30 srv-install dhcpd: none: host unknown.
Sep 1 10:44:32 srv-install dhcpd: none: host unknown.
Sep 1 10:44:38 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found)

Without more info.

From the client side I receive the messages:

booting netboot enP5p7s0f0 (grub2/grubppc64le.efi).
Error: kexec load failed

There is something that escapes me.
Can I improve the debug with more informations?
Hints?

Thanks

Daniele

Is this non-Red Hat OS? I mean the system that serves the DHCP/TFTP?

&gt; [root@srv-install grub2]# ln -s /var/lib/tftpboot/core.elf   grubppc64le.efi

TFTP runs in chroot, never do absolute symlinks, only relative. Not
sure if this is same for non-RH OS tho.

&gt; Aug 31 17:47:54 srv-install in.tftpd[3851]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13

This is weird, the path should be /grub2.

Where this core.elf comes from? Can you try grubppc64le.efi from
foreman-bootloaders package? We don&#39;t yet have debian packages, you
can just unpack upstream tarball here:

http://downloads.theforeman.org/foreman-bootloaders/

If that fails, try to build core.elf. yourself with grub2-mkimage:

https://www.theforeman.org/2016/09/new-post.html

LZ
··· On 01/09/2017, 09:00, "foreman-users@googlegroups.com on behalf of Lukas Zapletal" wrote:
-- 
You received this message because you are subscribed to the Google Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

First of all, is your PPC CLIENT big or little endian? I see it is
trying to load little endian which is I believe less common to have.

Anyway, let's rule out Foreman completely, can you setup DHCP and TFTP
using our official documentation? Including generating tftpboot
directory structure via grub2-mknetdir, make sure to use the target
platform with correct endian, then scp the files onto TFTP server,
setup DHCP and try then:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/chap-installation-server-setup.html#sect-network-boot-setup-ppc-grub2

The filename should be set correctly to
"boot/grub2/powerpc-ieee1275/core.elf" now. Does it load from correct
paths now?

I have built the core.elf from RHEL 7.4, can you try that as well?
http://people.redhat.com/~lzapleta/test/grub2-ppc-test.tar.xz

Let's find out that first.

··· On Fri, Sep 1, 2017 at 10:51 AM, Daniele Gregori (E4) wrote: > Hi Lukas, > The system composed by Foreman (tftp) server and Power PC client is centos 7. > I take the Foreman bootloader and move the grubppc64le.efi to the /var/lib/tftpboot/grub2 directory with the same result, from /var/log/messages: > > Sep 1 09:26:54 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032 > Sep 1 09:26:54 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 > Sep 1 09:26:54 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207. > Sep 1 09:26:54 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207 > Sep 1 09:26:54 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24 > Sep 1 09:26:54 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032 > Sep 1 09:26:54 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 > Sep 1 09:26:54 srv-install in.tftpd[18238]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 > Sep 1 09:26:54 srv-install in.tftpd[18238]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18239]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002CF > Sep 1 09:26:54 srv-install in.tftpd[18239]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18240]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002C > Sep 1 09:26:54 srv-install in.tftpd[18240]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18241]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002 > Sep 1 09:26:54 srv-install in.tftpd[18241]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18242]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC100 > Sep 1 09:26:54 srv-install in.tftpd[18242]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18243]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC10 > Sep 1 09:26:54 srv-install in.tftpd[18243]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18244]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1 > Sep 1 09:26:54 srv-install in.tftpd[18244]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18245]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC > Sep 1 09:26:54 srv-install in.tftpd[18245]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18246]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/A > Sep 1 09:26:54 srv-install in.tftpd[18246]: sending NAK (1, File not found) to 172.16.2.207 > Sep 1 09:26:54 srv-install in.tftpd[18247]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/default > Sep 1 09:26:54 srv-install in.tftpd[18247]: sending NAK (1, File not found) to 172.16.2.207 > > I don’t understand who set the file: /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13. > I tried also to do: > > cp grub.cfg-01-54-ab-3a-71-3f-d6 pxelinux.cfg/AC1002CF > > then the messages wrote: > > Sep 1 10:43:05 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found) > Sep 1 10:43:06 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032 > Sep 1 10:43:06 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 > Sep 1 10:43:06 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207. > Sep 1 10:43:06 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207 > Sep 1 10:43:06 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24 > Sep 1 10:43:06 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032 > Sep 1 10:43:06 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 > Sep 1 10:43:06 srv-install in.tftpd[17038]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 > Sep 1 10:43:27 srv-install dhcpd: DHCPDISCOVER from a4:bf:01:05:fe:87 (DCMIA4BF0105FE85) via 172.17.0.1 > Sep 1 10:43:30 srv-install in.tftpd[17050]: RRQ from 172.16.2.207 filename /grub2/grubppc64le.efi > Sep 1 10:43:30 srv-install dhcpd: none: host unknown. > Sep 1 10:44:32 srv-install dhcpd: none: host unknown. > Sep 1 10:44:38 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found) > > Without more info. > > From the client side I receive the messages: > > booting netboot enP5p7s0f0 (grub2/grubppc64le.efi). > Error: kexec load failed > > There is something that escapes me. > Can I improve the debug with more informations? > Hints? > > Thanks > > Daniele > > > > > On 01/09/2017, 09:00, "foreman-users@googlegroups.com on behalf of Lukas Zapletal" wrote: > > Is this non-Red Hat OS? I mean the system that serves the DHCP/TFTP? > > > [root@srv-install grub2]# ln -s /var/lib/tftpboot/core.elf grubppc64le.efi > > TFTP runs in chroot, never do absolute symlinks, only relative. Not > sure if this is same for non-RH OS tho. > > > Aug 31 17:47:54 srv-install in.tftpd[3851]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 > > This is weird, the path should be /grub2. > > Where this core.elf comes from? Can you try grubppc64le.efi from > foreman-bootloaders package? We don't yet have debian packages, you > can just unpack upstream tarball here: > > http://downloads.theforeman.org/foreman-bootloaders/ > > If that fails, try to build core.elf. yourself with grub2-mkimage: > > https://www.theforeman.org/2016/09/new-post.html > > LZ > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal

Danielle,

I've talked to our Grub2/PXE/BOOTP/POWER experts, can you get us:

dhcpd.conf
grub.conf
network comm dump (wireshark or similar)

Thanks

··· On Mon, Sep 4, 2017 at 9:19 AM, Lukas Zapletal wrote: > First of all, is your PPC CLIENT big or little endian? I see it is > trying to load little endian which is I believe less common to have. > > Anyway, let's rule out Foreman completely, can you setup DHCP and TFTP > using our official documentation? Including generating tftpboot > directory structure via grub2-mknetdir, make sure to use the target > platform with correct endian, then scp the files onto TFTP server, > setup DHCP and try then: > > https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/chap-installation-server-setup.html#sect-network-boot-setup-ppc-grub2 > > The filename should be set correctly to > "boot/grub2/powerpc-ieee1275/core.elf" now. Does it load from correct > paths now? > > I have built the core.elf from RHEL 7.4, can you try that as well? > http://people.redhat.com/~lzapleta/test/grub2-ppc-test.tar.xz > > Let's find out that first. > > > > > On Fri, Sep 1, 2017 at 10:51 AM, Daniele Gregori (E4) > wrote: >> Hi Lukas, >> The system composed by Foreman (tftp) server and Power PC client is centos 7. >> I take the Foreman bootloader and move the grubppc64le.efi to the /var/lib/tftpboot/grub2 directory with the same result, from /var/log/messages: >> >> Sep 1 09:26:54 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 09:26:54 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 09:26:54 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207. >> Sep 1 09:26:54 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207 >> Sep 1 09:26:54 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24 >> Sep 1 09:26:54 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 09:26:54 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 09:26:54 srv-install in.tftpd[18238]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 >> Sep 1 09:26:54 srv-install in.tftpd[18238]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18239]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002CF >> Sep 1 09:26:54 srv-install in.tftpd[18239]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18240]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002C >> Sep 1 09:26:54 srv-install in.tftpd[18240]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18241]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002 >> Sep 1 09:26:54 srv-install in.tftpd[18241]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18242]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC100 >> Sep 1 09:26:54 srv-install in.tftpd[18242]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18243]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC10 >> Sep 1 09:26:54 srv-install in.tftpd[18243]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18244]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1 >> Sep 1 09:26:54 srv-install in.tftpd[18244]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18245]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC >> Sep 1 09:26:54 srv-install in.tftpd[18245]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18246]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/A >> Sep 1 09:26:54 srv-install in.tftpd[18246]: sending NAK (1, File not found) to 172.16.2.207 >> Sep 1 09:26:54 srv-install in.tftpd[18247]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/default >> Sep 1 09:26:54 srv-install in.tftpd[18247]: sending NAK (1, File not found) to 172.16.2.207 >> >> I don’t understand who set the file: /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13. >> I tried also to do: >> >> cp grub.cfg-01-54-ab-3a-71-3f-d6 pxelinux.cfg/AC1002CF >> >> then the messages wrote: >> >> Sep 1 10:43:05 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found) >> Sep 1 10:43:06 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 10:43:06 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 10:43:06 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207. >> Sep 1 10:43:06 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207 >> Sep 1 10:43:06 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24 >> Sep 1 10:43:06 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 10:43:06 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >> Sep 1 10:43:06 srv-install in.tftpd[17038]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 >> Sep 1 10:43:27 srv-install dhcpd: DHCPDISCOVER from a4:bf:01:05:fe:87 (DCMIA4BF0105FE85) via 172.17.0.1 >> Sep 1 10:43:30 srv-install in.tftpd[17050]: RRQ from 172.16.2.207 filename /grub2/grubppc64le.efi >> Sep 1 10:43:30 srv-install dhcpd: none: host unknown. >> Sep 1 10:44:32 srv-install dhcpd: none: host unknown. >> Sep 1 10:44:38 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found) >> >> Without more info. >> >> From the client side I receive the messages: >> >> booting netboot enP5p7s0f0 (grub2/grubppc64le.efi). >> Error: kexec load failed >> >> There is something that escapes me. >> Can I improve the debug with more informations? >> Hints? >> >> Thanks >> >> Daniele >> >> >> >> >> On 01/09/2017, 09:00, "foreman-users@googlegroups.com on behalf of Lukas Zapletal" wrote: >> >> Is this non-Red Hat OS? I mean the system that serves the DHCP/TFTP? >> >> > [root@srv-install grub2]# ln -s /var/lib/tftpboot/core.elf grubppc64le.efi >> >> TFTP runs in chroot, never do absolute symlinks, only relative. Not >> sure if this is same for non-RH OS tho. >> >> > Aug 31 17:47:54 srv-install in.tftpd[3851]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 >> >> This is weird, the path should be /grub2. >> >> Where this core.elf comes from? Can you try grubppc64le.efi from >> foreman-bootloaders package? We don't yet have debian packages, you >> can just unpack upstream tarball here: >> >> http://downloads.theforeman.org/foreman-bootloaders/ >> >> If that fails, try to build core.elf. yourself with grub2-mkimage: >> >> https://www.theforeman.org/2016/09/new-post.html >> >> LZ >> >> -- >> You received this message because you are subscribed to the Google Groups "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> You received this message because you are subscribed to the Google Groups "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Later, > Lukas @lzap Zapletal


Later,
Lukas @lzap Zapletal

Few more questions:

  • What kind of POWER hardware is it? Some POWER machines have network
    cards with Petitboot firmware which is capable of downloading
    configuration in PXELinux syntax and then directly loading the kernel.
    In this case, you need to provide your own PXELinux configuration (you
    can use foreman templating capabilities to generate the contents of
    course), but we don't have any templates with this - not sure if
    default PXELinux templates will work, I guess they will not (kernel
    and initramdisk).

More info here:

http://jk.ozlabs.org/blog/post/158/netbooting-petitboot/

If this is the case, I think you want to create your host in Foreman
with PXELinux BIOS flag and it will have filename option "pxelinux.0"
which should be ignored by petitboot and then it will try to load the
configuration from standard paths.

··· On Tue, Sep 5, 2017 at 7:52 AM, Lukas Zapletal wrote: > Danielle, > > I've talked to our Grub2/PXE/BOOTP/POWER experts, can you get us: > > dhcpd.conf > grub.conf > network comm dump (wireshark or similar) > > Thanks > > On Mon, Sep 4, 2017 at 9:19 AM, Lukas Zapletal wrote: >> First of all, is your PPC CLIENT big or little endian? I see it is >> trying to load little endian which is I believe less common to have. >> >> Anyway, let's rule out Foreman completely, can you setup DHCP and TFTP >> using our official documentation? Including generating tftpboot >> directory structure via grub2-mknetdir, make sure to use the target >> platform with correct endian, then scp the files onto TFTP server, >> setup DHCP and try then: >> >> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/chap-installation-server-setup.html#sect-network-boot-setup-ppc-grub2 >> >> The filename should be set correctly to >> "boot/grub2/powerpc-ieee1275/core.elf" now. Does it load from correct >> paths now? >> >> I have built the core.elf from RHEL 7.4, can you try that as well? >> http://people.redhat.com/~lzapleta/test/grub2-ppc-test.tar.xz >> >> Let's find out that first. >> >> >> >> >> On Fri, Sep 1, 2017 at 10:51 AM, Daniele Gregori (E4) >> wrote: >>> Hi Lukas, >>> The system composed by Foreman (tftp) server and Power PC client is centos 7. >>> I take the Foreman bootloader and move the grubppc64le.efi to the /var/lib/tftpboot/grub2 directory with the same result, from /var/log/messages: >>> >>> Sep 1 09:26:54 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 09:26:54 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 09:26:54 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207. >>> Sep 1 09:26:54 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207 >>> Sep 1 09:26:54 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24 >>> Sep 1 09:26:54 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 09:26:54 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 09:26:54 srv-install in.tftpd[18238]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 >>> Sep 1 09:26:54 srv-install in.tftpd[18238]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18239]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002CF >>> Sep 1 09:26:54 srv-install in.tftpd[18239]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18240]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002C >>> Sep 1 09:26:54 srv-install in.tftpd[18240]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18241]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1002 >>> Sep 1 09:26:54 srv-install in.tftpd[18241]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18242]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC100 >>> Sep 1 09:26:54 srv-install in.tftpd[18242]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18243]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC10 >>> Sep 1 09:26:54 srv-install in.tftpd[18243]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18244]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC1 >>> Sep 1 09:26:54 srv-install in.tftpd[18244]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18245]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/AC >>> Sep 1 09:26:54 srv-install in.tftpd[18245]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18246]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/A >>> Sep 1 09:26:54 srv-install in.tftpd[18246]: sending NAK (1, File not found) to 172.16.2.207 >>> Sep 1 09:26:54 srv-install in.tftpd[18247]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/default >>> Sep 1 09:26:54 srv-install in.tftpd[18247]: sending NAK (1, File not found) to 172.16.2.207 >>> >>> I don’t understand who set the file: /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13. >>> I tried also to do: >>> >>> cp grub.cfg-01-54-ab-3a-71-3f-d6 pxelinux.cfg/AC1002CF >>> >>> then the messages wrote: >>> >>> Sep 1 10:43:05 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found) >>> Sep 1 10:43:06 srv-install dhcpd: DHCPDISCOVER from 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 10:43:06 srv-install dhcpd: DHCPOFFER on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 10:43:06 srv-install dhcpd: Dynamic and static leases present for 172.16.2.207. >>> Sep 1 10:43:06 srv-install dhcpd: Remove host declaration davide13.e4srv or remove 172.16.2.207 >>> Sep 1 10:43:06 srv-install dhcpd: from the dynamic address pool for 172.16.2.0/24 >>> Sep 1 10:43:06 srv-install dhcpd: DHCPREQUEST for 172.16.2.207 (172.16.2.2) from 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 10:43:06 srv-install dhcpd: DHCPACK on 172.16.2.207 to 70:e2:84:14:1c:13 via eno16780032 >>> Sep 1 10:43:06 srv-install in.tftpd[17038]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 >>> Sep 1 10:43:27 srv-install dhcpd: DHCPDISCOVER from a4:bf:01:05:fe:87 (DCMIA4BF0105FE85) via 172.17.0.1 >>> Sep 1 10:43:30 srv-install in.tftpd[17050]: RRQ from 172.16.2.207 filename /grub2/grubppc64le.efi >>> Sep 1 10:43:30 srv-install dhcpd: none: host unknown. >>> Sep 1 10:44:32 srv-install dhcpd: none: host unknown. >>> Sep 1 10:44:38 srv-install dhcpd: DHCPRELEASE of 172.16.2.207 from 70:e2:84:14:1c:13 via eno16780032 (not found) >>> >>> Without more info. >>> >>> From the client side I receive the messages: >>> >>> booting netboot enP5p7s0f0 (grub2/grubppc64le.efi). >>> Error: kexec load failed >>> >>> There is something that escapes me. >>> Can I improve the debug with more informations? >>> Hints? >>> >>> Thanks >>> >>> Daniele >>> >>> >>> >>> >>> On 01/09/2017, 09:00, "foreman-users@googlegroups.com on behalf of Lukas Zapletal" wrote: >>> >>> Is this non-Red Hat OS? I mean the system that serves the DHCP/TFTP? >>> >>> > [root@srv-install grub2]# ln -s /var/lib/tftpboot/core.elf grubppc64le.efi >>> >>> TFTP runs in chroot, never do absolute symlinks, only relative. Not >>> sure if this is same for non-RH OS tho. >>> >>> > Aug 31 17:47:54 srv-install in.tftpd[3851]: RRQ from 172.16.2.207 filename /grub2/pxelinux.cfg/01-70-e2-84-14-1c-13 >>> >>> This is weird, the path should be /grub2. >>> >>> Where this core.elf comes from? Can you try grubppc64le.efi from >>> foreman-bootloaders package? We don't yet have debian packages, you >>> can just unpack upstream tarball here: >>> >>> http://downloads.theforeman.org/foreman-bootloaders/ >>> >>> If that fails, try to build core.elf. yourself with grub2-mkimage: >>> >>> https://www.theforeman.org/2016/09/new-post.html >>> >>> LZ >>> >>> -- >>> You received this message because you are subscribed to the Google Groups "Foreman users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >>> To post to this group, send email to foreman-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups "Foreman users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. >>> To post to this group, send email to foreman-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Later, >> Lukas @lzap Zapletal > > > > -- > Later, > Lukas @lzap Zapletal


Later,
Lukas @lzap Zapletal