大多数组织都需要一种自动的方式将 Windows 映像部署到客户端。使用预引导执行环境 (PXE) 不是使用必须从中引导客户端的 USB 密钥,而是从网络启动 Windows 客户端、下拉映像和应用映像的好方法。Windows 部署服务 (WDS) 提供了一种应答 PXE 请求并向客户端提供 Windows 映像以进行预配的方法。让我们看一下 Windows 部署服务 PXE 启动配置,并了解如何配置 Windows 部署服务服务器以正确应答 PXE 启动请求。
什么是 Windows Deployment Services?
Windows 部署服务 (WDS) 允许您通过网络部署 Windows 操作系统,而无需从 CD、DVD 或 USB 密钥中提取操作系统。这为 IT 管理员提供了许多好处,包括:
- 基于网络的 Windows 安装
- 映像可以部署在许多不同版本的 Windows 中,从 Windows 7 到 Windows 10 以及 Windows Server 操作系统。
- 它利用标准的 Windows 技术,如 Windows 预安装环境 (WinPE)。
- 允许使用映像捕获向导创建引用计算机的映像
- 允许添加自定义驱动程序
Windows Deployment Services PXE Boot Configuration
现在,让我们进入手头的主题 - Windows 部署服务 PXE 启动配置。配置 WDS 服务器以应答 PXE 启动请求涉及哪些内容?实际上,使用 WDS 和 PXE 启动启动和运行非常简单。但是,我想详细说明我在实验室和其他地方看到的几个问题。
首先,让我们考虑以下过程的一些屏幕截图:
- 安装 Windows 部署服务
- 配置 Windows 部署服务
- BIOS 和 UEFI 的 PXE 注意事项
- 创建捕获映像
安装和配置 Windows 部署服务 (WDS)
你可以使用以下 PowerShell 命令轻松安装 Windows 部署服务的角色服务:
Install-WindowsFeature –Name WDS -ComputerName <computer_name> -IncludeManagementTools
您可能会在运行此脚本结束时看到看似错误的内容。但是,它只是指示您需要运行 WDS 的配置来配置角色。
在 Windows Server 2019 中安装 Windows Deployment Services
安装 WDS 角色后,需要对其进行配置。打开 WDS 管理控制台wdsmgmt.msc。
通过右键单击服务器并选择对其进行配置来启动 Windows 部署服务配置向导。第一个屏幕让你选择如何将WDS与Active Directory集成,或者你是否希望它是一个独立的盒子。
Selecting the WDS install options
Select your RemoteInstall folder for WDS
Select how you want the server to respond to clients initially
Operation completes select how you want to add images
WDS is now initialized and configured to start serving out images
Configuring the properties of the WDS server
There are many configuration items under the WDS properties. You can tweak and configure most aspects of the service. If you selected to not respond to clients during the initial setup, the PXE Response tab is where you can configure your PXE options.
Decide how WDS responds to clients for PXE requests
Adding Install and Boot Images
The next step in Windows Deployment Services PXE boot configuration is adding your images. The images consist of an install and boot image. Right-click on the install images node and select to Add Install Image. You will first be asked to create an image group.
Create an image group
Select your install.wim file from the Windows 10 media or a custom image file you want to use.
Select an install image you want to use with WDS
Verify the source of the image.
Add the image file source
In the case of a DVD ISO, you may have several Windows 10 images as part of the ISO. Select the one you want to add to the server.
Select the image from the available images
Verify the images in the Summary screen.
Add image summary
The image is added successfully.
Install image adds successfully
Do the same process for the boot image. The boot image is the listing you will see and boot from when you boot using PXE on a client workstation.
Add a boot image to WDS
Once you have a boot image uploaded, you can create a capture image as well. The capture image is an image that allows you to capture the present state of a machine – known as “build and capture.”
从启动映像创建捕获映像
下面是从 Windows 部署服务捕获映像启动的示例。
Windows Deployment Services Capture Image Boot
要捕获的 Windows 部署服务目录
适用于 BIOS 和 UEFI 的 PXE 配置
在大多数情况下,为 PXE 配置 WDS 非常容易。大多数默认设置在大多数环境中都可以正常工作。当您在与 DHCP 相同的服务器上加载 WDS时,需要注意一些注意事项。
BIOS 和 UEFI PXE 启动的配置之间存在差异。有些人已经注意到UEFI启动的更多问题。在我的实验室环境中,我找到了一些适合我的设置。其中包括将选项 66 和 67添加到 DHCP 作用域选项。有许多帖子指出不再推荐这样做。每个环境可能不同,您的里程也可能不同。
UEFI 的 DHCP 作用域选项
我还在我的WDS服务器上发现,Boot文件夹下的x64uefi文件夹缺少x64文件夹中的其他文件。我从那里将这些复制到x64uefi文件夹中,这解决了我遇到的计算机无法通过UEFI启动的问题。
确保文件位于 WDS 中 x64UEFI 的正确位置
与 Microsoft Deployment Toolkit 集成
Microsoft Deployment Toolkit (MDT) 通常与 WDS 结合使用。实际上,您会注意到我的实验室中的大多数上述屏幕截图都指向 MDT 作为服务器名称。我在单个服务器上具有WDS和MDT双宿主,这工作正常。它在某些方面使事情变得更容易,因为目录是本地的,等等。
MDT 是扩展 WDS 服务器功能的好方法,因为 MDT 提供了更强大的映像和基于"任务序列"的映像安装,这些映像和安装提供了大多数组织可以从中受益的企业中的其他特性和功能。
MDT 也可以从 Microsoft 免费获得,它是一个简单的包,您可以与 Windows 评估和部署工具包一起安装。
从微软下载 MDT
MDT 附带了所谓的Lite 触摸PE 启动映像,可提供许多开箱即用的功能。MDT 提供的单个 Lite Touch 映像可用于部署和捕获映像。
最后的思考
希望此 Windows 部署服务 PXE 启动配置概述和各种技术指南将有助于全面了解 Microsoft 为映像提供的解决方案以及 PXE 启动的一些注意事项