标题: 终于搞定PXE启动PE2.0映像了 [打印本页] 作者: titanbai 时间: 2007-5-29 11:46 标题: 终于搞定PXE启动PE2.0映像了 搞了一星期终于搞定了,前面都是按照WAIK的User Guide里写的作的,里面有一章叫:Deploy an Image by using PXE
里面的步骤是安装好WAIK以后,在Windows PE Tools Command Prompt中
copype.cmd x86 c:\winpe_x86
imagex /mountrw c:\winpe_x86\winpe.wim 1 c:\winpe_x86\mount
copy c:\winpe_x86\mount\Windows\Boot\PXE\*.* [tftp目录的boot下]
copy c:\Program Files\Windows AIK\Tools\PETools\x86\boot\boot.sdi [tftp目录的boot下]
copy c:\winpe_x86\winpe.wim [tftp目录的boot下] ------这里有问题,其中有一个bootmgr.exe不用拷贝到boot下而需要拷贝到tftp根目录下,微软的说明有问题,这个问题造成我几天工夫------
然后制作自己的BCD文件,放到[tftp目录的boot下]
这样文件和目录上就OK了,现在开始来配置PXE。
-----------------------------
按照微软文档说明里这样写的:
Deployment process
A client gets directed (via DHCP Options or the PXE Server response) to download WDSNBP.COM
WDSNBP.COM validates the DHCP/PXE response packet and proceeds to download PXEBoot.com.
Note:
PXEBoot.com requires the client to press the F12 key to initiate PXE boot. One can rename one of the other PXE boot files (such as pxeboot.n12) to get WDSNBP.COM to download a different file.
PXEBoot.com downloads bootmgr.exe and the BCD store. The BCD store must reside in a \boot directory in the TFTP root folder. Additionally, the BCD store must be called BCD.
Bootmgr.exe reads the BCD operating system entries and downloads Boot.sdi and the Windows PE image (Winpe.wim).
Bootmgr.exe begins booting Windows PE by calling into Winload.exe within the Windows PE image.
-----------------------------
根据这个说明配置PXE如下
在根目录放上pxelinux.0,然后建立一个目录叫pxelinux.cfg,里面放一个default文件,文件内容如下:
default winpe2
prompt 1
timeout 30
label winpe2 kernel \boot\pxeboot.0
注意上面黑体的那一行,按照微软文档里说应该写的是WDSNBP.COM,但我实际运行不行,将WDSNBP.COM拷贝一份改成WDSNBP.0,在default文件里指定到\boot\WDSNBP.0,可以找到但连接不到TFTP,报错误如下:
Downloaded WDSNBP
Architecture: x86
Please wait while the machine account is created.
Contacting Server: 172.19.95.51
Failed to restart TFTP
TFTP download failed.
PXE-M0F: Exiting Intel PXE Now
Operation System not found
查找了很多资料,微软官方说明http://support.microsoft.com/kb/926172/en-us
里说需要修改DHCP的选项
在某些环境, 可能适用于下列 DHCP 选项用于直接 PXE 客户端到适当的网络启动文件来下载: