clivebuckwheat Posted March 28, 2010 Share Posted March 28, 2010 Hi I have been trying to accomplish this feat for about a week now, and I always seem to get a boot up error. See screen shot at then end of the post any guidance would be appreciated.Here is how I call WinPe from my default filelabel WinPEmenu label ^WinPEmenu defaultkernel Boot/startrom.0append Bootmgr.exehere is the content of my /tftpbootpxelinux.0boot.img.gzmini.isopxelinux.cfgvesamenu.c32bootmgr.exenetboot.tar.gztftpd.remap/tftpboot/Bootabortpxe.comboot.sdihdlscom2.comstartrom.0wgl4_boot.ttfBCDhdlscom1.comhdlscom2.n12WdsConfig.infWinPE.wimBCD.LOGhdlscom1.n12pxeboot.comwdsnbp.com/tftpboot/tftpd.remap filerg \\ //etc/default/tftpd-hpaRUN_DAEMON="yes"OPTIONS="-l -s /tftpboot -m /tftpboot/tftpd.remap -vvv"/etc/inetd.conftftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /tftpboot/etc/dhcp3/dhcp.confdefault-lease-time 86400;max-lease-time 604800;authoritative;subnet 192.168.1.0 netmask 255.255.255.0 {range 192.168.1.2 192.168.1.255;option subnet-mask 255.255.255.0;option broadcast-address 192.168.1.255;option routers 192.168.1.1;filename "pxelinux.0";next-server 192.168.1.195;Contents of /var/log/syslog/var/log/syslogMar 27 20:24:35 pxe-server in.tftpd[15040]: RRQ from 192.168.1.5 filename howtoforge_pxe.pngMar 27 20:24:39 pxe-server in.tftpd[15041]: remap: input: Boot/startrom.0Mar 27 20:24:39 pxe-server in.tftpd[15041]: remap: doneMar 27 20:24:39 pxe-server in.tftpd[15041]: RRQ from 192.168.1.5 filename Boot/startrom.0Mar 27 20:24:39 pxe-server in.tftpd[15042]: remap: input: bootmgr.exeMar 27 20:24:39 pxe-server in.tftpd[15042]: remap: doneMar 27 20:24:39 pxe-server in.tftpd[15042]: RRQ from 192.168.1.5 filename bootmgr.exeMar 27 20:24:40 pxe-server in.tftpd[15043]: remap: input: \Boot\Fonts\wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15043]: remap: rule 0: rewrite: /Boot\Fonts\wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15043]: remap: rule 0: rewrite: /Boot/Fonts\wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15043]: remap: rule 0: rewrite: /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15043]: remap: doneMar 27 20:24:40 pxe-server in.tftpd[15043]: RRQ from 192.168.1.5 filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15044]: remap: input: \Boot\Fonts\wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15044]: remap: rule 0: rewrite: /Boot\Fonts\wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15044]: remap: rule 0: rewrite: /Boot/Fonts\wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15044]: remap: rule 0: rewrite: /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:40 pxe-server in.tftpd[15044]: remap: doneMar 27 20:24:40 pxe-server in.tftpd[15044]: RRQ from 192.168.1.5 filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:41 pxe-server in.tftpd[15045]: remap: input: \boot.iniMar 27 20:24:41 pxe-server in.tftpd[15045]: remap: rule 0: rewrite: /boot.iniMar 27 20:24:41 pxe-server in.tftpd[15045]: remap: doneMar 27 20:24:41 pxe-server in.tftpd[15045]: RRQ from 192.168.1.5 filename \boot.ini remapped to /boot.iniMar 27 20:24:41 pxe-server in.tftpd[15045]: sending NAK (1, File not found) to 192.168.1.5Mar 27 20:24:56 pxe-server in.tftpd[15046]: remap: input: \Boot\BCDMar 27 20:24:56 pxe-server in.tftpd[15046]: remap: rule 0: rewrite: /Boot\BCDMar 27 20:24:56 pxe-server in.tftpd[15046]: remap: rule 0: rewrite: /Boot/BCDMar 27 20:24:56 pxe-server in.tftpd[15046]: remap: doneMar 27 20:24:56 pxe-server in.tftpd[15046]: RRQ from 192.168.1.5 filename \Boot\BCD remapped to /Boot/BCDMar 27 20:24:56 pxe-server in.tftpd[15047]: remap: input: \Boot\BCDMar 27 20:24:56 pxe-server in.tftpd[15047]: remap: rule 0: rewrite: /Boot\BCDMar 27 20:24:56 pxe-server in.tftpd[15047]: remap: rule 0: rewrite: /Boot/BCDMar 27 20:24:56 pxe-server in.tftpd[15047]: remap: doneMar 27 20:24:56 pxe-server in.tftpd[15047]: RRQ from 192.168.1.5 filename \Boot\BCD remapped to /Boot/BCDMar 27 20:24:57 pxe-server in.tftpd[15048]: remap: input: \Boot\Fonts\wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15048]: remap: rule 0: rewrite: /Boot\Fonts\wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15048]: remap: rule 0: rewrite: /Boot/Fonts\wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15048]: remap: rule 0: rewrite: /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15048]: remap: doneMar 27 20:24:57 pxe-server in.tftpd[15048]: RRQ from 192.168.1.5 filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15048]: tftp: client does not accept optionsMar 27 20:24:57 pxe-server in.tftpd[15049]: remap: input: \Boot\Fonts\wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15049]: remap: rule 0: rewrite: /Boot\Fonts\wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15049]: remap: rule 0: rewrite: /Boot/Fonts\wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15049]: remap: rule 0: rewrite: /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15049]: remap: doneMar 27 20:24:57 pxe-server in.tftpd[15049]: RRQ from 192.168.1.5 filename \Boot\Fonts\wgl4_boot.ttf remapped to /Boot/Fonts/wgl4_boot.ttfMar 27 20:24:57 pxe-server in.tftpd[15050]: remap: input: \hiberfil.sysMar 27 20:24:57 pxe-server in.tftpd[15050]: remap: rule 0: rewrite: /hiberfil.sysMar 27 20:24:57 pxe-server in.tftpd[15050]: remap: doneMar 27 20:24:57 pxe-server in.tftpd[15050]: RRQ from 192.168.1.5 filename \hiberfil.sys remapped to /hiberfil.sysMar 27 20:24:57 pxe-server in.tftpd[15050]: sending NAK (1, File not found) to 192.168.1.5:' Link to comment Share on other sites More sharing options...
bj-kaiser Posted March 28, 2010 Share Posted March 28, 2010 (edited) I think the bootloader message together with your TFTP log is quite clear, isnt it?Something in the BCD file is wrong, as it can apparently load it and tell you that. And you never see the .wim getting requested from TFTP.so check your BCD config. "bcdedit /store BCDfile /enum"update:this is what a succesful boot of WinPE 2.0 looks like from the TFTP server side: Edited March 28, 2010 by bj-kaiser Link to comment Share on other sites More sharing options...
jaclaz Posted March 28, 2010 Share Posted March 28, 2010 Cross-linking:http://www.911cd.net/forums//index.php?showtopic=23759jaclaz Link to comment Share on other sites More sharing options...
kai4785 Posted May 3, 2010 Share Posted May 3, 2010 I totally feel your pain. I've spent many many hours trying to do exactly what you're doing. The good news is that I just finished up putting my final touches on this project last week. So here's the parts of the puzzle I think you might be missing. As a point of clarification, there are two lines in the following script that will probably fail. I modified the original 'startnet.cmd' file to add a call to 'mac.bat', and then added the 'mac.bat' script to my WinPE.wim file. I use these two script to mount my SMB share, cd to the installer directory, and run setup.exe with an unattended file. If you'd like a copy of those scripts, I can add them, but you don't need them to start WinPE.Also, don't forget to change the GUID to the return value of the BCD creation command. I've yet to go back to the script, and rewrite it to capture the GUID. I plan to do it at some point, just haven't gone back to it yet.# Run this from the Windows Machine that has WAIK installed.#Mount the TFTP root of the Linux Server via SMBnet use Y: \\pxe\REMINST# Create and copy over the WinPE image (renamed to boot.wim)copype.cmd amd64 c:\winpe_amd64imagex /mountrw C:\winpe_amd64\winpe.wim 1 C:\winpe_amd64\mountcopy /Y c:\winpe_amd64\mount\Windows\Boot\PXE\*.* Y:\Bootcopy /Y Y:\Boot\pxeboot.n12 Y:\Boot\startrom.0copy /Y Y:\images\WINDOWS_ISOS\startnet.cmd c:\winpe_amd64\mount\Windows\System32\startnet.cmdcopy /Y Y:\images\WINDOWS_ISOS\mac.bat c:\winpe_amd64\mount\Windows\System32\mac.batImagex /unmount /commit c:\winpe_amd64\mountcopy /Y c:\winpe_amd64\winpe.wim Y:\Boot\boot.wimcopy /Y "c:\Program Files\Windows AIK\Tools\PETools\amd64\boot\boot.sdi" Y:\Boot#Create the BCDBcdedit -createstore c:\winpe_amd64\BCDBcdedit -store c:\winpe_amd64\BCD -create {ramdiskoptions} /d "Ramdisk options"Bcdedit -store c:\winpe_amd64\BCD -set {ramdiskoptions} ramdisksdidevice bootBcdedit -store c:\winpe_amd64\BCD -set {ramdiskoptions} ramdisksdipath \Boot\boot.sdiBcdedit -store c:\winpe_amd64\BCD -create /d "Fibernet WinPE Boot Image for Unattended Installs" /application osloader#The last command returns a unique GUID string that needs to be used in later commands:# The entry {ea0be71a-4bf4-11df-aecf-c21c162604c3} was successfully created.Bcdedit -store c:\winpe_amd64\BCD -set {6a81174a-4d52-11df-b87f-e53851c295c4} systemroot \WindowsBcdedit -store c:\winpe_amd64\BCD -set {6a81174a-4d52-11df-b87f-e53851c295c4} detecthal YesBcdedit -store c:\winpe_amd64\BCD -set {6a81174a-4d52-11df-b87f-e53851c295c4} winpe YesBcdedit -store c:\winpe_amd64\BCD -set {6a81174a-4d52-11df-b87f-e53851c295c4} osdevice ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}Bcdedit -store c:\winpe_amd64\BCD -set {6a81174a-4d52-11df-b87f-e53851c295c4} device ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}Bcdedit -store c:\winpe_amd64\BCD -create {bootmgr} /d "Windows BootManager"Bcdedit -store c:\winpe_amd64\BCD -set {bootmgr} timeout 30Bcdedit -store c:\winpe_amd64\BCD -displayorder {6a81174a-4d52-11df-b87f-e53851c295c4}copy c:\winpe_amd64\BCD Y:\BootYou want to do the amd64 one because it will do both the amd64 and x86 installs. The opposite is not true.Then my tftp remap file, and xinetd.d/tftp file.# cat /etc/tftpd.rules r ^\\cdrom\\i386\\pcntpci5.sys pcntpci5.sysr ^\\\\i386 i386rg \\ /r KDCOM.DL_ kdcom.dl_r KDCOM.DLL kdcom.dllr BOOTVID.dl_ bootvid.dl_r BOOTVID.dll bootvid.dllr SETUPREG.HIV setupreg.hivr SPDDLANG.SY_ spddlang.sy_r SPDDLANG.SYS spddlang.sysr WMILIB.SY_ wmilib.sy_r WMILIB.SYS wmilib.sysr 1394BUS.SY_ 1394bus.sy_r 1394BUS.SYS 1394bus.sysr PCIIDEX.SY_ pciidex.sy_r PCIIDEX.SYS pciidex.sysr USBPORT.SY_ usbport.sy_r USBPORT.SYS usbport.sysr USBD.SY_ usbd.sy_r USBD.SYS usbd.sysr HIDCLASS.SY_ hidclass.sy_r HIDCLASS.SYS hidclass.sysr HIDPARSE.SY_ hidparse.sy_r HIDPARSE.SYS hidparse.sysr SCSIPORT.SY_ scsiport.sy_r SCSIPORT.SYS scsiport.sysr CLASSPNP.SY_ classpnp.sy_r CLASSPNP.SYS classpnp.sysr TDI.SY_ tdi.sy_r TDI.SYS tdi.sysr OPRGHDLR.SY_ oprghdlr.sy_r OPRGHDLR.SYS oprghdlr.sysr VIDEOPRT.SY_ videoprt.sy_r VIDEOPRT.SYS videoprt.sysr HALAACPI.DL_ halaacpi.dl_r HALAACPI.DLL halaacpi.dllr iaStor iastorr Fasttx2k fasttx2kr S150sx8 s150sx8r QL2300 ql2300r Si3112 si3112r SiSRaid sisraidr RTL8139.SY_ rtl8139.sy_r RTL8139.SYS rtl8139.sysr 3waredrv.sys 3wareDrv.sysr 3waredrv.sy_ 3wareDrv.sy_r bootmgr.exe /Boot/bootmgr.exer /boot/ /Boot/# cat /etc/xinetd.d/tftp # default: off# description: The tftp server serves files using the trivial file transfer \# protocol. The tftp protocol is often used to boot diskless \# workstations, download configuration files to network-aware printers, \# and to start the installation process for some operating systems.service tftp{ socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -vv -c -s /tftpboot -m /etc/tftpd.rules disable = no per_source = 11 cps = 100 2 flags = IPv4}That should do it for you. I can pretty much guarantee that I can help you resolve this issue. Go back to the Ubuntu forums and other places you've posted the same issue, and close the threads with a link back to this one. Link to comment Share on other sites More sharing options...
hj_fr Posted May 9, 2010 Share Posted May 9, 2010 Hi clivebuckwheat,I successfully boot up WinPE 3 AMD64 from a Linux TFTPD server.Contents of /etc/tftpd.map :# Convert backslashes to slashesrg \\ /Tree of my tftpboot directory:.|-- Boot -> boot|-- boot| |-- BCD| |-- WdsConfig.inf| |-- abortpxe.com| |-- boot.sdi| |-- bootmgr.exe| |-- en-US| | |-- bootmgr.exe.mui| | `-- wdsmgfw.efi.mui| |-- fr-FR| | |-- bootmgr.exe.mui| | `-- wdsmgfw.efi.mui| |-- hdlscom1.com| |-- hdlscom1.n12| |-- hdlscom2.com| |-- hdlscom2.n12| |-- pxeboot.0 -> pxeboot.n12| |-- pxeboot.com| |-- pxeboot.n12| |-- wdsmgfw.efi| `-- wdsnbp.com|-- bootmgr.exe -> boot/bootmgr.exe|-- pxelinux.0|-- pxelinux.cfg| `-- default`-- sources `-- boot.wimMy pxelinux.cfg/default :KERNEL boot/pxeboot.0 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now