Mudanças entre as edições de "FOG"

De wiki.franca.unesp.br
Ir para: navegação, pesquisa
Linha 30: Linha 30:
  
 
'''Menu Item:''' os.WinPE10
 
'''Menu Item:''' os.WinPE10
 +
 
'''Description:''' WinPE 10
 
'''Description:''' WinPE 10
 +
 
'''Parameters:'''
 
'''Parameters:'''
 
  set tftp-path tftp://${fog-ip}
 
  set tftp-path tftp://${fog-ip}

Edição das 10h03min de 21 de março de 2022

WinPE 10 for BIOS and UEFI based systems

1. First we’ll create the required directories:

mkdir -p /tftpboot/os/winpe

2. Now we’ll mount the WinPE iso over the loop directory. Then we’ll copy the contents of the DVD to the directory we built above.

mount -o loop /{full path where you have the iso stored}/WinPE_amd64.iso /mnt/loop

cp /mnt/loop/Boot/BCD /tftpboot/os/winpe/
cp /mnt/loop/Boot/boot.sdi /tftpboot/os/winpe/
cp /mnt/loop/sources/boot.wim /tftpboot/os/winpe/
umount /mnt/loop

3. Download and install the latest wimboot kernel and extract it from the zip file.

cd /tmp
wget http://git.ipxe.org/releases/wimboot/wimboot-latest.zip
unzip wimboot-latest.zip

4. Copy the wimboot file from the archive directory to root of the /tftpboot directory (we’ll need this for every windows boot media, so we’ll place it in a common spot).

cp ./wimboot-2.6.0-signed/wimboot /tftpboot

5. The last bit of magic we need to do is setup a new FOG iPXE boot menu entry for this OS. 6. In the fog WebGUI go to FOG Configuration->iPXE New Menu Entry Set the following fields

Menu Item: os.WinPE10

Description: WinPE 10

Parameters:

set tftp-path tftp://${fog-ip}
set pe-path ${tftp-path}/os/winpe
kernel ${tftp-path}/wimboot gui
imgfetch --name BCD ${pe-path}/BCD BCD
imgfetch --name boot.sdi ${pe-path}/boot.sdi boot.sdi
imgfetch --name boot.wim ${pe-path}/boot.wim boot.wim
boot || goto MENU

7. That’s it, just pxe boot your target system and pick WinPE 10 from the FOG iPXE boot menu.