Skip to main content

tftp - Error loading my BCD when trying to PXE boot to Windows PE

itemprop="text">

I'm trying to set up an ubuntu server
with pxelinux, so I can boot Windows PE using PXE. On the client machine, I can see that
pxelinux itself works, but the next screen is
this:



src="https://i.stack.imgur.com/avHqa.png"
alt="error">



/>


Here is what I
did:



Step 1: Installed
tftpd-hpa and dhcp3 on the server. The
server is a fresh ubuntu server x86 virtual machine. Static IP is
192.168.26.0. Samba server is
installed.



dhcpd.conf
contains



subnet 192.168.26.0
netmask 255.255.255.0 {
range 192.168.26.10 192.168.26.40;

filename "pxelinux.0";

next-server
192.168.26.0;
}


I
have verified that TFTP and DHCP work.



Step 2:
Downloaded pxelinux.0 from href="http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/installer-i386/current/images/netboot/pxelinux.0"
rel="nofollow noreferrer">the ubuntu repository. Put it in the tftpboot
directory and created pxelinux.cfg/default with these
contents:



DEFAULT
winpe


PROMPT 0
TIMEOUT
300

MENU TITLE PXE

LABEL winpe
MENU
LABEL Windows PE
KERNEL
Boot/pxeboot.0



I've
tried using Wdsnbp.0 (-> Wdsnbp.com), instead of pxeboot.0 (-> pxeboot.com) made
no difference.



I want to make a real
menu with ubuntu options later.



Step 3:
Downloaded and installed the href="http://www.microsoft.com/en-us/download/details.aspx?id=5753" rel="nofollow
noreferrer">Windows Automated Installation Kit for Windows 7 and installed
it on a fresh Windows 7 x64 vm.



I followed these
instructions in the WAIK.chm file that comes with the download.
Short version:



Copying Files and
stuff:




copype.cmd x86
c:\winpe_x86


I want to
provide an x86 winpe image.



imagex
/mountrw C:\winre_x86\winpe.wim 1 C:\winpe_x86\mount

net use y:
\\192.168.26.0\TFTPRoot
y:
md
Boot


cd \temp\Windows\Boot\PXE
copy
c:\winpe_x86\mount\Windows\Boot\PXE\*.* y:\Boot
copy c:\Program
Files\WAIK\Tools\PETools\x86\boot\boot.sdi y:\Boot

Imagex /unmount
C:\winpe_x86\mount
copy c:\winpe_x86\winpe.wim
y:\Boot\boot.wim


BCDEdit
usage:




Bcdedit
-createstore c:\BCD

Bcdedit -store c:\BCD -create {ramdiskoptions}
/d “Ramdisk options”
Bcdedit -store c:\BCD -set {ramdiskoptions}
ramdisksdidevice boot
Bcdedit -store c:\BCD -set {ramdiskoptions}
ramdisksdipath \boot\boot.sdi

Bcdedit -store c:\BCD -create /d
“MyWinPE Boot Image” /application
osloader



guid1
is the guid returned from the previous
command.



Bcdedit -store c:\BCD
-set {guid1} systemroot \Windows
Bcdedit -store c:\BCD -set {guid1} detecthal
Yes
Bcdedit -store c:\BCD -set {guid1} winpe Yes
Bcdedit -store
c:\BCD -set {guid1} osdevice
ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}
Bcdedit -store c:\BCD -set
{guid1} device
ramdisk=[boot]\Boot\boot.wim,{ramdiskoptions}

Bcdedit -store c:\BCD
-create {bootmgr} /d “Windows BootManager” /inherit {dbgsettings}
Bcdedit
-store c:\BCD -set {bootmgr} timeout 30

Bcdedit -store c:\BCD
-displayorder {guid1}

copy c:\BCD
\\server\TFTPRoot\Boot


BCDEdit
reported each operation as successful. The BCD file is
capitalized.



Step 4: I created some symbolic
links (advice from href="http://www.rrze.uni-erlangen.de/dienste/arbeiten-rechnen/windows/windows-pxe-boot.shtml"
rel="nofollow noreferrer">this German
source):



ln -s Boot
boot

ln -s Boot/bootmgr.exe bootmgr.exe
ln -s
Boot/pxeboot.n12
Boot/pxeboot.0


Unfortunately
that source deals with Windows Vista and Windows PE 2.0, whereas I'm using Windows 7 and
Windows PE 3.0, but those links can't harm I guess. Using
pxeboot.com instead of pxeboot.n12
does not fix the problem. The only difference is that you have to press F12 to boot. A
sign that the system works at least on a basic level (i.e. it can at least load
pxeboot.n12 and
bootmgr.exe).



I also
added this remap-rule to /etc/tftp_remap.conf to avoid problems
with path separators:



rg \\
/



I'm out
of ideas. I recreated the BCD several times. I also tried using the BCD that you can
find in the WAIK folders, no success. Googling this error unfortunately only yielded
irrelevant information to me (i.e. how to repair this problem with existing Windows
installations).


itemprop="text">
class="normal">Answer



It turned
out to be a rather embarrasing mistake.



Inside
/etc/default/tftp.conf, I used the wrong syntax to point to the
/etc/tft_remap.conf file. The correct file
contents are
these:



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"



TFTP_OPTIONS="--secure
-l -v -m
/etc/tftp-remap.conf
"



Comments

Popular posts from this blog

iLO 3 Firmware Update (HP Proliant DL380 G7)

The iLO web interface allows me to upload a .bin file ( Obtain the firmware image (.bin) file from the Online ROM Flash Component for HP Integrated Lights-Out. ) The iLO web interface redirects me to a page in the HP support website ( http://www.hp.com/go/iLO ) where I am supposed to find this .bin firmware, but no luck for me. The support website is a mess and very slow, badly categorized and generally unusable. Where can I find this .bin file? The only related link I am able to find asks me about my server operating system (what does this have to do with the iLO?!) and lets me download an .iso with no .bin file And also a related question: what is the latest iLO 3 version? (for Proliant DL380 G7, not sure if the iLO is tied to the server model)

linux - Awstats - outputting stats for merged Access_logs only producing stats for one server's log

I've been attempting this for two weeks and I've accessed countless number of sites on this issue and it seems there is something I'm not getting here and I'm at a lost. I manged to figure out how to merge logs from two servers together. (Taking care to only merge the matching domains together) The logs from the first server span from 15 Dec 2012 to 8 April 2014 The logs from the second server span from 2 Mar 2014 to 9 April 2014 I was able to successfully merge them using the logresolvemerge.pl script simply enermerating each log and > out_putting_it_to_file Looking at the two logs from each server the format seems exactly the same. The problem I'm having is producing the stats page for the logs. The command I've boiled it down to is /usr/share/awstats/tools/awstats_buildstaticpages.pl -configdir=/home/User/Documents/conf/ -config=example.com awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awstats.pl dir=/home/User/Documents/parced -month=all -year=all...

linux - How can I get my mediawiki to stop thinking I have cookies disabled?

I've searched half a day for how to resolve this issue, and can't figure it out. Shortly after I made my wiki a simple private wiki according to the instructions at Mediawiki's website, it started giving me this weird login error message: Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again. If I remove those private wiki settings, the error disappears, even if I try logging in. But I need it to be a private wiki for only my team. So what do I do? Here's what I've done so far. Just to be safe, after ever change, I try rebooting Apache using: sudo /etc/init.d/apache2 restart In my php.ini file, I have the following set: session.save_path = "/var/lib/php5" session.cookie_secure = secure session.cookie_path = /tmp session.cookie_domain = my server's internal URL (should I even set this? this field was blank before, but not commented out) session.referer_check = Off I ran the following to ensure that the fold...