#!ipxe
echo product...........: ${product}
echo manufacturer......: ${manufacturer}
echo platform..........: ${platform}
echo chip .............: ${chip}
echo serial............: ${serial}
echo asset.............: ${asset}
echo mac...............: ${mac}
echo ip................: ${ip}
echo netmask...........: ${netmask}
echo gateway...........: ${gateway}
echo dns...............: ${dns}
echo domain............: ${domain}
echo dhcp-server.......: ${dhcp-server}
echo filename..........: ${filename}
echo next-server.......: $${next-server}
echo boot menu will show in 5 seconds
sleep 5
:start
menu iPXE Boot Menu --BootType-[${platform}]--${ip}
item --gap -- Linux OS
item --key R reboot R---- Reboot
item --key L local L---- Boot To Local Drive
item --key 0 CentOS7.9 0---- CentOS 7.9
item --gap -- Microsoft Windows
item --key 1 WIN10 1---- Windows 10
item --key 2 WIN11 2---- Windows 11
item --gap -- Tool
item --key S shell S---- iPXE shell
choose --default reboot --timeout 60000 target && goto ${target}
:CentOS7.9
kernel http://${next-server}/centos7.9/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=http://${next-server}/centos7.9 ks=http://${next-server}/centos7u9.cfg
initrd http://${next-server}/centos7.9/images/pxeboot/initrd.img
boot
:WIN10
kernel http://${next-server}/wimboot
initrd http://${next-server}/win10pe/install.bat install.bat
initrd http://${next-server}/win10pe/winpeshl.ini winpeshl.ini
initrd http://${next-server}/win10pe/Boot/BCD BCD
initrd http://${next-server}/win10pe/Boot/boot.sdi boot.sdi
initrd http://${next-server}/win10pe/sources/boot.wim boot.wim
initrd http://${next-server}/win10pe/bootmgr.efi bootmgr.efi
boot
:WIN11
kernel http://${next-server}/wimboot
initrd http://${next-server}/win11pe/install.bat install.bat
initrd http://${next-server}/win11pe/winpeshl.ini winpeshl.ini
initrd http://${next-server}/win11pe/Boot/BCD BCD
initrd http://${next-server}/win11pe/Boot/boot.sdi boot.sdi
initrd http://${next-server}/win11pe/sources/boot.wim boot.wim
initrd http://${next-server}/win11pe/bootmgr.efi bootmgr.efi
boot
:local
sanboot --no-describe --drive 0x80 || goto start
:shell
shell || goto start
:reboot
reboot
iPXE Linux/Windows系统 支持IPv4/IPv6
需积分: 0 166 浏览量
2024-02-01
18:34:12
上传
评论
收藏 1.03MB ZIP 举报
Zero___________
- 粉丝: 21
- 资源: 1
最新资源
- 基于matlab实现用有限元法计算电磁场的Matlab工具 .rar
- 基于matlab实现有限元算法 计算电磁场问题 边界条件包括第一类边界和第二类边界.rar
- 基于matlab实现用于计算不同车重下的电动汽车动力性和经济性.rar
- 基于matlab实现遗传算法求解多车场车辆路径问题 有多组算例可以用.rar
- 浏览器.apk
- 基于matlab实现是一个matlab中的power system 中搭建的一个模型
- 基于JSP毕业设计-教学管理系统(源代码+论文).zip
- 基于JSP毕业设计-家政管理系统-毕业设计.zip
- 基于Python实现淘宝商品评论采集(含逆向)源代码
- 基于matlab实现多目标进化算法NSGAⅡ&Matlab讲解.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈