On 2018-10-15 2:21 p.m., Samuel Sieb wrote:
On 10/15/18 10:55 AM, Digimer wrote:
> That worked!! Thank you so much! I bashed my head on this since
> Thursday...
It took me a while to get this working initially when I started it
several years ago. At some point, I want to see if I can get grub
loading instead of pxelinux, although I don't know if it's worth the
effort, given how rarely I use the non-EFI case.
> I'm building a project for general use, so I need to make sure this PXE
> system will boot both BIOS and UEFI targets. I'm sure I may bug you
> again later, but this gets me moving forward again.
There's a bit more configuration to make that work. If you have
questions, just ask here and I'll be happy to help.
As promised, here I am now with UEFI issues. :)
I've finished getting BIOS boots/installs working fine. Now I want to
add UEFI support, and I'm hitting a road block right out of the gate.
First, do you have docs/links/reference material you might recommend on
building a Fedora-based UEFI PXE server? I'd love to try and get further
on my own and keep questions to a minimum.
Right now, I've got a KVM/qemu guest configured with UEFI. I've setup
the following;
====
[root@f28-striker01 fedora28]# cat /etc/dhcp/dhcpd.conf
### Global options
option domain-name "alteeve.com";
option domain-name-servers 8.8.8.8, 8.8.4.4;
authoritative;
ddns-update-style none;
# refer to RFC4758 for possible arch option values
option arch code 93 = unsigned integer 16;
subnet 10.1.0.0 netmask 255.255.0.0 {
default-lease-time 600;
max-lease-time 7200;
range 10.1.14.1 10.1.14.254;
option routers 10.1.4.1;
if option arch = 00:07 {
filename "uefi/shim.efi";
} else {
filename "pxelinux.0";
}
next-server 10.1.4.1;
}
====
====
[root@f28-striker01 fedora28]# cat /var/lib/tftpboot/pxelinux/uefi
function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}
load_video
set gfxpayload=keep
insmod gzio
menuentry 'Install Fedora 28' --class fedora --class gnu-linux --class
gnu --class os {
linuxefi fedora28/vmlinuz ip=dhcp
inst.repo=http://10.1.4.1/fedora28/x86_64/iso/
initrdefi fedora28/initrd.img
}
menuentry 'Install Striker' --class fedora --class gnu-linux --class
gnu --class os {
linuxefi fedora28/vmlinuz ip=dhcp
inst.repo=http://10.1.4.1/fedora28/x86_64/iso/
root=live:http://10.1.4.1/fedora28/x86_64/os/images/install.img
inst.ks=http://10.1.4.1/fedora28/x86_64/kickstart/striker.ks inst.sshd
rd.debug
initrdefi fedora28/initrd.img
}
====
When I PXE boot the UEFI guest, it gets the IP from the PXE server,
downloads uefi/shim.efi, then hangs on 'Fetching Netboot image'. It
never shows a menu.
==== (on EFI guest, transcribed manually)
>Start PXE over IPv4
Station IP address is 10.1.14.186
Server IP address is 10.1.4.1
NBP filename is uefi/shim.efi
NBP filesize is 1210776 Bytes
Downloading NBP file...
NBP file downloaded successfully.
Fetching Netboot Image
====
And there it hangs. I'm not sure how to debug to see more detail on what
it is trying to do. This UEFI PXE booting is totally new for me, so I
may be missing something terribly obvious.
Thanks!
--
Digimer
Papers and Projects:
https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of
Einstein’s brain than in the near certainty that people of equal talent
have lived and died in cotton fields and sweatshops." - Stephen Jay Gould