无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 12863|回复: 6

[求助] 求懂ipxe的大神

[复制链接]
发表于 2015-12-24 00:43:39 | 显示全部楼层 |阅读模式
本帖最后由 2011gb 于 2015-12-24 00:44 编辑

刚接触这个东西,有几个问题。
我知道https://rom-o-matic.eu/这个网站可以在线编译ipxe,但选项不知道怎么弄。
pxe,kpxe,undionly.kpxe这些哪个好点?速度和兼容性上?
我打算把ipxe的引导替换wds服务器的引导,以便可以引导更多类型的镜像,应该怎么做最好?是替换wdsnbp.com吗?如果是的话应该用什么样的文件格式?
ipxe的内置script怎么写可以调用服务器上面的菜单?因为菜单经常修改但是引导不经常改,内置菜单显然不方便。
发表于 2015-12-24 08:04:59 | 显示全部楼层
本帖最后由 liuzhaoyzz 于 2015-12-24 08:06 编辑

http://bbs.wuyou.net/forum.php?m ... &fromuid=298214
cckp把程序下载到了本地,你直接用本地化的程序编译。
另外,更简单的方法,不用整菜单,tinypxeserver可以直接挂载ipxe菜单,tinypxeserver搭配ipxe,简直是绝配!
感觉上IPXE.KRN速度快点,undionly.kpxe稍次,速度快的兼容性直觉差点。
ipxe是挂接在pxe基础上的,取得了速度,还想取得兼容性?不可能兼而有之。

点评

我这里能直接上这个网站的,他那个也是在线编译吧,保存了一些js缓存。 因为要用wds服务器,所以不能用第三方网络启动程序了。  详情 回复 发表于 2015-12-24 12:54
回复

使用道具 举报

发表于 2015-12-24 08:36:53 | 显示全部楼层
本帖最后由 zhaohj 于 2015-12-24 08:42 编辑

就是配置DHCP选项:
由于我80端口被其他程序占用改用81端口
menu.ipxe 样例(我真实机器配置):
#!ipxe
   set menu-timeout 5000
   set menu-default grub4dos
   isset ${ip} || dhcp
   isset ${next-server} || set next-server 192.168.1.11
:start
  menu iPXE Boot Menu
  item --gap --             --------------------------------- PE --------------------------------
  item w8pe                 BOOT W8PE.WIM -----(wimboot)
  item w8pe1                BOOT W8PE1.WIM ----(wimboot)
  item w7pe                 BOOT W7PE.WIM -----(wimboot)
  item w7pe1                BOOT W7PE1.WIM ----(wimboot)
  item w81pex64             BOOT W81PEX64.WIM -(wimboot)
  item --gap --             -------------------------------- TOOL --------------------------------
  item maxdos               Maxdos Tool
  item memtest              Memtest86
  item --gap --             ---------------------------- Advanced options -----------------------
  item --key c config       Configure settings                                   -- c
  item --key p pxelinux     Load PXELinux menu                                   -- p
  item --key g grub4dos     load GRUB4DOS menu                                   -- g
  item shell                Drop to iPXE shell
  item  Local             Boot from local drive 0x80
  item reboot               Reboot computer
  item --key x exit         Exit iPXE and continue BIOS boot                     -- x
  choose --timeout ${menu-timeout} --default ${menu-default} selected
  imgfree
  goto ${selected}
:shell
  echo Type 'exit' to get the back to the menu
  shell
  goto start
:failed
  echo Booting failed, dropping to shell
  goto shell
:Local
sanboot --no-describe --drive 0x80
goto failed
:reboot
  reboot
:exit
  exit
:config
  config
  goto start
:pxelinux
  chain http://${next-server}:81/pxelinux.0 || goto failed
  goto start
:grub4dos
  set net0/filename grldr
  chain grldr || goto failed
  goto start
:memtest
  chain http://${next-server}:81/MAXDOS/memtest.bin || goto failed  #http://boot.ipxe.org/memtest.bin
  goto start
:maxdos
  initrd http://${next-server}:81/MAXDOS/max9.3.ima
  chain http://${next-server}:81/memdisk || goto failed
:0pe
  initrd http://${next-server}:81/ISO/0PE.ISO
  chain  http://${next-server}:81/memdisk iso raw
#chain http://${next-server}:81/ISO/grub.exe --config-file="map (rd)+1 (0xff);map --hook;chainloader (0xff)"
:TangoPE
  initrd http://${next-server}:81/ISO/TangoPE_NET.ISO
  chain http://${next-server}:81/memdisk iso raw
:w8pe
  initrd http://${next-server}:81/w8pe/w8pe.wim boot.wim
  goto winpe
:w8pe1
  initrd http://${next-server}:81/w8pe/w8pe1.wim boot.wim
  goto winpe
:w7pe
  initrd http://${next-server}:81/w7pe/w7pe.wim boot.wim
  goto winpe
:w7pe1
  initrd http://${next-server}:81/w7pe/w7pe1.wim boot.wim
  goto winpe
:w81pex64
  initrd http://${next-server}:81/w8pe/W81x64.wim boot.wim
  goto winpe
:winpe
  kernel http://${next-server}:81/wimboot gui pause
  initrd http://${next-server}:81/bootmgr.exe bootmgr.exe
  initrd http://${next-server}:81/boot/bcd bcd
  initrd http://${next-server}:81/boot/fonts/wgl4_boot.ttf wgl4_boot.ttf
  initrd http://${next-server}:81/boot/fonts/chs_boot.ttf chs_boot.ttf
  initrd http://${next-server}:81/boot/boot.sdi boot.sdi
  imgstat
  boot || goto failed
  goto start
dhcp选项.jpg

点评

这个意思是,添加两个067的选项,ipxe会自动找到配置文件? 可是这里DHCP不好设置,服务器太多,而且不受我管,我想着是能不能替换wds服务器上面的引导文件来实现最好。  详情 回复 发表于 2015-12-24 12:49
回复

使用道具 举报

 楼主| 发表于 2015-12-24 12:49:47 | 显示全部楼层
zhaohj 发表于 2015-12-24 08:36
就是配置DHCP选项:
由于我80端口被其他程序占用改用81端口
menu.ipxe 样例(我真实机器配置):

这个意思是,添加两个067的选项,ipxe会自动找到配置文件?
可是这里DHCP不好设置,服务器太多,而且不受我管,我想着是能不能替换wds服务器上面的引导文件来实现最好。

点评

"服务器太多,而且不受我管" 这正是“proxcy DHCP”的典型使用场景  详情 回复 发表于 2015-12-30 09:47
回复

使用道具 举报

 楼主| 发表于 2015-12-24 12:54:32 | 显示全部楼层
liuzhaoyzz 发表于 2015-12-24 08:04
http://bbs.wuyou.net/forum.php?mod=redirect&goto=findpost&ptid=372642&pid=3154767&fromuid=298214
cc ...

我这里能直接上这个网站的,他那个也是在线编译吧,保存了一些js缓存。
因为要用wds服务器,所以不能用第三方网络启动程序了。

点评

“保存了一些js缓存”? 你说得对 。 这是针对上不了这个网站的人的。因为那些js文件处于被祖国封锁了的网站上。只要js文件有了,实际上还是在线编译。你本来就上得了那个网站,说明你已经脱离了祖国的怀抱 用不着那  详情 回复 发表于 2015-12-30 09:48
回复

使用道具 举报

 楼主| 发表于 2015-12-30 23:38:11 | 显示全部楼层
cckp 发表于 2015-12-30 09:47
"服务器太多,而且不受我管"   这正是“proxcy DHCP”的典型使用场景

所有的DHCP已经指定了启动服务器了,不能轻易更改
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-3-29 13:28

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表