diff --git a/windows/deploy/windows-10-poc.md b/windows/deploy/windows-10-poc.md index 7e1f1f21f9..ed1efaa54d 100644 --- a/windows/deploy/windows-10-poc.md +++ b/windows/deploy/windows-10-poc.md @@ -14,15 +14,21 @@ author: greg-lindsay - Windows 10 -
This guide provides step-by-step instructions for IT administrators to set up a proof of concept (PoC) environment for testing the tools and procedures necessary to deploy Windows 10. The guide requires about 3 hours to complete. +
The following guides provide step-by-step instructions for IT administrators to test Windows 10 deployment procedures in a proof of concept (PoC) environment:
-To complete this guide, you will need a Hyper-V capable computer running Windows 8.1 or later with 16GB of RAM. Detailed [requirements](#hardware-and-software-requirements) are provided below. You will also need to have a [Microsoft account](https://www.microsoft.com/account) to use for downloading evaluation software.
+- Step by step guide: Deploy Windows 10 in a test lab (this guide): Configure the PoC environment.
+- [Deploy Windows 10 in a test lab using MDT](windows-10-poc-mdt.md): Use the Microsoft Deployment Toolkit (MDT) to deploy Windows 10 in the PoC environment.
+- [Deploy Windows 10 in a test lab using System Center Configuration Manager](windows-10-poc-sc-config-mgr.md): Use System Center Configuration Manager to deploy Windows 10 in the PoC environment.
-The PoC enviroment is configured by using Hyper-V and requires a minimum amount of resources. Windows PowerShell commands are provided to set up the test lab quickly. Instructions to "type" Windows PowerShell commands provided in this guide can be typed, but in most cases the preferred method is to copy and paste these commands. If you are not familiar with Hyper-V, review the [terminology](#appendix-d-terminology-in-this-guide) used in this guide before starting.
+This guide requires about 3 hours to complete. You will need a Hyper-V capable computer running Windows 8.1 or later with at least 16GB of RAM. Detailed [requirements](#hardware-and-software-requirements) are provided below. You will also need to have a [Microsoft account](https://www.microsoft.com/account) to use for downloading evaluation software.
+
+The PoC enviroment is configured by using Hyper-V and requires a minimum amount of resources. Windows PowerShell commands are provided to set up the test lab quickly. You do not need to be an expert in Windows PowerShell to complete the steps in the guide, however you are required to customize some commands to your environment.
+
+Instructions to "type" Windows PowerShell commands provided in this guide can be typed, but in most cases the preferred method is to copy and paste these commands. If you are not familiar with Hyper-V, review the [terminology](#appendix-c-terminology-in-this-guide) used in this guide before starting.
## In this guide
-This guide contains detailed instructions for three general procedures:
+This guide contains instructions for three general procedures:
Topic | Description | Time - |
[Hardware and software requirements](#hardware-and-software-requirements) | Prerequisites to complete this guide. | - |
[Lab setup](#lab-setup) | A description and diagram of the PoC environment. | - |
[Configure the PoC environment](#configure-the-poc-environment) | Parent topic for procedures. | + |
[Hardware and software requirements](#hardware-and-software-requirements) | Prerequisites to complete this guide. | Informational + |
[Lab setup](#lab-setup) | A description and diagram of the PoC environment. | Informational + |
[Configure the PoC environment](#configure-the-poc-environment) | Parent topic for procedures. | Informational |
[Verify support and install Hyper-V](#verify-support-and-install-hyper-v) | Verify that installation of Hyper-V is supported, and install the Hyper-V server role. | 10 minutes |
[Download VHD and ISO files](#download-vhd-and-iso-files) | Download evaluation versions of Windows Server 2012 R2 and Windows 10 and prepare these files to be used on the Hyper-V host. | 30 minutes |
[Convert PC to VM](#convert-pc-to-vm) | Convert a physical computer on your network to a VM hosted in Hyper-V. | 30 minutes @@ -55,9 +55,8 @@ Topics and procedures in this guide are summarized in the following table. An es |
[Configure Hyper-V](#configure-hyper-v) | Create virtual switches, determine available RAM for virtual machines, and add virtual machines. | 15 minutes |
[Configure VHDs](#configure-vhds) | Start virtual machines and configure all services and settings. | 60 minutes |
[Appendix A: Verify the configuration](#appendix-a-verify-the-configuration) | Verify and troubleshoot network connectivity and services in the PoC environment. | 30 minutes - |
[Appendix B: Configuring Hyper-V on Windows Server 2008 R2](#appendix-b-configuring-hyper-v-on-windows-server-2008-r2) | Information about using this guide with a Hyper-V host running Windows Server 2008 R2. | - |
[Appendix C: Disk2VHD](#appendix-c-disk2vhd) | Information about the Disk2VHD application. | - |
[Appendix D: Terminology in this guide](#appendix-d-terminology-in-this-guide) | Terms used in this guide. | + |
[Appendix B: Create generation 1 VM from GPT disk](#appendix-b-create-generation-1-vm-from-gpt-disk) | Solution to boot a GPT formatted disk as a generation 1 VM. | Optional + |
[Appendix C: Terminology in this guide](#appendix-d-terminology-in-this-guide) | Terms used in this guide. | Informational |
The Hyper-V role cannot be installed on Windows 7 or earlier versions of Windows.
C:\>systeminfo @@ -201,9 +197,7 @@ The lab architecture is summarized in the following diagram: Note: A 64-bit operating system is required to run Hyper-V. -2. Enable Hyper-V. - - The Hyper-V feature is not installed by default. To install it, open an elevated Windows PowerShell window and type the following command: +2. The Hyper-V feature is not installed by default. To install it, open an elevated Windows PowerShell window and type the following command:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All @@ -234,14 +228,14 @@ When you have completed installation of Hyper-V on the host computer, begin conf After completing registration you will be able to download the 7.47 GB Windows Server 2012 R2 evaluation VHD. An example of the download offering is shown below.
 + |
 |
C:\>mkdir VHD C:\>cd VHD @@ -263,14 +256,24 @@ C:\VHD>dir /B w10-enterprise.iso- ### Convert PC to VM -If you do not have a PC available to convert to VM, see [Appendix E: Create PC1 VM](#appendix-e-create-pc1-vm). +If you do not have a PC available to convert to VM, you can download a VM using the following steps. Skip these steps if you have a PC to convert. + +
PS C:\> Get-WmiObject -Class Win32_DiskPartition | Select-Object -Property SystemName,Caption,Type @@ -921,143 +924,13 @@ Use the following procedures to verify that the PoC environment is configured pr **ping** displays if the source can resolve the target name, and whether or not the target responds to ICMP. If it cannot be resolved, "..could not find host" will be diplayed and if the target is found and also responds to ICMP, you will see "Reply from" and the IP address of the target.
**tracert** displays the path to reach the destination, for example srv1.contoso.com [192.168.0.2] followed by a list of hosts and IP addresses corresponding to subsequent routing nodes between the source and the destination. -## Appendix B: Configuring Hyper-V on Windows Server 2008 R2 - -Full documentation of procedures to configure the PoC in Hyper-V on Windows Server 2008 R2 is currently out of scope for this guide, due to significant differences in the Hyper-V role in Windows Server 2008 R2. For more information about the Hyper-V Manager interface in Windows Server 2008 R2, see [Hyper-V](https://technet.microsoft.com/library/cc730764.aspx) in the Windows Server TechNet Library. A limited number of procedures are provided in this section. - -To install Hyper-V on Windows Server 2008 R2, you can use the Add-WindowsFeature cmdlet: - --Add-WindowsFeature -Name Hyper-V -- -An example that uses Hyper-V WMI to create a virtual switch on Windows Server 2008 R2 is provided below. - --$SwitchFriendlyName = "poc-internal" -$InternalEthernetPortFriendlyName = $SwitchFriendlyName -$InternalSwitchPortFriendlyName = "poc" -$SwitchName = [guid]::NewGuid().ToString() -$InternalSwitchPortName = [guid]::NewGuid().ToString() -$InternalEthernetPortName = [guid]::NewGuid().ToString() -$NumLearnableAddresses = 1024 -$ScopeOfResidence = "" -$VirtualSwitchManagementService = gwmi Msvm_VirtualSwitchManagementService -namespace "root\virtualization" -$Result = $VirtualSwitchManagementService.CreateSwitch($SwitchName, $SwitchFriendlyName, $NumLearnableAddresses, $ScopeOfResidence) -$Switch = [WMI]$Result.CreatedVirtualSwitch -$Result = $VirtualSwitchManagementService.CreateSwitchPort($Switch, $InternalSwitchPortName, $InternalSwitchPortFriendlyName, $ScopeOfResidence) -$InternalSwitchPort = [WMI]$Result.CreatedSwitchPort -$Result = $VirtualSwitchManagementService.CreateInternalEthernetPortDynamicMac($InternalEthernetPortName, $InternalEthernetPortFriendlyName) -$InternalEthernetPort = [WMI]$Result.CreatedInternalEthernetPort -$query = "Associators of {$InternalEthernetPort} Where ResultClass=CIM_LanEndpoint" -$InternalLanEndPoint = gwmi -namespace root\virtualization -query $query -$Result = $VirtualSwitchManagementService.ConnectSwitchPort($InternalSwitchPort, $InternalLanEndPoint) -$filter = "SettingID='" + $InternalEthernetPort.DeviceID +"'" -$NetworkAdapterConfiguration = gwmi Win32_NetworkAdapterConfiguration -filter $filter -- -## Appendix C: Convert GPT to MBR - -This appendix provides a procedure to convert physical disk that is using the GPT partition style to a VHD that can be used to create a generation 1 VM in Hyper-V. Because generation 1 VMs require an MBR partition style, the physical disk is saved and then converted. - ->Conversion of a disk directly from GPT to MBR without data loss is not possible without the use of external, specialized applications and tools. However, it is possible to create an image of the GPT disk and then restore this image to an MBR disk using standard tools. At a high level, this can be done by obtaining an image of the source drive, creating a blank MBR-formatted disk, applying the source drive image to the MBR disk, and then configuring the MBR disk to boot the applied image. This procedure is described below: - -1. Download the [Disk2vhd utility](https://technet.microsoft.com/en-us/library/ee656415.aspx), extract the .zip file and copy **disk2vhd.exe** to a flash drive or other location that is accessible from the computer you wish to convert. - - >You might experience timeouts if you attempt to run Disk2vhd from a network share, or specify a network share for the destination. To avoid timeouts, use local, portable media such as a USB drive. - -2. On the computer you wish to convert, double-click the disk2vhd utility to start the graphical user interface. -3. Select the checkbox next to the **C:\** volume. On a computer using the GPT partition style, the system volume will not be displayed in the Disk2VHD tool. -4. Specify a location to save the resulting VHDX file (F:\VHD\w7-convert.vhdx in the following example) and click **Create**. See the following example: - -  - -5. Click **Create** to start creating a VHDX file. - - >Disk2vhd can save VHDs to local hard drives, even if they are the same as the volumes being converted. Performance is better however when the VHD is saved on a disk different than those being converted, such as a flash drive. - - ---here is where I need to insert the procedure to convert this to a bootable disk, given a vhdx file. - -How shall I do this? - - - -6. When the Disk2vhd utility has completed converting the source computer to a VHD, copy the VHDX file (w7.vhdx) to your Hyper-V host in the C:\VHD directory. There should now be four files in this directory: - -- C:\vhd>dir /B - 2012R2-poc-1.vhd - 2012R2-poc-2.vhd - w10-enterprise.iso - w7.VHDX -- - -First I capture a VSS image of the GPT disk using disk2vhd - -Then I create a new VHD using the command below, attach both, robocopy from one to the other, detach the original and load the second. +## Appendix B: Create generation 1 VM from GPT disk -1. Create VHD (function thanks to Senthil Rajaram). - --function CreateVHD ($VHDPath, $Size) -{ - $drive = (New-VHD -path $vhdpath -SizeBytes $size -Dynamic | - Mount-VHD -Passthru | - get-disk -number {$_.DiskNumber} | - Initialize-Disk -PartitionStyle MBR -PassThru | - New-Partition -Size 100MB -AssignDriveLetter:$False -MbrType FAT32 -IsActive | - Format-Volume -Confirm:$false -FileSystem FAT32 -force | - get-partition | - New-Partition -UseMaximumSize -AssignDriveLetter:$False -MbrType IFS | - Format-Volume -Confirm:$false -FileSystem NTFS -force | - get-partition | - Add-PartitionAccessPath -AssignDriveLetter -PassThru | - get-volume).DriveLetter - Dismount-VHD $VHDPath -} -- -Be sure to use a size sufficient for the backup (i.e. 100GB) and specify a path to a USB drive. For Windows 7 to mount the drive it must be .vhd not .vhdx. - --CreateVHD F:\pc1.vhd 100GB -- - -2. Insert USB into client and mount using disk management. It is possible also using diskpart but easier with disk manager. Note the drive letter of the mount. Assuming G: - -wbadmin start backup -backupTarget:g: -include:c: -quiet - -- this takes a few minutes then you see: - -Creating a backup of volume C(C:), copied (98%). -Creating a backup of volume C(C:), copied (98%). -Creating a backup of volume C(C:), copied (99%). -Creating a backup of volume C(C:), copied (99%). -Creating a backup of volume C(C:), copied (100%). -The backup operation successfully completed. -Summary of the backup operation: ------------------- - -The backup of volume C(C:) successfully completed. - -C:\> - -Note: Alternatively you can back up the client to a network share, then access the network share from system restore. - -3. Detatch the VHD, remove the USB, insert USB in Hyper-V host. - -4. Create new VM with blank VHD, add the usb vhd as secondary. remove it later...no need to keep the image on the same disk. - - - -### Appendix D: Terminology used in this guide +### Appendix C: Terminology used in this guide See the following table for a list of terms used in this guide. @@ -1079,10 +952,6 @@ See the following table for a list of terms used in this guide. -### Appendix E: Create PC1 VM - -Here is where I provide a procedure to create a blank client VM. - ## Related Topics