无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 133|回复: 4
打印 上一主题 下一主题

[求助] pxeserver启动,ipxe.pxe和ipxe.efi有什么不一样啊?

[复制链接]
跳转到指定楼层
1#
发表于 昨天 18:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
pxeserver启动,启动文件用ipxe.pxe和ipxe.efi有什么不一样啊?服务器使用pxeserver
配置为ipxe.pxe启动文件,有一部分电脑能出bios_boot_wim Boot from /boot/boot.WIM菜单,还有一部分电脑无任何菜单
配置为ipxe.efi启动文件,刚好相反:前面无菜单的能显示出item efi64_boot_wim Boot from /boot/boot.WIM菜单
这说明什么啊?有什么办法兼容啊?


menu.ipxe配置文件相同,内容如下:#!ipxe
#check platform (Legacy or UEFI)判断客户机的启动方式:
echo Platform: ${platform}
set menu-timeout 5000
ifopen net0
isset ${ip} || dhcp
#自行指定服务器ip
#isset ${next-server} || set next-server 192.168.1.2
#(pcbios && efi)
iseq ${platform} pcbios && set start BIOS_MENU || set start EFI
goto ${start}

:EFI
#(x64EFI && x86EFI)
iseq ${buildarch} x86_64 && set start EFI64_MENU || set start EFI32_MENU
goto ${start}

#set menu-default grub4dos

#================ BIOS_MENU =================
:BIOS_MENU
menu [BIOS] iPXE Boot Menu
item --gap -- ---------------------------------iPXE Boot Menu--------------------------------
item bios_boot_wim Boot from /boot/boot.WIM
item bios_shell Enter iPXE shell
item bios_reboot Reboot
item bios_poweroff Power Off
item --gap -- ----------------------------------------------------------------------
choose --timeout ${menu-timeout} --default bios_boot_wim selected && goto ${selected}

:bios_boot_wim
echo Booting from /boot/boot.WIM...
kernel hp--${next-server}/boot/wimboot
initrd hp--${next-server}/boot/bootmgr bootmgr
initrd hp--${next-server}/boot/BCD-1 bcd
initrd hp--${next-server}/boot/boot.sdi boot.sdi
initrd hp--${next-server}/boot/boot.WIM boot.wim
boot

:bios_shell
echo Type 'exit' to return to the BIOS menu
shell
goto BIOS_MENU

:bios_reboot
goto reboot

:bios_poweroff
goto poweroff

#================ EFI32_MENU =================
:EFI32_MENU
menu [UEFI32] Unsupported Platform
item --gap -- ---------------------------------iPXE Boot Menu--------------------------------
item --gap --       Sorry, 32-bit UEFI is not supported on this network.
item --gap --
item efi32_shell Enter iPXE shell
item efi32_reboot Reboot
item efi32_poweroff Power Off
item --gap -- ----------------------------------------------------------------------
choose --default efi32_reboot selected2 && goto ${selected2}

:efi32_shell
echo Type 'exit' to return to the UEFI32 menu
shell
goto EFI32_MENU

:efi32_reboot
goto reboot

:efi32_poweroff
goto poweroff

#================ EFI64_MENU =================
:EFI64_MENU
menu [UEFI]iPXE Boot Menu
item --gap -- ---------------------------------iPXE Boot Menu--------------------------------
item efi64_boot_wim Boot from /boot/boot.WIM
item efi64_shell Enter iPXE shell
item efi64_reboot Reboot
item efi64_poweroff Power Off
item --gap -- ----------------------------------------------------------------------
choose --timeout ${menu-timeout} --default efi64_boot_wim selected3 && goto ${selected3}

:efi64_boot_wim
echo Booting from /boot/boot.WIM for UEFI...
kernel  hp--${next-server}/boot/wimboot
initrd -n bootx64.efi hp--${next-server}/BOOTX64.EFI
initrd -n BCD hp--${next-server}/boot/BCD
initrd -n boot.sdi hp--${next-server}/boot/boot.sdi
initrd -n boot.wim hp--${next-server}/boot/boot.WIM
boot

:efi64_shell
echo Type 'exit' to return to the UEFI64 menu
shell
goto EFI64_MENU

:efi64_reboot
goto reboot

:efi64_poweroff
goto poweroff

#================ 公共功能 =================
:reboot
echo Rebooting system...
reboot

:poweroff
echo Powering off system...
poweroff






2#
发表于 昨天 19:05 | 只看该作者
虽然不太懂,但是来看看,学习一下
回复

使用道具 举报

3#
 楼主| 发表于 昨天 19:37 | 只看该作者
使用ipxe.efi无菜单显示的日志为
19:33:32 DHCPd:REQUEST discarded, MAC:F0-DE-F1-62-B0-17, XID:F262B017
19:33:32 代理启动文件名是否为空?
19:33:32 PDHCPd:DHCP_ACK sent, IP:192.168.31.46:68, xid:F262B017
19:33:32 goUDP4011:EIdSocketError,10054
使用ipxe.pxe无菜单显示的日志为
19:37:11 代理启动文件名是否为空?
19:37:11 PDHCPd:DHCP_ACK sent, IP:192.168.31.30:4011, xid:3BBB6B0D
19:37:12 TFTPd:DoReadFile:ipxe.pxe B:1468 T:0
回复

使用道具 举报

4#
发表于 昨天 22:05 | 只看该作者
TinyPXESever自带的启动菜单menu.ipxe多研究一下就没那么多问题了...


二○二五年九月十七日
回复

使用道具 举报

5#
发表于 昨天 22:21 | 只看该作者
直接用ipxefm的批处理执行看看tinypxe配置文件的区别
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2025-9-18 00:29

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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