无忧启动论坛

 找回密码
 注册
搜索

ipxe如何在命令行下加载外置菜单?使用haneWINDHCP配合iPXE

查看数: 4783 | 评论数: 21 | 收藏 3
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2025-1-18 15:10

正文摘要:

本帖最后由 mygamexxx 于 2025-1-21 13:14 编辑 ipxe启动后,Ctrl-B,进入命令行,iPXE>,请教:如何在命令行下加载外置菜单,外置菜单为tftp根目录下的menu.txt文件。 或者如何使用二进制编辑软件,修改und ...

回复

2012chenyuwen 发表于 2025-5-6 23:12:43
感谢分享!
hao9i 发表于 2025-3-4 11:44:23
向大佬学习,看看内容
fegr 发表于 2025-3-2 15:23:20
谢谢分享
mygamexxx 发表于 2025-1-20 20:42:42
本帖最后由 mygamexxx 于 2025-1-21 13:15 编辑

这几天基本搞明白了pxe启动,明天说说经验。在顶楼。

hkkitlee 发表于 2025-1-18 23:57:34

查看tftp的伺服兩個地方:
埠口:69開了沒,有沒有開防火牆
log記錄:有時需要在檔案名最補上「.0」,undionly.kpxe -> undionly.kpxe.0
liuzhaoyzz 发表于 2025-1-18 20:38:47
mygamexxx 发表于 2025-1-18 19:57
我不会编译,哪里有最新的下载?

根本不需要编译内置菜单,有了tinypxeserver,菜单完全可以外置。
未完成的歌 发表于 2025-1-18 20:07:56
mygamexxx 发表于 2025-1-18 19:57
我不会编译,哪里有最新的下载?

boot.ipxe.org
mygamexxx 发表于 2025-1-18 19:57:35
未完成的歌 发表于 2025-1-18 19:43
最新的ipxe会自动获取autoexec.ipxe
不需要内嵌菜单

我不会编译,哪里有最新的下载?

点评

根本不需要编译内置菜单,有了tinypxeserver,菜单完全可以外置。  详情 回复 发表于 2025-1-18 20:38
boot.ipxe.org  详情 回复 发表于 2025-1-18 20:07
未完成的歌 发表于 2025-1-18 19:43:46
最新的ipxe会自动获取autoexec.ipxe
不需要内嵌菜单

点评

我不会编译,哪里有最新的下载?  详情 回复 发表于 2025-1-18 19:57
忧心的启 发表于 2025-1-18 19:08:03
学习学习,感谢分享。
2012sunyu4506 发表于 2025-1-18 18:51:04
谢谢分享,支持个。
liuzhaoyzz 发表于 2025-1-18 18:25:40
mygamexxx 发表于 2025-1-18 17:53
试试这个QEMU for windows  https://qemu.weilnetz.de/w64/

windows下面性能最强的虚拟机就是vmware,qemu太卡了,根本就不能用。

pxe/ipxe测试不用搞那么复杂,直接桥接即可测试。
nianyueriPE 发表于 2025-1-18 18:10:58
学习了
nianyueriPE 发表于 2025-1-18 18:10:45
谢谢分享
mygamexxx 发表于 2025-1-18 17:53:22
本帖最后由 mygamexxx 于 2025-1-18 19:54 编辑

试试这个QEMU for windows  https://qemu.weilnetz.de/w64/

点评

windows下面性能最强的虚拟机就是vmware,qemu太卡了,根本就不能用。 pxe/ipxe测试不用搞那么复杂,直接桥接即可测试。  详情 回复 发表于 2025-1-18 18:25
mygamexxx 发表于 2025-1-18 16:09:41
[arch]
;用英文;注释第一行[arch],不自动选择启动文件。http://bbs.wuyou.net/forum.php?mod=viewthread&tid=424147
;will over rule the bootp filename or opt67 if the client arch matches one of the below
;0-Intel x86PC; 1-NEC/PC98; 2-EFI Itanium; 3-DEC Alpha; 4-Arc x86; 5-Intel Lean Client; 5-Intel Lean C lient; 6-EFI IA32; 7-EFI BC; 8-EFI Xscale; 9-EFI x86-64;
;VMware虚拟机windows,BIOS启动00000; EFIx32启动00006; EFIx64启动00007;
;00000=grldr
00000=undionly.kpxe
;00006=bootia32.efi
00007=bootx64.efi
;00007=bootg4e.efi
[dhcp]
;needed to tell TFTPd where is the root folder
root=
;filename=undionly.kpxe,启动文件文件名,可在界面选择,留空会显示00000的值。
filename=undionly.kpxe
;alternative bootp filename if request comes from ipxe or gpxe,Gpxe/Ipxe启动脚本,可在界面选择
altfilename=menu.txt
;start HTTPd
httpd=1
binl=0
;start=0
start=0
dnsd=0
;proxybootfilename=,“代理DHCP”时需要设置
;bind=1,default=1
bind=1
;tftpd=1 by default
tftpd=1
;will share (netbios) the root folder as PXE
;smb=0
smb=0
;设置共享参数,share_ip留空则获取本机ip地址
;share_ip=
;share_name=tool$
;share_username=everyone
;share_password=
;verbose=0,不显示 Client Architecture
verbose=1
proxydhcp=0
;poolstart=
;poolsize=
;alternative bootp filename if request comes thru proxydhcp (udp:4011)
;proxybootfilename=,“代理DHCP”时需要设置
;any extra dhcp options
;my gpxe / ipxe dhcp options
optextra=175.6.1.1.1.8.1.1
;the below will be executed when clicking on the online button
;cmd=_test.bat
;if log=1, will log to log.txt
log=0
[frmDHCPServer]
top=53
left=221
邪恶海盗 发表于 2025-1-18 15:56:32
mygamexxx 发表于 2025-1-18 15:44
头大了,不想用。总是tftp有问题,想用QEMU来测试。

请用VMware和Virtualbox测试,另外多看教程...


二○二五年一月十八日
邪恶海盗 发表于 2025-1-18 15:42:49
TinyPXEServer研究一下...


二○二五年一月十八日

点评

头大了,不想用。总是tftp有问题  详情 回复 发表于 2025-1-18 15:44
liuzhaoyzz 发表于 2025-1-18 15:22:19
试试这样子的:
chain tftp://${next-server}/menu.txt
chain http://192.168.1.100/boot/grub/menu.txt

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-5-15 10:31

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表