ipxe 链式加载 memtest 内存测试固件(适配bios和uefi引导方式)

下载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

用服务器启动测试看看

file

file

声明:本文为原创,作者为 辣条①号,转载时请保留本声明及附带文章链接:https://boke.wsfnk.com/archives/1278.html
谢谢你请我吃辣条谢谢你请我吃辣条

如果文章对你有帮助,欢迎点击上方按钮打赏作者

最后编辑于:2024/2/5作者: 辣条①号

目标:网络规划设计师、系统工程师、ceph存储工程师、云计算工程师。 不负遇见,不谈亏欠!

暂无评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

arrow grin ! ? cool roll eek evil razz mrgreen smile oops lol mad twisted wink idea cry shock neutral sad ???

文章目录