Jump to content











Photo
- - - - -

Windows PE 3.0 via PXE problem


  • Please log in to reply
4 replies to this topic

#1 TomasK

TomasK

    Newbie

  • Members
  • 12 posts
  •  
    Czech_ Republic

Posted 02 March 2011 - 04:19 PM

Hi,
please excuse me if I choose wrong section.

I am using Ubuntu 10.04 and trying boot Windows PE 3.0 (Win 7 based) via PXE. Problem is it ends at



Status: 0xc000000f

Info: The boot selection failed because a required device is inaccessible.


I have followed lines at: http://msdn.microsof...8(v=ws.10).aspx
and then tried to make it working on Ubuntu server.

My pxe root directory is /tftpboot.
Files in /tftpboot/Boot :
abortpxe.com de-DE hdlscom1.com ja-JP pt-PT WdsConfig.inf
BCD el-GR hdlscom1.n12 ko-KR pxeboot.com wdsnbp.com
bootmgr.exe en-US hdlscom2.com nb-NO pxeboot.n12 winpe.wim
boot.sdi es-ES hdlscom2.n12 nl-NL ru-RU zh-CN
cs-CZ fi-FI hu-HU pl-PL sv-SE zh-HK
da-DK fr-FR it-IT pt-BR tr-TR zh-TW

dhcpd.conf:
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.0.0 netmask 255.255.0.0 {
range 192.168.3.1 192.168.3.99;
filename "\\Boot\\pxeboot.n12";
next-server 192.168.2.50;
option subnet-mask 255.255.0.0;
option broadcast-address 192.168.255.255;
option routers 192.168.1.254;
}

-----------------------------------
# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -m /etc/tftp_remap.conf -vvv"

RUN_DAEMON="yes"
OPTIONS="-l -s /tftpboot"
----------------------------------

/etc/tftp_remap.conf contains:
gr \\ /

-----------------------------------

I've been playing with it for a while, getting different errors, I've also tried use gPXE but it seems have no difference.

Thank you for help.
TomasK

#2 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 02 March 2011 - 09:15 PM

You might consider using tcpdump or Wireshark and determining which is the last file successfully downloaded by the PXE-booting client. You might also be able to find out if your path separator remapping is working (/ versus \).

#3 nathan42100_facebook

nathan42100_facebook
  • Members
  • 7 posts

Posted 02 March 2011 - 09:19 PM

I just ran into a similar issue. For me (using tail -f /var/log/syslog you can see if your remap rule is working), it was that it was looking for boot.sdi in \boot\, not \Boot\. Also, make sure your BCD file was custom made using the tutorials for WinPE 2.0 and its named BCD in \Boot\

http://sysadminman.n...he-pxe-server-8
Instructions for the BCD are at the bottom.


EDIT: Didn't fully read the link you posted. But make sure the sdi is in \boot\ and BCD is in \Boot\ and boot.wim is in \sources\

Edited by nathan42100_facebook, 02 March 2011 - 09:22 PM.


#4 TomasK

TomasK

    Newbie

  • Members
  • 12 posts
  •  
    Czech_ Republic

Posted 04 March 2011 - 08:37 AM

Thank you, It's fully working now.

I have installed Wireshark and found out it was't looking for /Boot/boot.wim (according to my expectation based on values set in BCD) but it was actually looking for /boot/boot.wim.

Now I have
/boot/boot.wim
/Boot/boot.sdi and other files

I have also done some changes in config files:

dhcpd.conf:
allow booting;
allow bootp;
next-server 192.168.2.50;
filename "/Boot/pxeboot.n12";


remap_file (thanks http://www.gtkdb.de/index_17_797.html):
re bootmgr\.exe /Boot/bootmgr.exe
rgG [\] /

# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -m /etc/tftp_remap.conf"
RUN_DAEMON="yes"
OPTIONS="-l -s /tftpboot"

Thank you all for your help.
TomasK

Edited by TomasK, 04 March 2011 - 08:58 AM.


#5 ndog37

ndog37

    Member

  • Members
  • 88 posts
  •  
    New Zealand

Posted 08 May 2011 - 03:53 AM

I have never got remap files to work and I look after 700+ linux servers.. Lucky guy! Now you can do RIS installs and all the joys of windows deployments.

I just resort to compiling my winpe to iso and use pxelinux + memdisk + isofile


rd /s/q %systemdrive%\PE

%systemdrive%

cd "%programfiles%\windows aik\tools\petools"

call copype.cmd x86 %systemdrive%\PE\winpe_x86

copy "%systemdrive%\PE\winpe_x86\winpe.wim" "%systemdrive%\PE\winpe_x86\ISO\sources\boot.wim"

DISM /Mount-wim /WimFile:%systemdrive%\PE\winpe_x86\ISO\sources\boot.wim /index:1 /MountDir:%systemdrive%\PE\winpe_x86\mount



batch to add your files here



DISM.exe /unmount-Wim /MountDir:%systemdrive%\PE\winpe_x86\mount /Commit

del /s "%systemdrive%\PE\winpe_x86\ISO\boot\bootfix.bin"

oscdimg -n -b%systemdrive%\PE\winpe_x86\etfsboot.com %systemdrive%\PE\winpe_x86\ISO %systemdrive%\PE\winpe_x86\winpe_x86.iso






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users