uefi pxe not working

Gordon Messmer gordon.messmer at gmail.com
Wed Nov 18 17:24:55 UTC 2015


On 11/17/2015 07:19 PM, Louis Garcia wrote:
> I am having trouble setting up PXE for F23. I have configured dnsmasq  > for older BIOS pxe and all is working. On newer uefi I get a ip > 
assigned and get to the PXE Menu. After that everything quits and > 
returns to the bios. Any know how to set this up? I could only find > 
dated information and nothing current for uefi. shim.efi and > 
grubx64.efi has something to do with it.

If you want to do this manually:

In ISC dhcpd.conf, use:

          next-server config.example.com;
          if option architecture-type = 00:07 {
                  filename "shim.efi";
          } else {
                  filename "pxelinux.0";
          }

Then, in your tftp server you'll need 3 files from the shim and
grub2-efi packages.  I used this script:

---
#!/bin/sh

wget
http://centos.s.uw.edu/centos/7/os/x86_64/Packages/shim-0.7-5.2.el7.centos.2.x86_64.rpm 


wget
http://centos.s.uw.edu/centos/7/os/x86_64/Packages/grub2-efi-2.02-0.16.el7.centos.x86_64.rpm 



mkdir tmp

rpm2cpio shim-0.7-5.2.el7.centos.2.x86_64.rpm | (cd tmp && cpio -ivd)
rpm2cpio grub2-efi-2.02-0.16.el7.centos.x86_64.rpm | (cd tmp && cpio -ivd)

cp tmp/boot/efi/EFI/centos/shim.efi ../
cp tmp/boot/efi/EFI/centos/grubx64.efi ../
cp tmp/boot/efi/EFI/centos/fonts/unicode.pf2 ../grub/fonts/

rm tmp -rf
---

Configuration files are in EFI/centos (relative to the TFTP root) rather
than pxelinux.cfg.  They're named grub.cfg-01-<mac>, and use grub syntax
rather than isolinux syntax.

A simple example:

---
set timeout=600
set default=0

menuentry "localboot" {
          insmod chain
          set root=(hd0)
          chainloader +1
}

menuentry "c7" {
          linuxefi /c7/vmlinuz ks=http://config.example.com/kickstart/c7s
ksdevice=eth0 net.ifnames=0 biosdevname=0
          initrdefi /c7/initrd.img
}


More information about the users mailing list