文章目录
下载memtest的pxe引导固件
#下载固件程序,并解压(memtest官方下载页 https://memtest.org/#downiso)
mkdir /home/auto-install/images/memtest -p
cd /home/auto-install/images/memtest
wget https://memtest.org/download/v7.00/mt86plus_7.00.binaries.zip
unzip mt86plus_7.00.binaries.zip
ipxe的链式加载模版
# 上面的源文件,下面是curl方式获取路径,即chain链式加载路径
cat /home/auto-install/config/bootmenu.php
curl http://${next-server}/auto-install/config/bootmenu.php
#!ipxe
# 根据bios和uefi不同平台,自动链式装载并启动memtest固件
iseq ${platform} pcbios && goto ipxe_boot_bios ||
iseq ${platform} efi && goto ipxe_boot_uefi ||
:ipxe_boot_bios
echo Loading BIOS iPXE...
echo mac=${mac} ip=${ip} netmask=${netmask} gateway=${gateway}
sleep 3
chain http://${next-server}/auto-install/images/memtest/memtest64.bin
goto end
:ipxe_boot_uefi
echo Loading UEFI iPXE...
echo mac=${mac} ip=${ip} netmask=${netmask} gateway=${gateway}
sleep 3
chain http://${next-server}/auto-install/images/memtest/memtest64.efi
goto end
:end
用服务器启动测试看看
如果文章对你有帮助,欢迎点击上方按钮打赏作者
暂无评论