|
使用一楼的免配置网启模板没有成功。
脚本修改菜单的 ‘set net_default_server=192.168.56.1’ 为 ‘set net_default_server= =’
使用本板块 ‘一个TinyPXE网启服务端,什么设置都不用做’ (http://bbs.c3.wuyou.net/forum.php?mod=viewthread&tid=425600&extra=page%3D1)测试:
这个网启模板可以由 ipxe.efi -> grub2x64.efi -> grub2pxe.cfg
1. 测试grub2通过tftp启动
菜单:
net_bootp
menuentry "ftfp IFU352.ISO" "IFU352.ISO" {
map --mem --type=CD /wims/IFU352.ISO
}
menuentry "ftfp WePE64_V2.2.iso" "/wims/WePE64_V2.2.iso" {
-search --no-floppy --set --file $2
map -f --mem --type=CD $2
}
menuentry "ftfp boot.wim" "/wims/boot.wim" {
wimboot \
@:bootmgfw.efi:/ms/EFI/boot/bootx64.efi \
@:bcd:/grub2/bcd \
@:boot.sdi:/boot.sdi \
@:boot.wim:/wims/boot.wim
}
以上三项都可以启动成功!
2. 测试grub2通过http启动
菜单:
net_bootp
set net_default_server=192.168.56.1
menuentry "http IFU352.ISO" "IFU352.ISO" {
map --mem --type=CD (http)/wims/IFU352.ISO
}
死机服务器日志:
6:38:58 ROOT=C:\usr\TinyPXEServer-win服务端\netboot\
6:38:58 DHCPd 192.168.56.1:67 started...
6:38:58 TFPTd 192.168.56.1:69 started...
6:38:58 HTTPd:80 started...
6:39:09 DHCPd:DISCOVER received, MAC:00-0C-29-83-7A-6B, XID:3F302C2
6:39:10 DHCPd:OFFER sent, IP:192.168.56.2, XID:3F302C2
6:39:13 DHCPd:REQUEST received, MAC:00-0C-29-83-7A-6B, XID:3F302C2
6:39:13 DHCPd:ACK sent, IP:192.168.56.2, XID:3F302C2
6:39:13 TFTPd:DoReadFile:grub2x64.efi B:1468 T:1490944
6:39:13 TFTPd:DoReadFile:grub2x64.efi B:1468 T:0
6:39:14 TFTPd:DoReadFile:/grub2/grub2pxe.cfg B:1024 T:1708
6:39:14 DHCPd:DISCOVER received, MAC:00-0C-29-83-7A-6B, XID:65A8C792
6:39:15 DHCPd:OFFER sent, IP:192.168.56.3, XID:65A8C792
6:39:15 DHCPd:DISCOVER received, MAC:00-0C-29-83-7A-6B, XID:65A8C793
6:39:15 DHCPd:OFFER sent, IP:192.168.56.4, XID:65A8C793
6:39:15 DHCPd:REQUEST received, MAC:00-0C-29-83-7A-6B, XID:65A8C793
6:39:15 DHCPd:ACK sent, IP:192.168.56.4, XID:65A8C793
6:39:22 HTTPd:Connect: 192.168.56.4, TID=10132
6:39:22 HTTPd:Client: 192.168.56.4 [GET] /wims/IFU352.ISO
6:39:22 HTTPd:Server : Returning /wims/IFU352.ISO
6:39:42 HTTPd:Exception: , Connection Closed Gracefully.
6:39:42 HTTPd:DisConnect: TID=10132
不知是哪里设置的不对。菜单里还需要增加哪些语句?请大神们指点!
另外请教:启动到grub2,进入命令行,执行set命令,内容超过一屏。
使用 set | less 或者使用 set | more ,都不能实现一屏暂停。
|
|