nethuan 发表于 2015-11-18 17:14:43

Tiny PXE Server总是出这个是怎么回事?


菜单能传送,但是不能加载pe

captain_g 发表于 2015-11-19 09:20:36

把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

nethuan 发表于 2015-11-19 10:12:44

本帖最后由 nethuan 于 2015-11-19 10:14 编辑

#!ipxe
#set menu-timeout 8000
   set menu-default win8pe
   set xieyi:string ${xieyi}
   isset ${ip} || dhcp
#isset ${next-server} || set next-server 192.168.0.205
:start

menu iPXE Boot Menu --${ip}
item --gap --             --------------------------------- PE --------------------------------

item win8pe               Boot Win8 PE (wimboot)
item win81pe            Boot Win8.1 RamOS (wimboot)
   
item --gap --             -------------------------------- TOOL --------------------------------
item maxdos               Maxdos Tool
item menu-disk            DiskTool....
item menu-other         OtherTool...
item --gap --             ---------------------------- Advanced options -----------------------

item --key c config       Configure settings                                 -- c
item shell                Drop to iPXE shell
item reboot               Reboot computer
item --key x exit         Exit iPXE and continue BIOS boot                     -- x
choose --timeout ${menu-timeout} --default ${menu-default} selected
goto ${selected}

:shell
echo Type 'exit' to get the back to the menu
shell
goto start

:reboot
reboot

:exit
exit

:config
config
goto start

:pxelinux
chain ${xieyi}://${next-server}/pxelinux.0 || goto retry

:grub4dos
chain ${xieyi}://${next-server}/grldr.0 || goto retry

:memtest
chain ${xieyi}://${next-server}/BOOT/memtest.bin || goto retry
goto start

:maxdos
initrd ${xieyi}://${next-server}/BOOT/dostools/max9.3.ima
chain ${xieyi}://${next-server}/memdisk || goto retry

:menu-disk
menu                  Disk Tool
item diskgen            DiskGen4.5
item mhdd               MHDD

item --key 0x08 back Back to top menu...
chooseselected && goto ${selected} || goto start

:diskgen
initrd ${xieyi}://${next-server}/boot/DOSTOOLS/DGDOS.IMG
chain ${xieyi}://${next-server}/memdisk || goto retry

:mhdd
initrd ${xieyi}://${next-server}/boot/DOSTOOLS/MHDD.ISO
chain ${xieyi}://${next-server}/memdisk iso raw || goto retry

:menu-other
menu
item memtest         memtest86+
item test    ${xieyi} ----select change
item --key 0x08 back Back to top menu...
chooseselected && goto ${selected} || goto start

:test
   iseq ${xieyi} ftp && set xieyi ${xieyi} && goto menu-other ||
   iseq ${xieyi} ${xieyi} && set xieyi ftp && goto menu-other ||

:TangoPE
initrd ${xieyi}://${next-server}/ISO/TangoPE_NET.ISO || goto retry
chain ${xieyi}://${next-server}/memdisk iso raw

:win8pe
kernel ${xieyi}://${next-server}/wimboot/wimboot || goto retry
initrd ${xieyi}://${next-server}/wimboot/bootmgr.exe       bootmgr.exe|| goto retry
initrd ${xieyi}://${next-server}/wimboot/bcd       BCD|| goto retry
initrd ${xieyi}://${next-server}/wimboot/boot.sdi   boot.sdi|| goto retry
initrd ${xieyi}://${next-server}/wimboot/BOOT.WIM   BOOT.WIM|| goto retry
boot || goto retry
goto start

:win81pe
kernel ${xieyi}://${next-server}/wimboot/wimboot || goto retry
initrd ${xieyi}://${next-server}/wimboot/bootmgr.exe       bootmgr.exe|| goto retry
initrd ${xieyi}://${next-server}/wimboot/bcd       BCD|| goto retry
initrd ${xieyi}://${next-server}/wimboot/boot.sdi   boot.sdi|| goto retry
initrd ${xieyi}://${next-server}/wimboot/DYY8.WIM   BOOT.WIM|| goto retry
boot || goto retry
goto start

:retry
imgfree
prompt Error! press any key to back menu
goto start

nethuan 发表于 2015-11-19 10:13:59


;needed to tell TFTPd where is the root folder
root=netboot
;boot file - can be empty if you boot directly with ipxe/gpxe rather than intel pxe agent
filename=undionly.kpxe
;alternative boot file is request comes from ipxe or gpxe
altfilename=menu.txt
;my gpxe / ipxe dhcp options
optextra=175.6.1.1.1.8.1.1
;start HTTPd
httpd=1
binl=0
start=0
tftpd=1
proxydhcp=1
bind=1
smb=0
;will log to log.txt
log=0
;opt1=
;opt3=
;opt6=
;opt28=
;opt15=
;opt17=
;opt54=
;opt67=
;opt66=
;opt43=
;poolstart=
poolsize=50
;cmd=_test.bat
;if log=1, will log to log.txt


top=332
left=1335

top=486
left=509

nethuan 发表于 2015-11-19 10:16:10

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:16:18

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:16:31

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:16:31

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:16:31

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:16:32

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:16:32

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:17:25

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。

nethuan 发表于 2015-11-19 10:17:31

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:32

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:33

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:33

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:33

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:33

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:33

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:17:39

captain_g 发表于 2015-11-19 09:20
把 TINY PXE SERVER 的配置文件 及具体的 菜单文件 贴出了。

本板块下载的,没改动。:sleepy:

nethuan 发表于 2015-11-19 10:35:37

浏览器卡了,发多了,咋办?

captain_g 发表于 2015-11-19 11:43:47

1、首先查查TINY PXE SERVER的“根”即"ROOT="所指的目录;

2、你的菜单中的wimboot文件夹应在“根”下面;

3、确认一下菜单中用到文件是否齐全,位置对不对;

4、以你的部分菜单为例:

:win8pe
kernel ${xieyi}://${next-server}/wimboot/wimboot || goto retry
initrd ${xieyi}://${next-server}/wimboot/bootmgr.exe       bootmgr.exe|| goto retry
initrd ${xieyi}://${next-server}/wimboot/bcd       BCD|| goto retry
initrd ${xieyi}://${next-server}/wimboot/boot.sdi   boot.sdi|| goto retry
initrd ${xieyi}://${next-server}/wimboot/BOOT.WIM   BOOT.WIM|| goto retry
boot || goto retry
goto start

wimboot文件夹中至少必须有wimboot,bcd,boot.sdi,boot.wim 和 bootmgr(注意是 bootmgr 不是bootmgr.exe)几个文件,

其中 bcd,boot.sdi,bootmgr 直接用 最新原版系统中的文件,无需进行修改!

5、以下菜单(修改自H3大的)内容给你参考一下:

#!ipxe
   set menu-timeout 16000
   set menu-default w8pe
   isset ${ip} || dhcp
   isset ${next-server} || set next-server 192.168.1.110

:start
menu iPXE Boot Menu
item --gap --             -------------------------------- WINPE TOOL ---------------------------
item wpeiso                  66369 2003 PE IN ISO
item 0peiso                  PSEUDO 03 0PE IN ISO
item w7pe                  WIN 7x86 PE IN WIM
item w8pe                  WIN 8x86 PE IN WIM
item w81pe                   WIN 81x86 PE IN WIM
item w8164pe               WIN 81x64 PE IN WIM
item --gap --             -------------------------------- Advanced -----------------------------
item --key s shell             Drop to iPXE Shell
item --key r reboot             Reboot the Computer
item --key x exit             Exit iPXE and Continue BIOS Booting
choose --timeout ${menu-timeout} --default ${menu-default} selected
goto ${selected}

:shell
echo Type 'exit' to go back to the menu.
shell
goto start

:reboot
reboot

:exit
exit

:wpeiso
initrd http://${next-server}/BOOT/WXRS2003.ISO
chain http://${next-server}/BOOT/ISOLINUX/memdisk iso raw

:0peiso
initrd http://${next-server}/BOOT/PSEUD0PE.ISO
chain http://${next-server}/BOOT/ISOLINUX/memdisk iso raw

:w7pe
kernel http://${next-server}/BOOT/wimboot
initrd http://${next-server}/BOOT/bootmgr        bootmgr
initrd http://${next-server}/BOOT/bbb        bcd
initrd http://${next-server}/BOOT/boot.sdi        boot.sdi
initrd http://${next-server}/BOOT/WIN786PE.WIM        BOOT.WIM
boot
goto start

:w8pe
kernel http://${next-server}/BOOT/wimboot
initrd http://${next-server}/BOOT/bootmgr        bootmgr
initrd http://${next-server}/BOOT/bbb        bcd
initrd http://${next-server}/BOOT/boot.sdi        boot.sdi
initrd http://${next-server}/BOOT/WIN886PE.WIM        BOOT.WIM
boot
goto start

:w81pe
kernel http://${next-server}/BOOT/wimboot
initrd http://${next-server}/BOOT/bootmgr        bootmgr
initrd http://${next-server}/BOOT/bbb        bcd
initrd http://${next-server}/BOOT/boot.sdi        boot.sdi
initrd http://${next-server}/BOOT/WIN8186P.WIM        BOOT.WIM
boot
goto start

:w81pe64
kernel http://${next-server}/BOOT/wimboot
initrd http://${next-server}/BOOT/bootmgr        bootmgr
initrd http://${next-server}/BOOT/bbb        bcd
initrd http://${next-server}/BOOT/boot.sdi        boot.sdi
initrd http://${next-server}/BOOT/WIN8164P.WIM        BOOT.WIM
boot
goto start

:failed
echo Booting failed, dropping to
goto shell

captain_g 发表于 2015-11-19 12:05:55

看配置文件,网启服务器的“根”是 netboot;

网启引导文件为 undionly.kpxe;

菜单文件为 menu.txt;

因此菜单文件中用到的 wimboot 文件夹应和 undionly.kpxe 及 menu.txt 一道都在 netboot 目录中;

排除菜单的问题,如果网启成功后还加载不了PE,可以:

1、试一试另一个引导文件ipxe.pxe(带驱动的);

2、在 TINY PXE SERVER 界面上将 proxydhcp 前面的“勾”去掉(没有的就勾上);

nethuan 发表于 2015-11-20 07:44:23

日志提示:
7:42:42 ROOT=E:\pxesrv\netboot\
7:42:42 DHCPd:67 started...
7:42:42 TFPTd started...
7:42:42 HTTPd started...
7:42:48 DHCPd:DISCOVER received, MAC:08-00-27-20-BB-87, XID:6786B835
7:42:48 DHCPd:iPXE user-class detected
7:42:48 DHCPd:OFFER sent, IP:192.168.0.206, XID:6786B835
7:42:49 DHCPd:DISCOVER received, MAC:08-00-27-20-BB-87, XID:6786B835
7:42:49 DHCPd:iPXE user-class detected
7:42:49 DHCPd:OFFER sent, IP:192.168.0.206, XID:6786B835
7:42:51 DHCPd:REQUEST received, MAC:08-00-27-20-BB-87, XID:6786B835
7:42:51 DHCPd:iPXE user-class detected
7:42:51 DHCPd:ACK sent, IP:192.168.0.206, XID:6786B835
7:42:51 TFTPd:DoReadFile:menu.txt B:1432 T:3526
7:42:52 DHCPd:INFORM received, MAC:7C-05-07-84-43-EF, XID:5EB17E99
7:42:54 TFTPd:DoReadFile OpenError:://192.168.0.205/wimboot/wimboot Cannot open file "E:\pxesrv\netboot\:\192.168.0.205\wimboot\wimboot". 文件名、目录名或卷标语法不正确。
7:42:59 TFTPd stopped...
7:42:59 DHCPd:67 stopped...
7:42:59 HTTPd stopped...

captain_g 发表于 2015-11-20 10:45:38

nethuan 发表于 2015-11-20 07:44
日志提示:
7:42:42 ROOT=E:\pxesrv\netboot\
7:42:42 DHCPd:67 started...


“7:42:54 TFTPd:DoReadFile OpenError:://192.168.0.205/wimboot/wimboot Cannot open file "E:\pxesrv\netboot\:\192.168.0.205\wimboot\wimboot". 文件名、目录名或卷标语法不正确。”

E:\pxesrv\netboot\:\192.168.0.205\wimboot\wimboot 存在吗?

captain_g 发表于 2015-11-20 11:39:13

nethuan 发表于 2015-11-20 07:44
日志提示:
7:42:42 ROOT=E:\pxesrv\netboot\
7:42:42 DHCPd:67 started...


E:\pxesrv\netboot\:\192.168.0.205\wimboot\wimboot 应该不存在吧!

你在 #3 贴出来的菜单文件中实际上指定了服务端电脑的 IP 地址;

服务端电脑的 IP 是 192.168.0.205 吗?

还有菜单中的 set xieyi:string ${xieyi},其中这个 xieyi 与你的情况相符吗?总不该突然冒出这个来吧!应有所指的。

还是按照你的实际情况修改菜单文件 menu.txt 吧!

按照 #22 楼 5、中给的示例改改试试看看,将其中的 192.168.1.110 改成服务端的 IP 地址,其他的按照你的实际情况:

去掉set xieyi:string ${xieyi} 这一句;

将 #isset ${next-server} || set next-server 192.168.0.205 改成 isset ${next-server} || set next-server 192.168.0.205;

将所有的kernel ${xieyi} 改成 kernel http;

将所有的initrd ${xieyi} 改成 kernel http;

还有将 bootmgr.exe 改成 bootmgr;

还有,尽量避免在虚拟机中测试,服务端与客户端均用物理机测试。看你一楼的截图,那么清晰,客户端用的应该是虚拟机吧!

nethuan 发表于 2015-11-20 13:08:41

captain_g 发表于 2015-11-20 11:39
E:\pxesrv\netboot\:\192.168.0.205\wimboot\wimboot 应该不存在吧!

你在 #3 贴出来的菜单文件中实际 ...

解决了,原来是虚拟机不支持。谢谢@captain_g。害我绕了好大弯子

nethuan 发表于 2015-11-23 08:44:14

cckp 发表于 2015-11-21 14:21
网络没配好 不要说什么不支持虚拟机

请指教{:3_148:}

nethuan 发表于 2015-11-27 06:44:54

cckp 发表于 2015-11-24 15:04
没啥指教的。就是虚拟机的网络没通,没有得到IP而已。把虚拟机的网络学习一下就行了 教程问度娘,太多了

是没装vbox虚拟机扩展包,现在行了
页: [1]
查看完整版本: Tiny PXE Server总是出这个是怎么回事?