|
4#
楼主 |
发表于 2020-11-26 10:33:56
|
只看该作者
#!ipxe
#下面这个3000是菜单等待时间代表3秒,
set menu-timeout 3000
set menu-default WINDOWS
isset ${ip} || dhcp
set initiator-iqn iqn.${product}:${mac:hexhyp}
#set gateway ${next-server}
:start
menu iPXE Boot Menu
item --gap -- --------------------------------- WIN --------------------------------
item WINDOWS BOOT WINDOWS(ISCSI)
item maxdos MaxDos
item win8x32 win8x32
item win8x64 win8x64
item isope win8x64iso
item --gap -- ---------------------------- Advanced options ------------------------
item --key p pe PE system -- p
item --key s shell shell -- s
item --key r reboot reboot computer -- r
item --key x exit Exit iPXE and continue BIOS boot -- x
item --gap --
item --gap -- ------------------------------- systeminfo ---------------------------
item --gap -- DHCP Server: ${dhcp-server}
item --gap -- IP: ${ip}
item --gap -- MAC: ${mac}
item --gap -- netmask: ${netmask}
item --gap -- Gateway: ${gateway}
item --gap -- DNS: ${dns}
item --gap -- UUID: ${uuid}
item --gap -- initiator-iqn: ${initiator-iqn}
choose --timeout ${menu-timeout} --default ${menu-default} selected
goto ${selected}
:reboot
reboot
:exit
exit
:shell
shell
goto start
:WINDOWS
chain /mac/${mac:hexhyp} || goto install
:maxdos
kernel http://${next-server}/boot/memdisk
initrd http://${next-server}/boot/maxdos9.img
boot
:win8x32
kernel http://${next-server}/wimboot/wimboot
initrd http://${next-server}/wimboot/bootmgr bootmgr
initrd http://${next-server}/wimboot/BCD bcd
initrd http://${next-server}/wimboot/boot.sdi boot.sdi
initrd http://${next-server}/boot/WEPE86.wim || goto retry
boot || goto failed
goto start
:win8x64
kernel http://${next-server}/boot/wimboot || goto retry
initrd http://${next-server}/boot/bootmgr bootmgr || goto retry
initrd http://${next-server}/boot/bcd BCD || goto retry
initrd http://${next-server}/boot.sdi boot.sdi || goto retry
initrd http://${next-server}/boot/WEPE64.wim || goto retry
boot || goto failed
goto start
:isope
initrd http://${next-server}/Win8PEx64.iso || goto failed
chain http://${next-server}/boot/memdisk raw iso
:pe
sanboot --no-describe --keep http://${next-server}/Win8PEx64.iso || goto failed
goto start
:menu
goto start
:install
echo -n ISCSI iqn: && read iqn
prompt --key y Press 'y' to seting iqn username and password,any key Skip. || goto installmenu
echo -n username: && read username
echo -n password: && read password
goto installmenu
:installmenu
set menu-timeout 10000
menu install Menu
item --gap -- --------------------------- INSTALL TO ISCSI --------------------------
item boot(iscsi) BOOT form ISCSI
item install(iscsi) Install windows to ISCSI
item install(PE) Alternnate install mode(PE)
item menu back Menu
choose --timeout ${menu-timeout} selected
goto ${selected}
:boot(iscsi)
sanboot iscsi:${next-server}::::${iqn}
:install(iscsi)
sanhook iscsi:${next-server}::::${iqn}
exit
:install(PE)
sanhook iscsi:${next-server}::::${iqn}
initrd http://${next-server}/Win8PEx64.iso
chain http://${next-server}/memdisk iso raw
现在是WIM的都这个提示。 |
|