第一次试做ipxe网启,用vwmare测试不成功,帮忙看看
第一次试做ipxe网启,用vwmare测试不成功,帮忙看看本帖最后由 不知 于 2018-3-4 10:27 编辑
信息太少不好判断。最好把ipxe(ipxe/winpe.ipxe)菜单贴出来。
——————————————————————————————-
另外确认wimboot是支持efi的,且位数(i386/x64)是正确的。如果下源码编译会有wimboot,wimboot.i386.efi,wimboot.x86_64.efi.
本帖最后由 sizhou 于 2018-3-3 22:53 编辑
ipxe.ipxe 是配置文件 ,发出来看下, 你网络有路由开启dhcp服务 ,就要√上proxydhcp sizhou 发表于 2018-3-3 20:18
ipxe.ipxe 是配置文件 ,发出来看下, 你网络有dhcp服务 ,要√上procydhcp
procydhcp 是什么东东???? ipxe.ipxe 文件 内容
#!ipxe
set boot-url http://${dhcp-server}
set menu-default WinPE
:MENU_Start
menu ${ip}
item --gap -- ------------------------------ Live Environments ------------------------------
item --key W WinPE Windows PE
choose --default ${menu-default} selected
goto ${selected}
:WinPE
chain ${boot-url}/ipxe/winpe.ipxe || goto Failed
autoboot || goto Failed
:Failed
echo Booting Failed, dropping to Config
config
reboot
exit
winpe.ipxe文件内容
#!ipxe
iseq ${platform} efi && goto EFI || goto BIOS
:EFI
kernel ${boot-url}/ipxe/wimboot
initrd ${boot-url}/bootmgfw.efi bootmgfw.efi
initrd ${boot-url}/EFI/MICROSOFT/BOOT/BCD BCD
initrd ${boot-url}/EFI/MICROSOFT/BOOT/zh-CN/bootmgr.efi.mui bootmgr.efi.mui
initrd ${boot-url}/EFI/MICROSOFT/BOOT/Fonts/chs_boot.ttf chs_boot.ttf
initrd ${boot-url}/EFI/MICROSOFT/BOOT/Fonts/wgl4_boot.ttf wgl4_boot.ttf
goto WIM
:BIOS
kernel ${boot-url}/ipxe/wimboot
initrd ${boot-url}/bootmgr bootmgr
initrd ${boot-url}/BOOT/BCD BCD
initrd ${boot-url}/BOOT/zh-CN/bootmgr.exe.mui bootmgr.exe.mui
initrd ${boot-url}/BOOT/Fonts/chs_boot.ttf chs_boot.ttf
initrd ${boot-url}/BOOT/Fonts/wgl4_boot.ttf wgl4_boot.ttf
goto WIM
:WIM
initrd ${boot-url}/WINPE/BOOT.SDI BOOT.SDI
initrd ${boot-url}/WINPE/WINPE.WIM WINPE.WIM
参照别人文件,简单修改过的,自动判断BIOS或efi 启动
------------------------------------------------
item win32 Windows PE x86
item win64 Windows PE x64
-------------------------------------- ----------
:win32
set pefile pe32.wim && set bootfile bootia32.efi
goto bootpe
:win64
set pefile pe64.wim && set bootfile bootx64.efi
goto bootpe
:bootpe
kernel http://${next-server}/BOOT/wimboot gui || goto retry
initrd http://${next-server}/EFI/boot.sdi boot.sdi|| goto retry
iseq ${platform} pcbios || goto winefi
initrd http://${next-server}/bootmgr.exe bootmgr.exe || goto retry
initrd http://${next-server}/BOOT/bxe bxd || goto retry
initrd http://${next-server}/EFI/${pefile}boot.wim|| goto retry
boot || goto retry
goto start
:winefi
initrd http://${next-server}/EFI/boot/${bootfile} || goto retry
initrd http://${next-server}/BOOT/bcd|| goto retry
initrd http://${next-server}/EFI/${pefile} || goto retry
boot || goto retry
goto start
:retry
imgfree
prompt Error! press any key to retry
goto start 看着菜单没毛病啊? 长知识了,好复杂,没玩过。 不知 发表于 2018-3-3 18:31
信息太少不好判断。最好把ipxe(ipxe/winpe.ipxe)菜单贴出来。
——————————————————— ...
是不是我wim文件有什么问题???我放在正常U盘是可行的! 猪肉佬 发表于 2018-3-4 17:05
是不是我wim文件有什么问题???我放在正常U盘是可行的!
有可能,但是如果是wim有问题,多半会在windows boot manager界面报错。这个界面啥提示也没有,不好判断,不过可以替换支持UEFI的PE的wim试下。而且要注意bcd中的路径要对,比如在网启的目录下是啥路径,BCD中的wim路径就是啥。比如在网启目录\sources\boot.wim,bcd的路径就是\sources\boot.wim。
页:
[1]