Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Module 6: Windows Deployment Services (http://quantrinet.com/forum/forumdisplay.php?f=251)
-   -   Windows deployment services (wds) (http://quantrinet.com/forum/showthread.php?t=3173)

hoctinhoc 06-08-2009 10:56 PM

Windows deployment services (wds)
 
WINDOWS DEPLOYMENT SERVICES (WDS)



http://msopenlab.com/uploads/thumb_C...u%20bgUqy-.gif

I. Mục đích

Cấu hình Windows Deployment Services để triển khai cài đặt Windows qua mạng

Bài lab bao gồm các bước:


1. Cài đặt và cấu hình DHCP Server


2. Cài đặt Windows Deployment Services


3. Cấu hình Windows Deployment Server


4. Cấu hình Boot Image và Install Image


5. Cấu hình Unattend file


6. Cấu hình máy client và kiểm tra kết quả


II. Chuẩn bị


- Máy DC: Windows Server 2008 đã nâng cấp Domain Controller


- Máy Client: chưa cài hệ điều hành (hoặc có cài hệ điều hành bất kỳ)


III. Thực hiện


1. Cài đặt và cấu hình DHCP Server


- Tại máy Domain Controller, log on Domain Administrator/P@ssw0rd


- Mở Server Manager từ Administrative Tools, right click Roles chọn Add Roles





http://msopenlab.com/LAB/wds/image001.jpg





- Trong cửa sổ Before You Begin, chọn Next





http://msopenlab.com/LAB/wds/image002.jpg





- Trong cửa sổ Select Server Roles, đánh dấu chọn vào ô DHCP Server, chọn Next



http://msopenlab.com/LAB/wds/image003.jpg





- Trong cửa sổ DHCP Server, chọn Next



http://msopenlab.com/LAB/wds/image004.jpg





- Trong cửa sổ Select Network Connection Bindings, kiểm tra có đánh dấu chọn vào địa chỉ IP hiện thời của máy DC, chọn Next



http://msopenlab.com/LAB/wds/image005.jpg





- Trong cửa sổ Specify IPv4 DNS Server Settings, để nguyên cấu hình mặc định, chọn Next



http://msopenlab.com/LAB/wds/image006.jpg





- Trong cửa sổ Specify IPv4 WINS Server Settings, chọn WINS is not required for applications on this network, chọn Next



http://msopenlab.com/LAB/wds/image007.jpg





- Trong cửa sổ Add or Edit DHCP Scopes, chọn Add



http://msopenlab.com/LAB/wds/image008.jpg





- Trong cửa sổ Add Scope, cấu hình thông số TCP/IP như trong hình, chọn OK





http://msopenlab.com/LAB/wds/image009.jpg





- Trong cửa sổ Add or Edit DHCP Scopes, chọn Next





http://msopenlab.com/LAB/wds/image010.jpg





- Trong cửa sổ Configure DHCPv6 Stateless Mode, chọn Disable DHCP stateless mode for this server, chọn Next





http://msopenlab.com/LAB/wds/image011.jpg





- Trong cửa sổ Authorize DHC Server, giữ mặc định, chọn Next



http://msopenlab.com/LAB/wds/image012.jpg





- Trong cửa sổ Confirm Installation Selections, chọn Install



http://msopenlab.com/LAB/wds/image013.jpg





- Trong cửa sổ Installation Results, chọn Close



http://msopenlab.com/LAB/wds/image014.jpg





- Mở DHCP từ Administrative Tools, kiểm tra đã cài đặt và cấu hình thành công DHCP Server





http://msopenlab.com/LAB/wds/image015.jpg





2. Cài đặt Windows Deployment Services


- Mở Server Manager từ Administrative Tools, right click Roles chọn Add Roles





http://msopenlab.com/LAB/wds/image016.jpg





- Trong cửa sổ Before You Begin, chọn Next



http://msopenlab.com/LAB/wds/image017.jpg





- Trong cửa sổ Select Server Roles, đánh dấu chọn Windows Deployment Services, chọn Next



http://msopenlab.com/LAB/wds/image018.jpg





- Trong cửa sổ Overview of Windows Deployment Services, chọn Next



http://msopenlab.com/LAB/wds/image019.jpg





- Trong cửa sổ Seclect Roles Services, đánh dấu chọn vào cả 2 ô Deployment ServerTransport Server, chọn Next



http://msopenlab.com/LAB/wds/image020.jpg





- Trong cửa sổ Confirm Installation Selections, chọn Install





http://msopenlab.com/LAB/wds/image021.jpg





- Trong cửa sổ Installation Results, chọn Close


- Kiểm tra đã cài đặt thành công Windows Deployment Services




http://msopenlab.com/LAB/wds/image022.jpg





3. Cấu hình Windows Deployment Server


- Mở Windows Deployment Services từ Administrative Tools. Bung Server, right click WDS server (PCx.msopenlab.com) chọn Configure Server



http://msopenlab.com/LAB/wds/image023.jpg





- Trong cửa sổ Welcome Page, chọn Next



http://msopenlab.com/LAB/wds/image024.jpg





- Trong cửa sổ Remote Installation Folder Location, giữ nguyên cấu hình mặc định, chọn Next



http://msopenlab.com/LAB/wds/image025.jpg





- Trong hộp thoại System Volume Warning, chọn Yes





http://msopenlab.com/LAB/wds/image026.jpg





- Trong cửa sổ DHCP Option 60, giữ nguyên cấu hình mặc định, chọn Next





http://msopenlab.com/LAB/wds/image027.jpg





- Trong cửa sổ PXE Server Initial Settings, chọn Do not respond to any client computer, chọn Finish



http://msopenlab.com/LAB/wds/image028.jpg





- Sau khi tiến trình cấu hình hoàn tất. Trong cửa sổ Configuration Complete, bỏ trắng ô chọn Add images to the Windows Deployment Server now, chọn Finish





http://msopenlab.com/LAB/wds/image029.jpg





- Kiểm tra cấu hình thành công Windows Deployments Server





http://msopenlab.com/LAB/wds/image030.jpg





4. Cấu hình Boot Image và Install Image


- Mở Windows Deployment Services từ Administrative Tools, bung Server, bung WDS server (PCx.msopenlab.com), right click Boot Image, chọn Add Boot Image



http://msopenlab.com/LAB/wds/image031.jpg





- Trong cửa sổ Image File, chọn Browse, trõ đường dẫn đến C:\Vista\SOURCE\BOOT.WIM chọn Next


Lưu ý: C:\Vista là source cài đặt Windows Vista được chép sẵn trên máy. Bạn có thể sử dụng source từ DVD cài đặt Windows Vista





http://msopenlab.com/LAB/wds/image032.jpg





- Trong cửa sổ Image Metadata, giữ nguyên cấu hình mặc định, chọn Next



http://msopenlab.com/LAB/wds/image033.jpg





- Trong cửa sổ Summary, chọn Next



http://msopenlab.com/LAB/wds/image034.jpg





- Sau khi tiến trình add boot image hoàn tất, trong cửa sổ Task Progress chọn Finish





http://msopenlab.com/LAB/wds/image035.jpg





- Kiểm tra đã add thành công Boot Image





http://msopenlab.com/LAB/wds/image036.jpg





- Trong cửa sổ Windows Deployment Services, right click Install Image, chọn Add Install Image



http://msopenlab.com/LAB/wds/image037.jpg





- Trong cửa sổ Image Group, giữ nguyên cấu hình mặc định, chọn Next





http://msopenlab.com/LAB/wds/image038.jpg





- Trong cửa sổ Image File, chọn Browse, trõ đường dẫn đến C:\Vista\SOURCE\INSTALL.WIM, chọn Next


Lưu ý: C:\Vista là source cài đặt Windows Vista được chép sẵn trên máy. Bạn có thể sử dụng source từ DVD cài đặt Windows Vista





http://msopenlab.com/LAB/wds/image039.jpg





- Trong cửa sổ Lists of Available Images, đánh dấu chọn vào ô Windows Vista UTIMATE


Lưu ý: Bạn cần cài đặt phiên bản Windows Vista nào thì chọn phiên bản đó.



http://msopenlab.com/LAB/wds/image040.jpg





- Trong cửa sổ Summary chọn Next





http://msopenlab.com/LAB/wds/image041.jpg





- Sau khi tiến trình add image hoàn tất, trong cửa sổ Task Progress, chọn Finish



http://msopenlab.com/LAB/wds/image042.jpg





- Kiểm tra đã add thành công Install Image





5. Cấu hình Unattend file


- Mở Windows Explorer, vào đuờng dẫn C:\RemoteInstall\WdsClientUnattend tạo file unattend.xml có nội dung như sau:


Lưu ý: Sửa các thông tin được in đậm theo mô hình hiện thời









<?xml version="1.0" ?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35"

language="neutral" versionScope="nonSxS" processorArchitecture="x86">

<WindowsDeploymentServices>

<Login>

<WillShowUI>OnError</WillShowUI>

<Credentials>

<Username>Administrator</Username>

<Domain>msopenlab.com</Domain>

<Password>P@ssw0rd</Password>

</Credentials>

</Login>

<ImageSelection>

<WillShowUI>OnError</WillShowUI>

<InstallImage>

<ImageName>Windows Vista UTIMATE</ImageName>

<ImageGroup>ImageGroup1</ImageGroup>

<Filename>Install.wim</Filename>

</InstallImage>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

</ImageSelection>

</WindowsDeploymentServices>

<DiskConfiguration>

<WillShowUI>OnError</WillShowUI>

<Disk>

<DiskID>0</DiskID>

<WillWipeDisk>True</WillWipeDisk>

<CreatePartitions>
<CreatePartition>
<Order>1</Order>
<Size>10000</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>

<ModifyPartition>

<Order>1</Order>

<PartitionID>1</PartitionID>

<Letter>C</Letter>

<Label>TestOS</Label>

<Format>NTFS</Format>

<Active>true</Active>

<Extend>false</Extend>

</ModifyPartition>

</ModifyPartitions>

</Disk>

</DiskConfiguration>

</component>

<component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35"

language="neutral" versionScope="nonSxS" processorArchitecture="x86">

<SetupUILanguage>

<WillShowUI>OnError</WillShowUI>

<UILanguage>en-US</UILanguage>

</SetupUILanguage>

<UILanguage>en-US</UILanguage>

</component>

</settings>

</unattend>






http://msopenlab.com/LAB/wds/image043.jpg





- Mở Windows Deployment Services từ Administrative Tools, bung Server, right click WDS server (PCx.msopenlab.com), chọn Properties





http://msopenlab.com/LAB/wds/image044.jpg





- Trong cửa sổ PCx Properties, qua tab Client, trong ô x86 Architecture, chọn Browse, trõ đến đường dẫn C:\RemoteInstall\WdsClientUnattend\unattend.xml, chọn Apply, chọn OK





http://msopenlab.com/LAB/wds/image045.jpg








- Trong cửa sổ Windows Deployment Services, bung Install Image, bung ImageGroup1, right click Windows Vista UTIMATE chọn Properties





http://msopenlab.com/LAB/wds/image046.jpg





- Cửa sổ Image Properties, tại tab General, đánh dấu chọn vào ô Allow image to install in unattended mode, chọn Select File…





http://msopenlab.com/LAB/wds/image047.jpg





- Trong cửa sổ Select Unattend File chọn Browse, trõ đến đường dẫn C:\RemoteInstall\WdsClientUnattend\unattend.xml, chọn OK





http://msopenlab.com/LAB/wds/image048.jpg





- Cửa sổ Image Properties, chọn Apply, chọn OK





http://msopenlab.com/LAB/wds/image049.jpg





6. Cấu hình Client và kiểm tra kết quả


- Khởi động máy Client, chỉnh BIOS chuyển qua chế độ boot từ card mạng



http://msopenlab.com/LAB/wds/image050.jpg





- Khi nhận được yêu cầu “Press F12 for network service boot”, nhấn phím F12





http://msopenlab.com/LAB/wds/image051.jpg





- Máy client kết nối tới WDS server và bắt đầu quá trình cài đặt Windows





http://msopenlab.com/LAB/wds/image052.jpg





- Sau 20 phút, kiểm tra máy client hoàn tất quá trình cài đặt.





Theo: By Trần Thủy Hoàng (Msopenlab)

:battay:


Bây giờ là 06:31 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.