Windows 7实战之使用 PXE 部署映像

系统
本文介绍如何使用 Windows(R) PE 2.0 设置第三方预启动执行环境 (PXE) 服务器。该过程包括将 Windows PE 2.0 源文件复制到 PXE 服务器,然后配置 PXE 服务器启动配置以使用 Windows PE。

本文介绍如何使用 Windows(R) PE 2.0 设置第三方预启动执行环境 (PXE) 服务器。该过程包括将 Windows PE 2.0 源文件复制到 PXE 服务器,然后配置 PXE 服务器启动配置以使用 Windows PE。

  步骤 1:将源文件复制到 PXE 服务器上

  在此步骤中,会将 Windows PE 源文件复制到 PXE 服务器。

  1、在技术人员计算机上,单击"开始",依次指向"程序"、Windows OPK 或 Windows AIK,然后单击"Windows PE 工具命令提示符"。

  菜单快捷方式将打开"命令提示符"窗口,并将环境变量自动设置为指向所有必需的工具。默认情况下,所有工具都安装在 C:\Program Files\<version>\Tools 中,其中 <version> 可以是 Windows OPK 或 Windows AIK。

  2、运行 Copype.cmd 脚本。该脚本需要使用两个参数:硬件体系结构和目标位置。

  copype.cmd <arch> <destination>其中 <arch> 可以是 x86、amd64 或 ia64,<destination> 是本地目录的路径。例如,

  copype.cmd x86 c:\winpe_x86此脚本会创建以下目录结构并复制该体系结构的所有必要文件。例如,

  C:\winpe_x86

  C:\winpe_x86\ISO

  C:\winpe_x86\mount

  3、使用 ImageX 工具将基本 Windows PE 映像装载到 \Mount 目录。例如,

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

  4、将网络连接映射到 PXE/TFTP 服务器上的 TFTP 根目录,并创建 \Boot 文件夹。例如,

  net use y: \<PXEServer>\TFTPRoot

  y:

  md Boot

  5、将 PXE 引导文件从装载目录复制到 \Boot 文件夹。例如,

  cd \temp\Windows\Boot\PXE

  copy c:\winpe_x86\mount\Windows\Boot\PXE\*.* y:\Boot

  6、将 Boot.sdi 文件复制到 PXE/TFTP 服务器。

  copy c:\Program Files\<version>\Tools\PETools\x86\boot\boot.sdi y:\Boot其中,<version> 可以是 Windows OPK 或 Windows AIK。

  7、卸载当前的 Windows PE 映像,并将可启动的 Windows PE 映像复制到 \Boot 文件夹。

  Imagex /unmount C:\winpe_x86\mount

  copy c:\winpe_x86\winpe.wim y:\Boot\boot.wim必须将基本的 Windows PE 映像 (Winpe.wim) 重命名为 Boot.wim。

 

内容导航
  步骤 2:配置启动配置

  在此步骤中,将使用 BCDEdit 工具创建 BCD 存储。BCDEdit 工具只能在 Windows? 7 计算机或 Windows PE 环境中运行。BCDEdit 工具位于 \Windows\System32 目录中。

  1、在 Windows 7 计算机或 Windows PE 环境中,使用 BCDEdit 工具创建一个 BCD 存储。例如,

  Bcdedit -createstore c:\BCD

  2、创建 RAMDISK 设置。例如,

  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

  3、(可选)创建内核调试程序设置。例如,

  Bcdedit -store c:\BCD -create {dbgsettings} /d "Debugger settings"

  Bcdedit -store c:\BCD -set {dbgsettings} debugtype serial

  Bcdedit -store c:\BCD -set {dbgsettings} baudrate 115200

  Bcdedit -store c:\BCD -set {dbgsettings} debugport 1

  4、为 Windows PE 映射创建 OSLoader 设置。例如,

  Bcdedit -store c:\BCD -create /d "MyWinPE Boot Image" /application osloader如果 s 命令成功,则计算机将返回 GUID 值。下列示例将此值指代为 guid1。

  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}

  5、创建 BOOTMGR 设置。例如,

  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} {guid2}其中,guid1、guid2 等等是每个 .wim 文件条目对应的 GUIDS。

  6、将 BCD 文件复制到服务器。例如,

  copy c:\BCD \server\TFTPRoot\Boot

  7、将 PXE/TFTP 服务器配置为指向要下载 WDSNBP.COM 的 PXE 客户端。

  现在已配置了 PXE/TFTP 服务器。

  部署过程

  下面概括了下载过程。

  1、指导客户(使用 DHCP 选项或 PXE 服务器响应)下载 Wdsnbp.com

  2、Wdsnbp.com 将验证 DHCP/PXE 响应数据包并继续下载 PXEBoot.com。

  3、PXEBoot.com 将下载 Bootmgr.exe 和 BCD 存储。BCD 存储必须位于 TFTP 根文件夹的 \Boot 目录中。此外,必须将 BCD 存储称为 BCD。

  4、Bootmgr.exe 将读取 BCD 操作系统条目,并下载 Boot.sdi 和 Windows PE 映像。

  5、Bootmgr.exe 通过运行 Windows PE 映像中的 Winload.exe 来开始启动 Windows PE。

【编辑推荐】

  1. Windows 7上市,微软的翻身仗?
  2. 测试显示微软Windows 7仍存在软件兼容性问题
  3. 分析称由于成本高 上网本厂商或不选用Win7
责任编辑:庞桂玉 来源: 腾讯科技
相关推荐

2009-09-11 08:12:36

Windows 7企业部署网络部署

2010-06-20 11:13:59

虚拟化VMControl

2011-02-23 09:52:40

批量部署DebianFAI

2009-09-18 08:40:56

Windows 7企业部署VHD

2021-04-09 08:00:00

容器开发云原生

2010-12-08 11:11:15

Windows 7

2010-05-17 13:47:02

2009-07-10 10:46:00

Windows 7企业Vista企业版微软

2009-09-15 08:30:36

Windows 7系统部署系统迁移

2009-03-24 09:12:06

Windows 7使用技巧微软

2016-03-29 11:03:30

DISM命令Windows 10

2009-07-17 13:16:45

微软操作系统WIndows 7Windows AIK

2009-03-18 09:39:01

HPC微软高性能计算

2009-03-31 08:51:02

微软Windows 7操作系统

2009-03-26 08:33:21

微软Windows 7操作系统

2010-12-23 13:44:10

Windows 7桌面部署

2009-01-14 12:20:59

MacBookWindows 7安装

2011-12-26 11:21:50

虚拟化SRM桌面虚拟化

2009-12-04 16:47:42

Windows 7

2010-03-04 09:07:44

点赞
收藏

51CTO技术栈公众号