在上篇博客中我们了解了WDS的初始配置过程。但是完成此过程之后的WDS还是不能正常引导客户端从网络进入预安装环境。我们还需要为WDS加入一个启动映像才可以完成这个功能。下面我将一步步地对这一配置过程进行讲解。
首先在Server Manager里面的WDS角色里面找到我们刚刚安装的服务器,然后点击并选择Boot Images。随后右击Boot Images后从快捷菜单中选择Add Boot Image选项。
接下来将启动WDS映像添加向导过程。
我们要在这里为WDS指定一个wim格式的WINPE2.0启动映像。这个映像我们到哪里去找呢?在后面的文章中我会相信讨论这个问题。不过现在我们可以简单的知道在Vista和Windows Server2008安装光盘的sources目录中的boot.wim是可以被WDS使用的。这里我使用了Windows Server2008安装光盘中的boot.wim。点击下一步继续。
随后将要求我们输入启动映像名称和注释信息。这里的默认值是向导从我们所提供的boot.wim文件中的Metadata提取出来的。如果WDS上存在多个启动映像,这些信息将会出现在PXE启动过程中,要求用户选择要使用的启动映像。输入信息后点击下一步继续。
随后将对映像信息进行最后的确认,这里显示了映像文件的位置以及名称等信息。点击下一步继续。
随后将出现一个进程条显示映像的导入进程。完成后点击finish按钮。即可在Boot Images中看到我们刚才导入的启动映像。双击它将可以对其信息进行修改。
我们还可以右击此映像,从快捷菜单中选择Disable来暂时禁用此映像。
对于其它的选项,我会在后面的文章中详细讨论。至此,我们的WDS服务器终于可以支持客户端的引导了。下面我们来看看如何完成这个过程。
首先在客户计算机上的BIOS设置中启用PXE支持,随后重启计算机。在启动时选择从网络启动。
随后计算机将从网卡启动,进入PXE引导过程。
这里之所以出现上面的信息,是由于我们在前面WDS的PXE设置中选择了对于未知的客户端计算机,需要管理员的批准之后才会进行应答。因此我们现在需要在WDS管理界面中批准此设备。
我们可以在WDS的Pending Devices节点中看到刚才进行引导的计算机。我们可以看到此计算机的MAC地址和GUID等信息。右击此计算机的请求,从快捷菜单中选择Name and Approve选项。在批准此计算机的同时,为它指定一个计算机名称。
输入计算机名称之后,点击确定按钮。
随后系统将提示此计算机已经被成功批准。
回到客户端计算机,会看到提示我们按下F12,进行PXE引导。
按下F12之后,计算机将会开始下载启动映像。
下载完成之后将开始启动PE2.0的安装界面。经过一段时间等待后,我发现出现了如下的错误信息。
可以看到,这是由于PE2.0没有找到网卡驱动而导致的错误。在通常情况下,我们不会遇到这个问题,因为PE2.0中已经集成了大多数常见网卡的驱动。而之所以我会遇到这个问题是由于我是在VMware中运行测试环境的缘故。对于这个问题,我们有两种解决方案:一种比较简单,就是修改VMware配置文件,将ethernet0.virtualDev = "vlance"改为ethernet0.virtualDev = "e1000",使虚拟网“装扮”成IntelE1000的网卡。这时选择BIOS启动设备时将会看到这一改变。
而另一种方法则比较“正统”,我们为PE专门添加VMware的驱动程序。对此我将在后面的文章中对此进行讨论。回到我们的2008DC上,可以看到我们对计算机进行批准之后。在AD计算机管理工具中可以发现我们刚刚指定的计算机,而它的名称就是我们刚刚在批准时输入的。
而双击此计算机对象,打开属性页面后再选择Remote Install选项卡,我们会看到此计算机的GUID。在此我们还可以指定此计算机的远程安装服务器。
修改VMware配置文件之后,再次从网络启动客户端计算机。我们将会看到前面的错误信息将不再出现。直接进入正常的安装界面。
这个界面我想对于安装过Vista的用户,都是很熟悉的。而此时我们仅仅完成了PXE启动映像的配置,还没有添加安装映像。所以还不能继续进行安装过程。我将在后面的文章中讨论如何为启动映像添加驱动以及安装映像的导入。
我想有些读者看到此时会有一个疑问——WDS如何对已经批准的客户端进行管理呢?其实我们可以使用WDS的命令行管理工具完成这个任务。我也将在后面的文章中相信讨论这个问题。而这里我给出这个工具的一些帮助信息供大家参考:
Windows Deployment Services Management Utility [Version 6.0.6001.17051]
Copyright (C) Microsoft Corporation. All rights reserved.
/Get-AllDevices Displays information on all pre-staged devices.
/Get-AllImageGroups Displays information on all image groups.
/Get-AllImages Displays information on all images.
/Get-AllMulticastTransmissions Displays attributes of all transmissions.
/Get-AllNamespaces Displays attributes of all namespaces.
/Get-AllServers Displays information on all WDS servers.
/New-CaptureImage Creates a WinPE image used for capturing
OS images.
/Disconnect-Client Disconnects a client from a multicast
transmission or namespace.
/New-DiscoverImage Creates a WinPE image used for WDS server
discovery.
/Add-Device Adds a pre-staged device.
/Get-Device Displays attributes of an existing device.
/Set-Device Changes attributes of an existing device.
/Add-Image Adds boot or install images.
/Copy-Image Copies an image within the image store.
/Export-Image Exports an image from the image store to a WIM
file.
/Get-Image Displays the attributes of an existing image.
/Remove-Image Removes a boot or install image.
/Replace-Image Replaces a boot or install image with a new
version.
/Set-Image Changes the attributes of an existing image.
/Get-ImageFile Displays information on images in a WIM file.
/Add-ImageGroup Adds an image group.
/Get-ImageGroup Displays information on an image group.
/Remove-ImageGroup Removes an image group.
/Set-ImageGroup Changes the attributes of an existing image
group.
/Get-MulticastTransmission Displays attributes of a a transmission.
/New-MulticastTransmission Creates a new multicast transmission for WDS
/Remove-MulticastTransmission Removes a multicast transmission for WDS Image.
/Start-MulticastTransmission Starts a specified transmission.
/Get-Namespace Displays attributes of a namespace.
/New-Namespace Creates a new namespace.
/Remove-Namespace Removes a namespace.
/Start-Namespace Starts a specified namespace.
/Approve-AutoAddDevices Approves pending auto-add devices of server.
/Reject-AutoAddDevices Rejects pending auto-add devices of server.
/Get-AutoAddDevices Displays auto-add devices on server.
/Delete-AutoAddDevices Deletes devices in the auto-add device
database.
/Convert-RiPrepImage Converts an existing RIS RIPrep image to a WIM
file.
/Disable-Server Disables all WDS services on a server.
/Enable-Server Enables all WDS services on a server.
/Get-Server Displays information on a WDS Server.
/Initialize-Server Configures a WDS server for initial use.
/Set-Server Configures settings of a WDS server.
/Start-Server Starts all WDS services on a server.
/Stop-Server Stops all WDS services on a server.
/Uninitialize-Server Reverts changes made during server
initialization.
/Update-ServerFiles Updates server files on the REMINST share.
Image.
/Disable-TransportServer Disables all WDS services on a Transport server.
/Enable-TransportServer Enables all WDS services on a Transport server.
/Get-TransportServer Displays information on a Transport Server.
Image.
/Set-TransportServer Configures settings of a Transport server.
/Start-TransportServer Starts all WDS services on a Transport server.
/Stop-TransportServer Stops all WDS services on a Transport server.
To get help for specific command use:
WdsUtil command /?