当前位置:网站首页>Why does PXE boot with grub2 and UEFI fails with error “File not found“ ?
Why does PXE boot with grub2 and UEFI fails with error “File not found“ ?
2022-08-07 22:58:00 【TAOXC(◉ɷ◉ )】
环境
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
问题
Installation of UEFI system using PXE boot with grub2 bootloader grubx64.efi fails with error File not found.
error: ../../grub-core/net/tftp.c:281:File not found.
error: ../../grub-core/loader/i386/efi/linux.c:93:you need to load the kernel first.
Press any key to continue..._
决议
This error indicates that the grub bootloader was able to load the grub configuration file but it has not found either the kernel or the initramfs files paths which are defined in it.
Verify the tree of the tftp home directory which is usually /var/lib/tftpboot to check the path of the kernel and the intramfs files with respect to the tftp home directory.
# tree /var/lib/tftpboot/
/var/lib/tftpboot/
└── uefi
├── grub.cfg
├── grubx64.efi
├── images
│ ├── initrd.img
│ └── vmlinuz
└── shimx64.efi
# ls -lanR uefi/
uefi/:
total 3412
drwxr-xr-x. 3 0 0 74 Jul 28 11:28 .
drwxr-xr-x. 4 0 0 33 Jul 28 11:27 ..
-rw-r--r--. 1 0 0 1503 Jul 28 11:28 grub.cfg
-r-xr-xr-x. 1 0 0 2285512 Jul 28 11:28 grubx64.efi
drwxr-xr-x. 2 0 0 39 Jul 28 11:27 images
-r-xr-xr-x. 1 0 0 1202928 Jul 28 11:28 shimx64.efi
uefi/images:
total 83556
drwxr-xr-x. 2 0 0 39 Jul 28 11:27 .
drwxr-xr-x. 3 0 0 74 Jul 28 11:28 ..
-rw-r--r--. 1 0 0 75530980 Jul 28 11:27 initrd.img
-rwxr-xr-x. 1 0 0 10026352 Jul 28 11:27 vmlinuz
In the above example the path for vmlinuz file relative to tftp home directory is uefi/images/vmlinuz and the path of the initramfs file with respect to tftp home directory is uefi/images/initrd.img. Setting these appropriate paths grub should be able to find the paths and start the installation.
menuentry 'PXE Install Red Hat Enterprise Linux 8.4' --class fedora --class gnu-linux --class gnu --class os {
linuxefi uefi/images/vmlinuz inst.stage2=http://<URL to RHEL 8.4 DVD tree>/
initrdefi uefi/images/initrd.img
}
根源
- The
grubbootloader for UEFI for UEFI based systemsgrubx64.efitakes the arguments for filepaths with relative to the tftp home directory.
边栏推荐
- 乡愁
- Towards a Unified View of Parameter-Efficient Transfer Learning
- 买股票用通达信安全吗?资金会不会被转走?
- MYSQL高级篇-----索引优化分析
- Detailed Interrupt System
- win10 install pycuda2022
- 我做了一个在线白板(二)
- [Students' personal web design works] Use HMTL to make a super beautiful web page for protecting dolphins
- Rebate 200, the number of islands
- Mongodb出现Error: couldn‘t add user: Could not find role: [email protected] 解决方法
猜你喜欢

Mind quantum 基础知识学习笔记(1)

测试也应该具备的项目管理能力

Rest风格操作

【学生个人网页设计作品】使用HMTL制作一个超好看的保护海豚动物网页

UE4 Sequence adds basic animation effects (01-object movement)

MySQL先分组再取组内最大最小记录

ECCV 2022 | 清华&腾讯AI Lab提出REALY: 重新思考3D人脸重建的评估方法

Shell: Loop Statements and Functions

MySQL groups first and then takes the largest and smallest records in the group

牛客网 MySQL 刷题
随机推荐
The generation process of Presto Stage
Detailed Interrupt System
【STC15】定时器0做9-16位PWM示例解读
记一个Thinkphp3老项目 设置模板多重继承
Unity editor extension - preview window extension
论文翻译:2021_LACOPE: Latency-Constrained Pitch Estimation for Speech Enhancement
C语言:打印整数二进制的奇数位和偶数位
MySQL数据库的创建和基本的查询语句
What does opening a securities account mean?Is it safe to open an account?
Hands-on deep learning_target detection
无代码平台日期入门教程
ThinkPHP 5.0 组合多条件whereOr查询,生成sql带括号
Unity编辑器拓展--预览窗口拓展
【学生个人网页设计作品】使用HMTL制作一个超好看的保护海豚动物网页
win10安装pycuda2022
如果Controller里有私有的方法,能成功访问吗?
Leecode-SQL 1393. Capital Gains and Losses on Stocks
【json】- VScode中的扩展程序配置文件setting.json出错——Property expected和End of file expected
Application of Matlab in 3D Vision 01 Display PCD point cloud
How to read ten thousand lines of code