PXE UEFI GRUB Booting
Hi, I am trying to setup a PXE environment to boot from network in uefi mode with grub. I use a standalone file embedding this grub.cfg file taken from the Installation Guide
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 64-bit' --class fedora --class gnu-linux --class gnu --class os {
linuxefi f26/vmlinuz ip=dhcp inst.repo=http://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/x86_64/os/
initrdefi f26/initrd.img
}
menuentry 'Install Fedora 26 Server' --class fedora --class gnu-linux --class gnu --class os {
kernel f26/vmlinuz
append initrd=f26/initrd.img inst.repo=http://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/x86_64/os/ ip=dhcp ks=https://git.fedorahosted.org/cgit/spin-kickstarts.git/plain/fedora-install-server.ks?h=f21
}
menuentry 'Rescue installed system' --class fedora --class gnu-linux --class gnu --class os {
kernel f26/vmlinuz
append f26/initrd=initrd.img root=live:http://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/x86_64/os/LiveOS/squashfs.img rescue
}
I have previously downloaded the kernel images and initrd in a f26 subfolder of the tftp server root. The result is a correct menu displayed. But when attempting to boot an entry, I get the message : error : invalid filemame f26/vmlinuz The error is the same when I place the vmlinuz directly under the root and change the menuentries accordingly in order to avoid a path in the filename.
What should I do ?
When I use this grub.cfg
menuentry 'Install Fedora 64-bit' --class fedora --class gnu-linux --class gnu --class os {
insmod net
insmod efinet
insmod tftp
insmod part_gpt
insmod efi_gop
insmod efi_uga
set net_default_server=192.168.1.19
echo 'Loading vmlinuz'
linux (tftp)/f26/vmlinuz ip=dhcp inst.repo=http://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/x86_64/os/
echo 'Loading initial ramdisk'
initrd (tftp)/f26/initrd.img
}
I get
Error : destination unreachable when attempting to load the kernel
What do you mean by "a standalone file embedding this grub.cfg"? Are you loading grub from the tftp server?
I PXE boot UEFI laptops in several locations.
I mean a core image of the GRUB including the grub.cfg file that is downloaded from the tftp server.