Re: uefi pxe not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
}
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux