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


On 31/08/2017, 14:02, "foreman-users@googlegroups.com on behalf of Lukas 
Zapletal" <foreman-users@googlegroups.com on behalf of l...@redhat.com> wrote:

    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 Wed, Aug 30, 2017 at 5:32 PM, Daniele Gregori (E4)
    <daniele.greg...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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.

Reply via email to