无忧启动论坛

标题: 第一次试做ipxe网启,用vwmare测试不成功,帮忙看看 [打印本页]

作者: 猪肉佬    时间: 2018-3-3 16:46
标题: 第一次试做ipxe网启,用vwmare测试不成功,帮忙看看
第一次试做ipxe网启,用vwmare测试不成功,帮忙看看


ipxe.PNG (51.18 KB, 下载次数: 92)

ipxe.PNG

作者: 不知    时间: 2018-3-3 18:31
本帖最后由 不知 于 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 20:18
本帖最后由 sizhou 于 2018-3-3 22:53 编辑

ipxe.ipxe   是配置文件 ,发出来看下,    你网络有路由开启dhcp服务 ,就要√上proxydhcp
作者: 猪肉佬    时间: 2018-3-3 22:14
sizhou 发表于 2018-3-3 20:18
ipxe.ipxe   是配置文件 ,发出来看下,    你网络有dhcp服务 ,要√上procydhcp

procydhcp   是什么东东????
作者: 猪肉佬    时间: 2018-3-3 22:15
  1. ipxe.ipxe 文件 内容

  2. #!ipxe

  3. set boot-url http://${dhcp-server}

  4. set menu-default WinPE

  5. :MENU_Start
  6.         menu ${ip}
  7.         item --gap --       ------------------------------ Live Environments ------------------------------
  8.         item --key W WinPE                        Windows PE
  9.         choose --default ${menu-default} selected
  10.         goto ${selected}

  11. :WinPE
  12.         chain ${boot-url}/ipxe/winpe.ipxe || goto Failed
  13.         autoboot || goto Failed

  14. :Failed
  15.         echo Booting Failed, dropping to Config
  16.         config
  17.         reboot

  18. exit
复制代码





  1. winpe.ipxe文件内容


  2. #!ipxe

  3. iseq ${platform} efi && goto EFI || goto BIOS

  4. :EFI
  5.         kernel ${boot-url}/ipxe/wimboot
  6.         initrd ${boot-url}/bootmgfw.efi bootmgfw.efi
  7.         initrd ${boot-url}/EFI/MICROSOFT/BOOT/BCD BCD
  8.         initrd ${boot-url}/EFI/MICROSOFT/BOOT/zh-CN/bootmgr.efi.mui bootmgr.efi.mui
  9.         initrd ${boot-url}/EFI/MICROSOFT/BOOT/Fonts/chs_boot.ttf chs_boot.ttf
  10.         initrd ${boot-url}/EFI/MICROSOFT/BOOT/Fonts/wgl4_boot.ttf wgl4_boot.ttf
  11.         goto WIM

  12. :BIOS
  13.         kernel ${boot-url}/ipxe/wimboot
  14.         initrd ${boot-url}/bootmgr bootmgr
  15.         initrd ${boot-url}/BOOT/BCD BCD
  16.         initrd ${boot-url}/BOOT/zh-CN/bootmgr.exe.mui bootmgr.exe.mui
  17.         initrd ${boot-url}/BOOT/Fonts/chs_boot.ttf chs_boot.ttf
  18.         initrd ${boot-url}/BOOT/Fonts/wgl4_boot.ttf wgl4_boot.ttf
  19.         goto WIM

  20. :WIM
  21.         initrd ${boot-url}/WINPE/BOOT.SDI BOOT.SDI
  22.         initrd ${boot-url}/WINPE/WINPE.WIM WINPE.WIM
复制代码

作者: sizhou    时间: 2018-3-3 22:52

参照别人文件,简单修改过的,  自动判断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
作者: devilma    时间: 2018-3-4 08:08
看着菜单没毛病啊?
作者: 火焙鱼    时间: 2018-3-4 15:42
长知识了,好复杂,没玩过。
作者: 猪肉佬    时间: 2018-3-4 17:05
不知 发表于 2018-3-3 18:31
信息太少不好判断。最好把ipxe(ipxe/winpe.ipxe)菜单贴出来。
——————————————————— ...

是不是我wim文件有什么问题???我放在正常U盘是可行的!
作者: 不知    时间: 2018-3-4 17:18
猪肉佬 发表于 2018-3-4 17:05
是不是我wim文件有什么问题???我放在正常U盘是可行的!

有可能,但是如果是wim有问题,多半会在windows boot manager界面报错。这个界面啥提示也没有,不好判断,不过可以替换支持UEFI的PE的wim试下。而且要注意bcd中的路径要对,比如在网启的目录下是啥路径,BCD中的wim路径就是啥。比如在网启目录\sources\boot.wim,bcd的路径就是\sources\boot.wim。




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3