Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use PXE EFI Boot to install RHEL7.3

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Operating System: Red Hat Enterprise Linux Server 7. 3 (Maipo) IPADDR:10.10.0.123 = = the difference between traditional Legacy BIOS and EFI BIOS boot: for traditional Legacy BIOS, the pxelinux.0 provided by syslinux is generally used to boot. For EFI BIOS, you need to boot using an efi file, and you can generally use Grub2. To implement UEFI SecureBoot, most Linux uses shim.efi nested calls to grub.efi to boot. What's the difference between grubx64.efi and shimx64.efi? You can use grubx64.efi when secure boot (serureboot) is off. If the security startup is turned on, you need to select shimx64.efi. Traditional Legacy BIOS boot, after pxelinux.0 boot, it requests and loads the default file in the pxelinux.cfg directory in the same directory as pxelinux.0 in the tftpboot directory on the server side. Apr 17 21:21:48 localhost in.tftpd [23465]: Client:: ffff:10.10.0.133 finished pxelinux.0 Apr 17 21:21:48 localhost in.tftpd [23476]: Client:: ffff:10.10.0.133 finished pxelinux.cfg/default Apr 17 21:21:48 localhost in.tftpd [23477]: Client:: ffff:10.10.0.133 finished boot.msg Apr 17 21:21:48 localhost in.tftpd [23479]: Client:: ffff:10.10.0 . 133 finished vesamenu.c32 Apr 17 21:21:48 localhost in.tftpd [23480]: Client:: ffff:10.10.0.133 finished pxelinux.cfg/default Apr 17 21:21:48 localhost in.tftpd [23481]: Client:: ffff:10.10.0.133 finished splash.png Apr 17 21:21:59 localhost in.tftpd [23482]: Client:: ffff:10.10.0.133 finished vmlinuz Apr 17 21:22:04 localhost in.tftpd [23483]: Client:: ffff:10 .10.0.133 finished initrd.im EFI BIOS Boot After shim.efi has nested the boot grubx64.efi, it requests the grubx64.efi grub.cfg configuration file (redhat7) in the same directory, and loads and displays the boot menu. For RHEL6, it does not support SecureBoot, so you must use grub-efi 0.97 to boot, usually BOOTX64.efi, and it will request the efidefault configuration file (redhat6) in the same directory to load and display the boot menu. RHEL6 does not support EFI well, so RHEL6 recommends using Legacy instead of EFI mode to install. -the following log is the redhat 7.3 uefi boot log. Apr 17 21:16:03 localhost in.tftpd [22088]: Client:: ffff:10.10.0.131 finished uefi/shim.efi Apr 17 21:16:03 localhost in.tftpd [22089]: Client:: ffff:10.10.0.131 finished uefi/grubx64.efi Apr 17 21:16:03 localhost in.tftpd [22099]: Client:: ffff:10.10.0.131 finished / uefi/grub.cfg Apr 17 21:16:03 localhost in.tftpd [22100]: Client:: ffff: 10.10.0.131 finished / uefi/grub.cfg Apr 17 21:16:03 localhost in.tftpd [22105]: Client:: ffff:10.10.0.131 finished / uefi/grub.cfg Apr 17 21:16:03 localhost in.tftpd [22106]: Client:: ffff:10.10.0.131 finished / uefi/grub.cfg Apr 17 21:16:03 localhost in.tftpd [22107]: Client:: ffff:10.10.0.131 finished / uefi/grub.cfg Apr 17 21: 16:09 localhost in.tftpd [22108]: Client:: ffff:10.10.0.131 finished images/vmlinuz Apr 17 21:16:11 localhost in.tftpd [22109]: Client:: ffff:10.10.0.131 finished images/vmlinuz Apr 17 21:16:16 localhost in.tftpd [22110]: Client:: ffff:10.10.0.131 finished images/initrd.img = 1. Software installation yum-y install vsftpd dhcp xinetd* tftp-server = 2. Prepare the file: BOOTX64.EFI grub.cfg grubx64.efi initrd.img shim.efi vmlinuz

= extract shim.efi and grubx64.efi from RHEL7 CD: cp / mnt/Packages/shim-0.9-2.el7.x86_64.rpm / tmp cp / mnt/Packages/grub2-efi-2.02-0.44.el7.x86_64.rpm / tmp rpm2cpio / tmp/shim-0.9-2.el7.x86_64.rpm | cpio-dimv rpm2cpio / tmp/grub2-efi-2.02-0.44.el7.x86_64.rpm | cpio-dimv mkdir-p / var / lib/tftpboot/uefi/ cp / tmp/boot/efi/EFI/redhat/shim.efi / var/lib/tftpboot/uefi/ cp / tmp/boot/efi/EFI/redhat/grubx64.efi / var/lib/tftpboot/uefi/ copy the kernel file from the RHEL7 CD: cp / mnt/EFI/BOOT/BOOTX64.EFI / var/lib/tftpboot/uefi/ cp / mnt/isolinux/vmlinuz / var/lib/tftpboot/uefi/ cp / mnt/isolinux/initrd.img / var/lib/tftpboot/uefi What's the difference between grubx64.efi and shimx64.efi? You can use grubx64.efi when secure boot (serureboot) is off. If the security startup is turned on, you need to select shimx64.efi. Grub.cfg file configuration: cat > > / var/lib/tftpboot/uefi/grub.cfg

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report