Boot WinPE from Linux PXE Server [wiki.snet.at]
 

Boot WinPE from Linux PXE Server

WAIK

create mkWinPE.cmd and execute

 1: "C:\Program Files\Windows AIK\Tools\x86\imagex.exe" /unmount /commit c:\winpe_x86\mount
 2: if exist c:\WinPE_x86 rd c:\WinPE_x86 /S /Q
 3: md c:\WinPE_x86
 4: md c:\WinPE_x86\ISO
 5: md c:\WinPE_x86\mount
 6: if exist "C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr" copy "C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr" "c:\WinPE_x86\ISO"
 7: if exist "C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr.efi" copy "C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr.efi" "c:\WinPE_x86\ISO"
 8: if exist "C:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com"copy "C:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com" "c:\WinPE_x86"
 9: if exist "C:\Program Files\Windows AIK\Tools\PETools\x86\boot\efisys.bin" copy "C:\Program Files\Windows AIK\Tools\PETools\x86\boot\efisys.bin" "c:\WinPE_x86"
10: if exist "C:\Program Files\Windows AIK\Tools\PETools\x86\boot" xcopy /cherky "C:\Program Files\Windows AIK\Tools\PETools\x86\boot" "c:\WinPE_x86\ISO\boot\"
11: if exist "C:\Program Files\Windows AIK\Tools\PETools\x86\EFI" xcopy /cherky "C:\Program Files\Windows AIK\Tools\PETools\x86\EFI" "c:\WinPE_x86\ISO\EFI\"
12: copy "C:\Program Files\Windows AIK\Tools\PETools\x86\winpe.wim" "c:\WinPE_x86\winpe.wim"
13: copy "C:\Program Files\Windows AIK\Tools\PETools\x86\winpe.wim" "c:\WinPE_x86\ISO\sources\boot.wim"
14:
15: if exist c:\tftpboot rd c:\tftpboot /S /Q
16: md c:\tftpboot
17: md c:\tftpboot\Boot
18: md c:\tftpboot\Boot\Fonts
19:
20: bcdedit -createstore c:\tftpboot\Boot\BCD
21: Bcdedit /store c:\tftpboot\Boot\BCD /create {ramdiskoptions} /d "Ramdisk options"
22: bcdedit /store c:\tftpboot\Boot\BCD /set {ramdiskoptions} ramdisksdidevice  boot
23: bcdedit /store c:\tftpboot\Boot\BCD /set {ramdiskoptions} ramdisksdipath  \Boot\boot.sdi
24: for /f "Tokens=3" %%i in ('bcdedit /store c:\tftpboot\Boot\BCD /create /d "WinPE 2.0" /application osloader') do set GUID=%%i
25: bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% systemroot \Windows
26: bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% detecthal Yes
27: bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% winpe Yes
28: bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% osdevice ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
29: bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% device ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
30: bcdedit /store c:\tftpboot\Boot\BCD /create {bootmgr} /d "WinPE 2.0"
31: bcdedit /store c:\tftpboot\Boot\BCD /set {bootmgr} timeout 1
32: bcdedit /store c:\tftpboot\Boot\BCD /set {bootmgr} displayorder %GUID%
33: bcdedit /store c:\tftpboot\Boot\BCD
34:
35: "C:\Program Files\Windows AIK\Tools\x86\imagex.exe" /mountrw c:\WinPE_x86\winpe.wim 1 c:\WinPE_x86\mount
36: "c:\Program Files\Windows AIK\Tools\PETools\peimg.exe" /install=WinPE-HTA-Package c:\winpe_x86\mount\Windows
37: "c:\Program Files\Windows AIK\Tools\PETools\peimg.exe" /install=WinPE-MDAC-Package c:\winpe_x86\mount\Windows
38: "c:\Program Files\Windows AIK\Tools\PETools\peimg.exe" /install=WinPE-Scripting-Package c:\winpe_x86\mount\Windows
39: "c:\Program Files\Windows AIK\Tools\PETools\peimg.exe" /install=WinPE-XML-Package c:\winpe_x86\mount\Windows
40: imagex /unmount c:\WinPE_x86\mount /commit
41:
42: copy c:\winpe_x86\mount\Windows\Boot\PXE\*.* c:\tftpboot\
43: copy "c:\Program Files\Windows AIK\Tools\PETools\x86\boot\boot.sdi" c:\tftpboot\
44: copy c:\winpe_x86\winpe.wim c:\tftpboot\
45: copy "c:\WinPE_x86\ISO\boot\fonts\wgl4_boot.ttf" c:\tftpboot\Boot\Fonts

DHCP

apt-get install dhcp3-server
....

edit /etc/dhcpd/dhcpd.conf

host tftpclient {
   hardware ethernet [MAC-Adresse des PXE Clients];
   fixed-address [IP-Adresse des PXE Clients];
   filename "Boot/pxeboot.n12";

TFTP

apt-get install tftpd-hpa

edit /etc/default/tftpd-hpa

RUN_DAEMON="yes"
OPTIONS="-v -l -m /etc/default/tftpd.rules -s /tftpboot"

create /etc/default/tftpd.rules

rg \\ / # Convert backslashes to slashes

PXE

http://syslinux.zytor.com/pxe.php

….

/tftpdboot/pxelinux.cfg/default

label winpe2
   kernel /Boot/pxeboot.n12

© 1992-2009 snet.at Gernot Stöckl IT-Services

 
/data/vhost/fbcvon/htdocs/data/pages/boot_winpe_2.0_from_linux_pxe_server.txt · Last modified: 2010/11/20 09:30 by admin
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki