Lab Manual: Windows Server 2016 Hyper-V
Lab Manual: Windows Server 2016 Hyper-V
Lab Manual
Participant guide
This training package content is proprietary and confidential, and is intended only for users described in the training materials. Some elements of this document
are subject to change. This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.
This content and information is provided to you under a Non-Disclosure Agreement and cannot be distributed. Copying or disclosing all or any portion of the
content and/or information included in this package is strictly prohibited. Complying with all applicable copyright laws is the responsibility of the user. Without
limiting the rights under copyright, no part of this document may be reproduced, stored in, or introduced into a retrieval system, or transmitted in any form or by
any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as
expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks,
copyrights, or other intellectual property.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association
with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred.
The names of actual companies and products mentioned herein may be the trademarks of their respective owners.
Microsoft and the Microsoft products and services listed are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
Table of Contents
Module 2, Lab1: Hyper-V Introduction................................................................................................................... 6
Exercise 1. : Configure Enhanced Session mode on Management VM..........................................7
Task 1: Open Hyper-V Manager and check VM states.........................................................................7
Task 2: Start HVWS-Management................................................................................................................ 8
Task 3: Connect to HVWS-Management................................................................................................... 8
Task 4: Enable Enhanced Session mode........................................................................................................ 8
Task 5 Log on to HVWS-Management.......................................................................................................... 9
Exercise 2. : Explore Lab Configuration.................................................................................................... 11
Task 1: Start Windows Server 2012 R2 Core and experience first boot.......................................11
Task 2: Experience Windows Server 2016 Core and Windows Server Nano startup..............13
Task 3: Start other “CL” VMs with PowerShell....................................................................................... 14
Task 4: Explore HVWS-Cl1Node1 configuration................................................................................... 17
Task 5: Inspect HVWS-Cl1Node1 settings in Hyper-V console......................................................30
Task 6: Is your lab broken? Rebuild If needed...................................................................................... 32
Task 7: Enable performance monitoring for Module 7......................................................................33
Exercise 3. : Management best practices................................................................................................. 33
Task 1: Connect to Management VM....................................................................................................... 34
Task 2: Install Administration Tools........................................................................................................... 35
Exercise 4. : Server Management Basics................................................................................................... 38
Task 1: Add Managed Servers..................................................................................................................... 38
Task 2: Server Manager basics..................................................................................................................... 40
Module 3, Lab1: Create Failover Cluster using GUI tools.............................................................................. 42
Exercise 1. : Deploy required roles and features................................................................................... 43
Task 1: Install Required roles – Install Hyper-V..................................................................................... 43
Task 2: Install required features (Failover Clustering).........................................................................45
Task 3: Install roles on CL1W12Node2 with PowerShell....................................................................48
Task 4: Prepare the storage.......................................................................................................................... 50
Task 5: Create Failover Cluster..................................................................................................................... 55
Task 6: Explore the Cluster and configure Cluster Shared Volumes.............................................59
Task 7: Browse Cluster Shared volumes and rename CSV Mountpoints to match Volume
Name 62
Exercise 2. : Create Clustered VMs............................................................................................................. 64
Task 1: Create a VM using the GUI Wizard............................................................................................. 64
Task 2: Add Virtual Disk to the VM – Copy VHD.................................................................................. 69
Task 3: Add Virtual Disk to the VM – Configure VM to use VHD...................................................71
Task 4: Create VM using PowerShell......................................................................................................... 73
Module 3, Lab2: Upgrade Cluster1 to Windows Server 2016......................................................................75
Exercise 1. : Prepare new nodes to be ready to join a cluster.........................................................76
Task 1: Install required roles......................................................................................................................... 76
Task 2: Configure networking...................................................................................................................... 77
Exercise 2. : Roll the cluster upgrade........................................................................................................ 78
Task 1: Check Cluster version with PowerShell..................................................................................... 78
Task 2: Evict cluster node with Failover Cluster Manager and add the new one.....................79
Task 3: Check Cluster version with PowerShell..................................................................................... 87
Task 4: Evict old cluster node and add new one with PowerShell.................................................88
Task 5: Check cluster version and update............................................................................................... 89
Task 6: Check VM configuration version and update.........................................................................89
Task 7: Update VM version with PowerShell.......................................................................................... 94
Task 8: Configure VMs and shutdown old cluster nodes..................................................................94
Module 3, Lab3: Create Second Cluster with PowerShell.............................................................................. 96
Task 1: Deploy Cluster.................................................................................................................................... 97
Task 2: Explore your new 4 node cluster................................................................................................. 98
Module 3, Lab4: Mobility......................................................................................................................................... 100
Exercise 1. : Perform different migration types on Cluster1..........................................................101
Task 1: Perform live migration of MyVM1............................................................................................ 101
Task 2: Perform Storage live migration of MyVM1...........................................................................102
Task 3: Move machines there and back with PowerShell...............................................................105
Exercise 2. : Storage live migrate VMs to different cluster.............................................................106
Task 1: Configure Kerberos constrained delegation.........................................................................106
Task 2: Configure Kerberos authentication for live migration......................................................109
Task 3: Evacuate MyVM2 to another cluster....................................................................................... 113
Exercise 3. : Configure required settings and Live Migrate Storage using PowerShell.......120
Task 1: Configure Kerberos Constrained delegation........................................................................121
Task 2: Validate settings via the GUI...................................................................................................... 121
Task 3: Configure Live Migration Authentication..............................................................................122
Task 4: Validate settings with GUI........................................................................................................... 122
Task 5: Evacuate Cluster1 to Cluster2 with PowerShell...................................................................123
Task 6: Evacuate Cluster2 to Cluster1 with PowerShell...................................................................124
Module 4, Lab1: Networking.................................................................................................................................. 125
Exercise 1. : Configure Converged networking...................................................................................127
Task 1: Explore current configuration.................................................................................................... 127
Task 2: Create additional Virtual Network Adapters and configure them...............................130
Task 3: Explore networks in Failover Cluster Manager....................................................................133
Task 4: Configure Cluster Networks with PowerShell......................................................................136
Task 5: Connect all VMs to SETSwitch.................................................................................................... 137
Module 6, Lab1: Stretch Cluster and Storage Replica..................................................................................138
Exercise 1. : Install all prerequisites using PowerShell......................................................................140
Task 1: Install required roles, create virtual switch, Setup Cluster, configure witness.........140
Task 2: Configure Fault domains and format disks...........................................................................142
Task 3: Validate settings using Failover Cluster Manager..............................................................142
Task 4: Add cluster disk to Cluster Shared volumes and create VMs........................................144
Exercise 2. : Enable Synchronous Replication to second site........................................................147
Task 5: Enable replication of Cluster Shared Volume.......................................................................147
Task 6: Explore the replication feature................................................................................................... 151
Exercise 3. : Configure Replication Network........................................................................................ 155
Task 1: Inspect network current settings.............................................................................................. 155
Task 2: Rename Cluster Network for Replication............................................................................... 155
Task 3: Dedicate ReplicaNetwork to replication................................................................................. 156
Module 6, Lab2: Hyper-V Replica......................................................................................................................... 157
Exercise 1. : Configure HA roles for Hyper-V Replica.......................................................................158
Task 1: Configure Hyper-V Replica role on Stretch-Clus................................................................158
Task 2: Configure RB role on 2 other clusters with PowerShell....................................................160
Task 3: Enable Firewall rules for Hyper-V replica...............................................................................162
Task 4: Configure replica servers to use Kerberos for authentication and allow replication
from anywhere................................................................................................................................................... 162
Exercise 2. : Enable Hyper-V replica........................................................................................................ 163
Task 1: Enable Replication of MyReplicatedVM1............................................................................... 164
Task 2: Explore Replicated VM.................................................................................................................. 166
Task 3: Extend replication of MyReplicatedVM1................................................................................168
Module 7, Lab1: Performance logs...................................................................................................................... 170
Exercise 1. : Analyze performance logs.................................................................................................. 170
Task 1: Stop data collection....................................................................................................................... 170
Task 2: Open and analyze the blg file.................................................................................................... 170
Bonus, Lab1: Cluster Aware Updating (optional)............................................................................................ 171
Exercise 1. : Prestage AD Object for HA role....................................................................................... 173
Task 1: Create Computer object in AD and configure ACLs..........................................................173
Exercise 2. : Configure CAU role to enable self-updating...............................................................178
Task 1: Create HA CAU role........................................................................................................................ 178
Exercise 3. : Update Cluster1...................................................................................................................... 186
Task 1: Preview updates.............................................................................................................................. 186
Task 2: Apply updates.................................................................................................................................. 187
Bonus, Lab2: RDMA Networking (Optional)..................................................................................................... 189
Exercise 1. : Configure “iWARP” on Cluster2........................................................................................ 190
Task 1: Deploy networking with PowerShell........................................................................................ 190
Exercise 2. : Configure “RoCE” on Stretch-Clus................................................................................... 191
Task 1: Deploy networking with PowerShell........................................................................................ 191
Module 2, Lab1: Hyper-V
Introduction
Introduction
In this lab, you will explore what is in the lab and how we are simulating real hardware. You will
learn how to manage Windows Server effectively with remote tools.
Objectives
After completing this lab, you will be able to:
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
The plain infrastructure was just set up. You need to start the Virtual Machines, configure Hyper-
V for easier management and install management tools to manage the infrastructure from a
single machine.
Exercise 1. :Configure Enhanced Session
mode on Management VM
Objectives
In this exercise, you will configure Enhanced Session mode on the Hyper-V Host. You will also
learn how Enhanced Session mode works on Management machine.
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Username: LabAdmin
Password: LS1setup!
Step 6: After successful logon, logoff, and logon again. This step is necessary as we need
Enhanced Session mode to kick in.
Step 7: You should see following prompt
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
Management
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Step 11: Wait for machine to boot and notice that it restarted once and how long it took.
Expected result:
Task 3: Experience Windows Server 2016 Core and Windows
Server Nano startup
Step 1: Repeat the steps from Task1 for Nano Server HVWS-CL1Node1 and HVWS-
Cl2Node1
HVWS-CL2Node1
Task 4: Start other “CL” VMs with PowerShell
Step 1: On the Hyper-V host, open PowerShell from the start menu as Administrator
Step 12: Notice, that elevated PowerShell window contains Administrator: Windows
PowerShell
Step 1: Get-VM
Expected result:
Step 15: Run the following command to validate that both CL1W12 nodes are running
Step 5: get-vm *W12*
Expected result:
Step 16: Run the following command to start all other VMs, where name includes “CL”
Expected result:
Step 17: Run the following command to validate that all “CL” VMs are running
Expected result:
Step 14: To add hardware you can use commands in PowerShell starting Add-VM* (you
can list them with Get-command Add-VM*
Step 15:
Step 12: In Windows Server 2016 we allow adding additional Network Adapters, while
the Virtual Machine is running.
Step 21: In Settings navigate to Firmware and notice the boot order and bootmgfw.efi
details
Note:
Step 17: To display boot settings, you can use following command
Step 18: (Get-VMFirmware -VMName *CL1Node1).BootOrder
Step 19:
Step 20:
Step 21: Example to set network adapter with Name Management1 to be first boot
device
Step 22: In Settings, Navigate to Security and notice that TPM is not enabled and all
settings are greyed out.
Note:
PowerShell examples:
Note:
Virtual Machine has Network Virtualization Extensions exposed (Nested Virtualization is on),
therefore Dynamic Memory settings are not effective on VMs, where Hyper-V is enabled (Nano
Servers, later in the lab also Core Servers)
Step 29: PowerShell examples:
Step 33: To modify startup memory you can use following command
Step 34: Set-VMMemory -VMName *cl1Node1 -StartupBytes 2GB
Step 35:
Step 36: You can do this operation (also applies to other commands) against multiple
machines like on all machines with name containing “cl1”
Step 24: Navigate to Processor and review the settings
Note:
PowerShell:
Step 51: Notice that QoS settings are only available on traditional Hard Drive.
Step 53:
Step 54: Notice that There are 3 Shared Drives (1 for witness disk, 2 for Capacity devices
representing LUNs from “SAN”)
Step 55:
Step 41: PowerShell examples:
Step 26: Click on first Shared Drive and click on Inspect button
Step 27: Notice the new window with Additional drive information appeared
Step 28: The same way Inspect the first Hard Drive
Expected result:
Note:
The OS drive is a differencing virtual disk. It is very handy for labs. However, it is not
recommended for production workload (Except VDI)
Note:
Note:
Notice that you can enable VLAN settings. You can also Remove adapter if needed.
PowerShell Examples:
To display all Network settings you can use the following command
Get-VMNetworkAdapter -VMName *CL1Node1 | fl *
Step 32: Explore Hardware Acceleration settings and Advanced Features settings.
Note:
Notice that MAC spoofing and NIC teaming is enabled. Both are used, because later in LAB we
will configure SET Switch and these 2 settings are needed for SET Switch simulation to run
properly.
Step 33: Navigate to Integration Services and notice, that all services except Guest services
are enabled.
Step 34: Navigate to Checkpoints and notice, that Production checkpoints are available.
Step 35: Notice that Automatic Start Action is restart if previously running and Automataic
Stop Action is Save.
Step 36: Click on small green arrow and notice, that you can switch this way to different
node.
Step 37: Click on the grey arrow to expand the list of virtual machines you can switch to.
Step 40: Click on the Memory tab and notice that Dynamic Memory is Enabled, Assigned
memory is 512MB and memory demand is 409 MB (the exact numbers can vary)
Step 41: Click on Networking tab and notice that Trunk mode is enabled, and IP
addresses are assigned in the VM.
Note:
The Hydration script configured native VLAN 0 and available VLANs 1-10, so later in the lab
we will be able to simulate Virtual NICs with VLANs assigned. DHCP is enabled on DC,
therefore all VMs received an IP address. Also 2 NICs are present, to simulate multi-NIC
environments (in real world scenario you will have 2 NICs or 1NIC with 2 ports for redundancy.
Task 1: PowerShell commands:
Step 1: Navigate to the lab folder (you can find it if you run Get-VMHardDiskDrive like on the
example below, in this case E:\ws2016lab\)
Step 42: Right-Click Cleanup.ps1 and select Run with PowerShell. Allow command to
elevate.
Step 43: After script finishes, right-click Deploy.ps1 and select Run with PowerShell. Allow
command to elevate and wait until it finishes (approx 10 minutes).
Step 44: Start all VMs except VMs containing *Site* in its name.
Task 8: Enable performance monitoring for Module 7
This task will create a perfmon collection on the physical Hyper-V host (or remote lab).
Step 1: On the Hyper-V host machine start an elevated command prompt and type the
following commands:
Step 57: path to XML might be different – depending on where is your lab located.
Command:
logman import -xml "E:\Hyper-V_Workshop\Tools\ws_perf.xml" -name "Hyper-V Workshop"
logman start "Hyper-V Workshop"
Step 45: In the same command prompt, type perfmon, press enter and make sure the
data collector is imported and running:
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Step 48: Login with following credentials (the same as in Exercise 1):
Username: LabAdmin
Password: LS1setup!
Task 9: Install Administration Tools
Step 1: On the Management machine, notice that Server Manager automatically started.
Step 49: Click on Tools in top right corner and review available Tools
Step 50: As we need to manage Active Directory, DNS, Hyper-V, we need to have the
tools installed. Click on Manage and select Add Roles and Features. The wizard will start
Step 51: On Before you begin page click Next.
Step 52: On Installation type page click Next.
Step 53: On Server Selection click Next.
Step 54: On Server Roles page click Next.
Step 55: On Features page scroll down to Remote Server Administration Tools and notice,
that all tools are unchecked.
Step 56: Check checkbox next to Remote Server Administration Tools as we want to
install all. Notice WebServer management feature install prompt will pop up. Confirm it by
clicking “Add Features”.
Step 57: Expand Role Administration Tools and notice, that not all tools were selected.
Step 58: Either click on every setting and finish install, or close wizard and use following
PowerShell command in elevated PowerShell inside Management machine to install all RSAT
tools.
Step 58: Install-WindowsFeature -Name RSAT -IncludeAllSubFeature
Step 59:
Expected result:
Step 62: In the Add servers menu click on Find Now to discover all machines in domain
corp.contoso.com
Step 63: Click on Operation System tab to sort the names. This will quickly identify
machines that are running and its Operating System.
Step 64: Select all nodes except the ones with *Site* in its name and click on small arrow
in the middle of window to add it to the list of selected servers.
Result:
Step 65: Click on OK to confirm the selection
Step 66: Notice that you can see now that Hyper-V is installed on some servers, as it was
added to the list (Hyper-V is installed on Nano servers as Hyper-V package was injected
during the build process)
Step 68: Notice that all servers have 2 IP addresses as they have 2 network cards as we
confirmed in previous exercises.
Step 69: In the Server Manager Right-Click on any tab and select Operating System
Version
Step 70: You should see OS version in the table
Step 73: Click into Filter window and type CL1 to filter to “Cluster1” machines
Step 74: Notice that list was filtered and you can see only CL1 Machines.
Module 3, Lab1: Create Failover
Cluster using GUI tools
Introduction
In this lab, you will learn how to deploy simple Failover Cluster with both Server Manager tools
and PowerShell
Objectives
After completing this lab, you will be able to:
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
The servers just started and you will configure them with both Server Manager and PowerShell
to become Failover Cluster simulating traditional, shared storage that can be in the real-world
iSCSI, FCoE, or Fibre Channel storage.
Exercise 1. :Deploy required roles and
features
Objectives
In this exercise, you will learn how to deploy Shared Storage Spaces end to end using Graphical
tools (mostly). You will also learn how to create virtual disks and volumes on Shared Storage
Spaces. All steps will be executed from the Management VM and we will configure machines
CL1W12Node1 and CL1W12Node2.
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Note:
Expected result:
Step 83: Click close to close the wizard.
Task 12: Install roles on CL1W12Node2 with PowerShell
Step 1: In the Management machine, click Start and open elevated PowerShell as on following
screenshot
Step 84: Paste the following command in elevated PowerShell to install roles and
features with PowerShell. To paste the command, just right-click into the PowerShell window
when code is in the clipboard.
Step 85: Paste the following command to restart
Step 60: Install-
WindowsFeature -Name cl1w12node2. Script will use PowerShell remoting and will
"Failover-
Clustering","Hyper-
wait for server to come online.
V-PowerShell"
-ComputerName
cl1W12node2
Step 61: Restart-
Computer cl1W12node2
Expected result: WSMan
-Protocol
-Wait -For
PowerShell
Task 13: Prepare the storage
Step 1: In Server Manager, navigate to File and Storage Services
Step 86: In File and Storage Services navigate to disks.
Step 87: Filter the servers to only Windows Server 2012 R2 by typing w12 into the filter (it
is filtering by name, not by OS. Servers with Server 2012 R2 OS contains w12 in the name).
Step 88: To initialize first disk, right-click on disk number 1 in node1 and select Bring
Online
PowerShell alternative:
#first select disk from remote computer and store it in variable
$disk=get-disk -CimSession Cl1W12Node1 -Number 1
#then make it read/write
$disk | Set-Disk -IsReadOnly $false
#and make disk Online
$disk | Set-Disk -IsOffline $false
Step 89: Initialize disk with right-click and selecting Initialize. Confirm the prompt.
Step 90: To create volume, right click the same disk and select New Volume…
Step 91: The wizard will pop up. Click Next on Before you begin page.
Step 92: Click Next on the Server and Disk page
Step 93: Click Next on the Size
Step 94: On Drive Letter or Folder page select “Don’t assign to a drive letter or folder” and
click Next
Step 95: In the Allocation Unit Size select 8192 and in Volume Label type “Witness”. Click
Next
Step 96: Click Create to create the Volume.
Step 97: The formatting will finish. Click close to close the wizard.
Step 98: Refresh the Disk information with refresh button (arrows in the circle) and notice
its online and volume is present.
Step 99: Make the disk offline again by right-click and selecting Take Offline
Step 100: To format 2 other disks, run you can either repeat steps above, or Run the
following PowerShell command. Volume Names will be MyCSV_1 and MyCSV_2 with
allocation unit size 8kb.
Step 113: In Summary page click Finish to close Create Cluster Wizard.
Step 114: Failover Cluster Manager with Shared-Cluster will appear.
Expected result:
Task 15: Explore the Cluster and configure Cluster Shared
Volumes
Step 1: Notice, that witness was automatically configured
Step 117: Add disk with VolumeName MyCSV_1 to ClusterSharedVolume using right-click
and selecting “Add to Cluster Shared Volumes”
Expected result:
Step 118: Add second disk with following PowerShell command
Step 62: #Fill variable with Cluster Name
Step 63: $ClusterName="Cluster1"
Step 64: #Show all cluster resources, to show available storage
Step 65: Get-ClusterResource -Cluster $ClusterName
Step 66: #select only available storage and add it to variable
Step 67: $ClusterDisk=Get-ClusterResource -Cluster $ClusterName | where
OwnerGroup -eq "Available Storage"
Step 68: #add disk to Cluster Shared Volumes
Expected result:
Task 16: Browse Cluster Shared volumes and rename CSV
Mountpoints to match Volume Name
Step 1: To access Cluster Shared Volume remotely, navigate to \\Cluster1\ClusterStorage$\
Step 119: As you can see, CSVs are automatically named Volume1 and Volume2. In some
cases it may make a sense to rename it. Let’s rename Volume1 to MyCSV_1 and Volume2 to
MyCSV_2 Right-Click Volume and select Rename to rename volumes.
Expected result:
Exercise 4. :Create Clustered VMs
Objectives
In this exercise, you will learn how to create clustered VM using both wizard and PowerShell
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Expected result:
Step 125: On Specify Name and Location page, click Next
Step 126: On Specify Generation page, select Generation 2 and click Next
Step 127: In Specify memory, type 32 (as it is VM, and in Server 2012R2 we do not allow
Nested Virtualization). Click Next.
Step 128: In configure networking keep Not Connected as we will configure networking in
different Module.
Step 129: In Connect Virtual Hard Disk, select attach a virtual hard disk later, as we will copy
virtual disk with OS, later in the next task.
Note:
As described in previous exercise, default SAN policy for disks in servers is to not automatically
make online. Therefore, it is required to bring the tools disk online.
Note:
If this folder and VHD does not exist in the Management machine, navigate to lab root folder
on Hyper-V host and copy the VHD from there. Make sure it’s located at
D:\ParentDisks\Win2016NanoHV_G2.vhdx
Step 133: Copy Win2016NanoHV_G2.vhdx into Virtual Hard Disks folder you created in
Step2.
Step 134: Rename VHD to MyVM1_Disk1.vhdx
Expected result:
Task 18: Add Virtual Disk to the VM – Configure VM to
use VHD
Step 1: In Failover Cluster Manager, right-click MyVM1 and select Settings…
Step 135: In Settings click on SCSI Controller, Select HardDrive and click Add
Step 136: Click Browse, to browse for VHD you copied in previous task
Step 137: Navigate to disk an click Open
Step 139: Navigate to Firmware and move Virtual Hard disk up.
Expected result:
Step 140: Click OK to close Virtual Machine settings.
#Define VM name
$VMName="MyVM2"
#define VHD path
$vhdpath="D:\ParentDisks\Win2016NanoHV_G2.vhdx"
#define CSV Name
$CSVName="MyCSV_1"
#cluster name
$clusterName="Cluster1"
#Create VM. Invoke is needed as New-VM from 2016 is incompatible with 2012R2
Invoke-Command -ComputerName $firstnode -ArgumentList ($VMName,$CSVName)
-ScriptBlock {
param($VMName,$CSVName);
New-VM -Name $VMName -Generation 2 -Path "c:\ClusterStorage\$CSVName" -VHDPath
"c:\ClusterStorage\$CSVName\$VMName\Virtual Hard Disks\$($VMName)_Disk1.vhdx"
}
#Add VM as Highly Available on the cluster
Add-ClusterVirtualMachineRole -VMName $VMName -Cluster $ClusterName
Expected result:
Module 3, Lab2: Upgrade Cluster1 to
Windows Server 2016
Introduction
In this lab, you will learn how to upgrade clusters to Windows Server 2016 using rolling cluster
upgrades.
Objectives
After completing this lab, you will be able to:
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
You will simulate the upgrade process. In the real-world scenario, you would remove node from
cluster, reinstall and add back to cluster. In our case, we will remove node, and introduce a
different one as rebuilding the OS would be time consuming and it’s not a topic for this
workshop.
Exercise 1. :Prepare new nodes to be
ready to join a cluster
Objectives
In this exercise, you will configure necessary settings before you introduce a node into the
cluster.
You will install required features. As you already learned how to do this using GUI tools, to save
time, you will use PowerShell
You will create a SET (Switch Embedded Team) Switch which is preferred over LBFO Teaming.
SET Switches can be created only from PowerShell, or via SCVMM.
Lab Diagram
CL1W12Node1,2 CL1Node1,2
͞SAN͟
Shared VHDs
1× 1GB Witness Disk
2× 8TB Capacity Disk
Expected result:
Task 2: Configure networking
Step 1: Run the following PowerShell script to create virtual switch with name SETSwitch
connected to 2 adapters.
Step 81: #define Server Names
Step 82: $servers="cl1node1","cl1node2"
Step 83:
Step 84: #Create vSwitch on new servers from adapters that have IP address
starting 10.
Step 85: foreach ($server in $servers){
Step 86: Invoke-Command -ComputerName $server -ScriptBlock {New-VMSwitch
-Name SETSwitch -EnableEmbeddedTeaming $TRUE -MinimumBandwidthMode Weight
-NetAdapterName (Get-NetIPAddress -IPAddress 10.* ).InterfaceAlias}
Step 87: }
Step 88:
Step 89: #Clear DNS cache as you might use wrong adapter to connect (originally
server had 2NICs)
Step 141: Validate with following command, that SET Switches were created
Expected result
Exercise 5. :Roll the cluster upgrade
Objectives
In this exercise, you will replace nodes with Windows Server 2016. You will do the first node via
the GUI and the second with PowerShell. You will also learn about cluster functional level and
virtual machine versions.
Lab Diagram
CL1W12Node1,2 CL1Node1,2
͞SAN͟
Shared VHDs
1× 1GB Witness Disk
2× 8TB Capacity Disk
Step 147: Right-Click CL1W12Node1, click Pause and Drain Roles. You might need to
refresh in action menu to get correct status.
Expected result:
Step 148: Right-Click CL1W12Node1 and select Evict in More Actions menu. Confirm the
prompt.
Expected result:
Step 149: Right-Click Cluster1.corp.contoso.com and select Add Node… The wizard will
pop up.
Step 158: Notice, that the SET Switch is present only on the new cluster. This is intentional
to demo failure in Failover cluster manager.
Step 159: Close Internet Explorer and click Finish in Validation Wizard.
Step 160: In Add Node Wizard click on Next
Step 161: Click Finish to close Add Node Wizard.
Step 162: Notice, that Failover Cluster is now running with 2 Different OS versions.
Task 3: Check Cluster version with PowerShell
Step 1: Run the following command to check Cluster version with PowerShell
Step 96: Get-Cluster -Name Cluster1 | fl *
Step 97:
Expected result:
Step 165: Open Failover Cluster and observe what scripts are doing.
Task 21: Check cluster version and update.
Step 1: Run the following PowerShell command to display cluster version.
Step 166: Run the following PowerShell command to update cluster version.
Step 107: Update-ClusterFunctionalLevel -Cluster Cluster1
Step 108:
Step 167: Notice the warning, that it is irreversible action and confirm it.
Step 168: Run the following PowerShell command to display cluster version again
Objectives
After completing this lab, you will be able to:
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
The servers just started and you will configure them PowerShell to become Failover Cluster
simulating traditional, shared storage that can be in the real-world iSCSI, vFC, or Fibre Channel
storage. This time OS is NanoServer and number of nodes is 4.
Task 1: Deploy Cluster
Step 1: Paste the following script to PowerShell, or run section by section.
### Configure 4 node cluster ###
$servers="cl2node1","cl2node2","cl2node3","cl2node4"
$ClusterName="Cluster2"
$CSVNamePrefix="MyCSV_" #will add number
$NanoServer=$true
#Create vSwitch (Since here will be configured RDMA in future, Absolute is configured
as MinimumBandwidthMode weight is not supported with RDMA vNICs)
foreach ($server in $servers){
Invoke-Command -ComputerName $server -ScriptBlock {New-VMSwitch -Name
SETSwitch -EnableEmbeddedTeaming $TRUE -MinimumBandwidthMode Absolute -NetAdapterName
(Get-NetIPAddress -IPAddress 10.* ).InterfaceAlias}
}
Start-Sleep 5
Clear-DnsClientCache
################################
Step 187: Type Cluster2 into the cluster name and click OK
Step 190: Expand storage and notice, that all CSVs are online.
Step 191: Click on MyCSV_1 and notice, that mountpoint was renamed to match CSV
name.
Module 3, Lab4: Mobility
Introduction
In this lab, you will learn how to live migrate and storage live migrate machines in cluster to
different CSVs. You will also learn how to live migrate virtual machines between clusters.
Objectives
After completing this lab, you will be able to:
Lab diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
Now are 2 clusters running. First cluster is hosting 2 VMs. Second cluster is empty. First cluster is
using Windows Server 2016 Core and second Windows Server 2016 Nano installation option.
Exercise 1. :Perform different migration
types on Cluster1
Objectives
In this exercise, you will live migrate VMs using Live migration and using Storage Live migration.
Step 194: In new windows notice that only one node is available (as Cluster1 is 2 node
cluster). Select Cl1Node2 and click OK.
Step 195: Status will change to Live Migration and after a brief moment it will also change
owner node.
Expected result:
Task 26: Perform Storage live migration of MyVM1
Step 1: In Failover Cluster Manager, expand Cluster1 and navigate to Roles.
Step 196: Right-Click MyVM1 and select Move->Virtual Machine Storage
Step 197: New Move Virtual Machine Storage wizard willl appear. Drag and drop Virtual
Machine MyVM1 to MyCSV_2.
Expected result:
Step 198: Notice that destination folder path does not inherit the structure. Hit cancel to
close wizard.
Step 199: Open file explorer and navigate to \\cluster1\ClusterStorage$\MyCSV_2
Step 200: Create Folder MyVM1 and folder “Virtual Hard disks” inside MyVM1 folder.
Expected result:
Step 201: Return to Failover Cluster Manager and open Storage migration wizard for
MyVM1 again.
Step 202: Drag and drop items to match source and destination folder
Expected result:
Step 205: Move the machine back to MyCSV_1. Notice that Folders remained.
Step 206: Run the following PowerShell command to move all VMs back to MyCSV_1
Step 137: #move all VMs in Cluster1 to MyCSV_1
Step 138:
Step 139: $PathtoCSV="C:\ClusterStorage\MyCSV_1"
Step 140: $ClusterName="cluster1"
Step 141:
Step 142: $ClusterNodes=(Get-ClusterNode -Cluster $ClusterName).name
Step 143: foreach ($ClusterNode in $ClusterNodes){
Step 144: $VMs=get-vm -CimSession $ClusterNode
Step 145: foreach ($VM in $VMs){
Step 146: $DestinationStoragePath="$($PathtoCSV)\$($VM.name)"
Step 147: $VM | Move-VMStorage -DestinationStoragePath
$DestinationStoragePath
Expected result:
Step 207: In Active Directory Users and Computers expand Corp.contoso.com and navigate
to Workshop OU.
Step 208: In Workshop OU, right-click CL1Node1 and select Properties
Step 209: In properties navigate to Delegation tab and click on “Trust this computer for
delegation to specified services only” and select “Use any authentication protocol” as this
setting is now required for Windows Server 2016.
Step 210: Click on Add… button
Step 211: Click on Users or Computers… and type CL2Node1 in the object names.
Step 212: List of services will appear. Select cifs and “Microsoft Virtual System Migration
Service” and click OK
Step 213: Click Expanded to list all names.
Step 214: Notice that now also FQDN is displayed.
Expected result:
Step 215: Click OK to confirm the settings.
Step 218: In Live Migration settings select Advanced features and select Use Kerberos.
Step 219: Click OK to confirm the settings.
Step 220: Right-Click Hyper-V Manager and select Connect to Server …
Step 222: Notice that MyVM2 is stil running, but it is not clustered anymore.
Step 223: Right-click on CL1Node1 and select Hyper-V settings.
Step 224: In Hyper-V settings select Advanced Features under Live Migrations and
configure “Use Kerberos” in authentication protocols. Click OK to confirm the settings
Step 230: New windows will appear. On Before You Begin page click Next
Step 231: On Choose Move Type window keep “Move the virtual machine” selected and
click Next
Step 232: On Specify destination window type CL2Node1 into the name and click Next.
Step 233: On Choose Move Options keep default selected and click Next
Step 234: Before browsing location, lets create folder for VM first. Navigate to
\\cluster2\ClusterStorage$\MyCSV_1 and create folder named MyVM2.
Step 235: On the Choose a new location for virtual machine window, click Browse and
navigate to folder you just created. Confirm the selection and click Next
Step 236: On the Summary page review the virtal machine paths and click Finish to initiate
the move.
Expected result:
# https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-
v/deploy/set-up-hosts-for-live-migration-without-failover-clustering
#configure kerberos constrained delegation for cifs and Microsoft Virtual System
Migration Service, both name and FQDN
foreach ($Cluster in $Clusters){
Objectives
After completing this lab, you will be able to:
Prerequisites
Cluster1 should be up and running.
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
Cluster1 has only SET Switches created. You also need to dedicate a network for CSV traffic and
Live Migration traffic. To be able to control network priority, you need to configure weight
settings. To be able to isolate communication, you will setup VLANs. You also need to configure
static IP Addresses to newly created interfaces.
Exercise 1. :Configure Converged
networking
Objectives
In this exercise, you configure traditional, non-RDMA converged networking.
Step 249: To list network switches Run the following command. Notice, that
NetAdapterInterfaceDescription is Teamed-Interface as switch is Switch Embedded. Also
notice, that BandidthReservationMode is Weight.
Step 226: #List Virtual Swiches
Step 227: Get-VMSwitch -CimSession $ClusterNodes | ft
Name,SwitchType,NetAdapterInterfaceDescription,BandwidthReservationMode,Computer
Name
Step 228:
Expected result:
Step 250: To list what adapters are connected to virtual switches, use following command.
Note
As we are using virtualized environment, you can see Hyper-V Network adapter and it might
be confusing.
Step 251: Let’s take a look what adapters are present at Cluster1 nodes by running
Note
As you can see, each node has 3 Network Adapters. Ethernet and Ethernet 2 are connected to a
Virtual Switch. vEthernet is a Virtual Ethernet Adapter connected to vSwitch. Also notice that
LinkSpeed of vEthernet is 20Gbps as each adapter connected to vSwitch is 10Gbps
Step 252: Let’s take a look at IP configuration. Run the following command showing just
IPV4 addresses (except APIPA).
#inspect IP configuration
Get-NetIPAddress -CimSession $ClusterNodes |where AddressFamily -eq IPv4 | where
IPAddress -NotLike 169* | ft IPAddress,InterFaceAlias,AddressFamily,PSComputerName
Expected result:
Note
As you can see, one of the nodes has 2 IP addresses. It’s because it is Cluster Address. As you
can also see, only vEthernet adapter has an IP Address.
Expected result:
Step 254: To reveal extended information about those adapters you can Run the following
command to list all properties.
Step 255: Run the following command to create virtual NICs for Live Migration and CSV
Traffic. This command will also rename first adapter from SETSwitch to Management. (By
default it inherites name from the virtual switch.
Step 247: #Configure vNICS
Step 248: #rename first adapter that was created during SET Switch creation
Step 249: Rename-VMNetworkAdapter -ManagementOS -Name SETSwitch -NewName
Management -CimSession $clusterNodes
Step 250: #add LiveMigration and Cluster communication adapters
Step 251: Add-VMNetworkAdapter -ManagementOS -Name "LiveMigration"
-SwitchName "SETSwitch" -CimSession $clusterNodes
Step 252: Add-VMNetworkAdapter -ManagementOS -Name "Cluster"
-SwitchName "SETSwitch" -CimSession $clusterNodes
Expected result:
Expected result:
#verify ip config
Get-NetIPAddress -CimSession $clusterNodes -InterfaceAlias vEthernet*
-AddressFamily IPv4 | Sort-Object -Property PSComputername | ft
pscomputername,interfacealias,ipaddress -AutoSize -GroupBy pscomputername
Expected result:
Step 264: Click on Cluster Network 3, and click on Network Connections tab in the bottom.
Notice that all adapters have IP Addresses and are UP.
Expected result:
Step 265: Right-Click Cluster Network 3 and select Properties. Notice the settings
Step 266: Close the Cluster Network 3 Properties Window.
Step 267: Right-Click on Networks and select Live Migration Settings…
Step 268: Notice the Live Migration Settings. Close the window.
Step 269: Configure Live Migration network using following PowerShell command
Step 270: Run the following command to validate that all VMs are connected.
Expected result:
Module 6, Lab1: Stretch Cluster and
Storage Replica
Introduction
In this lab, you will learn how to configure a Stretched Cluster. Steps you already learned how to
do using Graphical tools will be done with PowerShell
Objectives
After completing this lab, you will be able to:
Prerequisites
none
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
Management
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
In this Lab, you will setup a 4 node cluster. Each node is running Windows Server 2016
Datacenter Nano. Site1Node1 and Site1Node2 are connected to the same, shared storage.
Site2Node1 and Site2Node2 are connected to different shared storage than Site1. This scenario
is representing 2 sets of Shared Storage, in 2 sites.
Exercise 1. :Install all prerequisites using
PowerShell
Objectives
In this exercise, you will create a Cluster and configure all Storage replica prerequisites. You will
also create VMs, mostly via PowerShell.
Lab Diagram
ϭϳ Ϯ͘ ϭϲ͘ ϭ͘ Ϭͬ Ϯϰ– Rep licaN et1
Site1Node1..2 Site2Node1..2
Step 345:
Step 346: #configure fault domains
Step 347: New-ClusterFaultDomain -Name Seattle -Type Site -Description
"Primary" -Location "Seattle Datacenter" -CimSession $ClusterName
Step 348: New-ClusterFaultDomain -Name Bellevue -Type Site -Description
"Secondary" -Location "Bellevue Datacenter" -CimSession $ClusterName
Step 349:
Step 350: foreach ($Site1Server in $Site1Servers){
Step 351: Set-ClusterFaultDomain -Name $Site1Server -Parent Seattle
-CimSession $ClusterName
Step 352: }
Step 353: foreach ($Site2Server in $Site2Servers){
Step 354: Set-ClusterFaultDomain -Name $Site2Server -Parent Bellevue
-CimSession $ClusterName
Step 355: }
Step 356:
Step 357: (Get-Cluster -Name $ClusterName).PreferredSite="Seattle"
Step 358:
Step 359: #get Cluster Fault domain XML to validate configuration
Step 360: Get-ClusterFaultDomainXML -CimSession $ClusterName
Step 361:
Step 362: ##add storage
Step 363:
Step 364: #format and initialize disks
Step 365: new-volume -DiskNumber 1 -FriendlyName Data -FileSystem NTFS
-AccessPath D: -CimSession $Site1Servers[0]
Step 366: new-volume -DiskNumber 2 -FriendlyName Log -FileSystem NTFS
-AccessPath E: -CimSession $Site1Servers[0]
Step 367: new-volume -DiskNumber 1 -FriendlyName Data -FileSystem NTFS
-AccessPath D: -CimSession $Site2Servers[0] -ErrorAction SilentlyContinue
Step 272: Expand Nodes and notice that sites are present as we configured Fault Domains.
Step 273: Expand storage and notice that Cluster Disks are present under Disks.
Task 40: Add cluster disk to Cluster Shared volumes and
create VMs
Step 1: Add data drive to Cluster Shared Volumes by Right-Click on Cluster Disk, and selecting
Add to Cluster Shared Volumes. (make sure you select 200GB disk connected to Site1 as
shown in the picture below)
Expected result:
Step 274: Create VMs using following PowerShell command.
Expected result:
Exercise 7. :Enable Synchronous
Replication to second site
Objectives
In this exercise, you will configure synchronous replication to a second site using the wizard in
Failover Cluster Manager
Step 278: On Select source log disk page select Cluster Disk and click Next
Step 279: On Destination log disk select cluster disk and click Next
Step 280: On Seeded Disk page keep OverWrite destination volume selected and click
Next
Step 281: On Replication Mode page keep Synchronous Replication and click Next
Step 282: On Consistency Group page keep Highest Performance selected and click Next
Note
Cluster and Client network is “Management” network, where you created SETSwitch. Cluster
Only network is extra network you will configure for Storage Replication
Objectives
After completing this lab, you will be able to:
Prerequisites
Cluster1, Cluster2 and Stretch-Clus needs to be running.
Lab Diagram
Hyper-V Virtual
External Switch/
Internet
Switch
ϭϬ͘ Ϭ͘ Ϭ͘ Ϭͬ Ϯϰ – Management Network
͞SAN͟ ͞SAN͟
Shared VHDs Shared VHDs
Shared VHDs Shared VHDs 1× 200GB ͞Data͟ 1× 200GB ͞Data͟
1× 1GB Witness Disk 1× 1GB Witness Disk 1× 20GB ͞Log͟ 1× 20GB ͞Log͟
2× 8TB Capacity Disk 4× 8TB Capacity Disk
Scenario
In this Lab you will setup a 4 node cluster. Each node is running Windows Server 2016
Datacenter Nano. Site1Node1 and Site1Node2 are connected to the same, shared storage.
Site2Node1 and Site2Node2 are connected to different shared storage than Site1. This scenario
is representing 2 sets of Shared Storage, in 2 sites.
Exercise 1. :Configure HA roles for
Hyper-V Replica
Task 1: Configure Hyper-V Replica role on Stretch-Clus
Step 1: Open Failover Cluster Manager and connect to Stretch-Clus
Step 290: Right-Click on Stretch-Clus and select Configure Role… HA Wizard will appear
$ClusterNames="Cluster1","Cluster2"
Step 298: Validate, that settings were configured by navigating to any Hyper-V Server
Settings
Exercise 9. :Enable Hyper-V replica
Objectives
In this exercise you will enable Hyper-V replica on one of the VMs running on Stretch-Clus to
Cluster2. You will also extend replication from Cluster2 to Cluster1.
Task 1: Enable Replication of MyReplicatedVM1
Step 1: In Failover Cluster Manager connect to Stretch-Clus and open Roles
Step 299: Right-click on MyReplicatedVM1 and select Enable Replication… under
Replication. The wizard will appear.
Step 302: On specify Connection Parameters keep defaults and click Next
Step 303: On Choose Replication VHDs page click Next
Step 304: On Configure Replication Frequency select 30s and click Next
Step 305: On Configure Additional Recovery Points page Select Create additional hourly
recovery points and configure VSS snapshot every hour.
Step 306: On Choose Initial Replication Method page keep defaults and click Next
Step 307: On Summary page review settings and click Finish. Wizard will configure
replication and close.
Step 315: On Configure Additional Recovery Points notice that VSS snapshots are not
available. Select Create Additional hourly recovery points and click Next.
Step 316: On Choose Initial Replication Method keep defaults and click Finish.
Step 317: In Failover Cluster Manager connect to Cluster1 and notice that
MyReplicatedVM1 is also there.
Module 7, Lab1: Performance logs
Step 1: On the physical Hyper-V host, press start, type perfmon and press Enter. Navigate to
“Hyper-V Workshop” collector set and right-click to stop data collection
Objectives
After completing this lab, you will be able to:
Prerequisites
Cluster1 needs to be running.
Scenario
In this Lab, you will setup CAU. It will enable you to install all available updates on Cluster1.
Exercise 1. :Prestage AD Object for HA
role
Task 1: Create Computer object in AD and configure ACLs.
Step 1: Open Server Manager in Management VM.
Step 319: In Server Manager open Active Directory Users and Computers from Tools menu
Step 320: Right click on Workshop OU under Corp.contoso.com and Click New ->
Computer
Step 321: In New Object wizard type Cluster1CAU into the Computer Name and click Next
twice.
Step 337: Install required roles with PowerShell. Run the following command and run
Step 417:
Step 418: $ClusterName="Cluster1"
Step 419:
Step 420: #Install required features on nodes.
Step 421: $ClusterNodes=(Get-ClusterNode -Cluster $ClusterName).Name
Step 422: foreach ($ClusterNode in $ClusterNodes){
Step 423: Install-WindowsFeature -Name RSAT-Clustering-PowerShell
-ComputerName $ClusterNode
Step 424: }
Step 425:
wizard again
Step 338: The wizard will not throw an error anymore. Keep defaults and click Next.
Step 344: Clear dns client cache with Clear-DNSClientCache command in PowerShell and
try again
Note
If you still receive errors, check DNS records against real IP addresses on CL1Node1 and
CL2Node2
Expected result:
Task 51: Apply updates.
Step 1: In CAU tool verify that you are connected to Cluster1 and click on “Apply updates to
this cluster”. New wizard will appear.
Step 345: Click Next on Getting started page.
Step 346: In Advanced Options keep defaults and click Next
Step 347: In Additional Options keep defaults and click Next
Step 348: On Confirmation page click Update to update the cluster.
Bonus, Lab2: RDMA Networking
(Optional)
Introduction
In this lab, you will learn how to configure RoCE and iWARP RDMA networks.
Objectives
After completing this lab, you will be able to:
Prerequisites
Cluster2 and Stretch-Clus needs to be running.
Scenario
Cluster2 and Stretch-Clus have just SETSwitches. You will add vRDMA adapters and configure
them. You will simulate deployment of 2 different types of RDMA – iWARP and RoCE.
Exercise 1. :Configure “iWARP” on
Cluster2
Task 1: Deploy networking with PowerShell
Step 1: Run the following PowerShell command in Management machine to configure
networking. PowerShell window has to be elevated.
$clusterName="Cluster2"
#IPs
$StorNet="172.16.1."
$Servers | ForEach-Object {
#configure IP Addresses
$IP++
$IP++
}
#Configure the host vNIC to use a Vlan. They can be on the same or different VLans
#Associate each of the vNICs configured for RDMA to a physical adapter that is up and
is not virtual (to be sure that each vRDMA NIC is mapped to separate pRDMA NIC)
#verify mapping
#verify RDMA
#verify ip config
Get-NetIPAddress -CimSession $servers -InterfaceAlias vEthernet* -AddressFamily IPv4 |
Sort-Object -Property PSComputername | ft pscomputername,interfacealias,ipaddress
-AutoSize -GroupBy pscomputername
Start-Sleep 10
#rename networks
#configure Live Migration to use SMB and to use only SMB network
$clusterName="Stretch-Clus"
$StorNet="172.16.1."
$IP=11
$NanoServer=$true
if (!$NanoServer){
#install Hyper-V for core servers - in case you are deploying core servers
instead of Nano
$Servers | ForEach-Object {
#configure IP Addresses
$IP++
$IP++
#Configure the host vNIC to use a Vlan. They can be on the same or different
VLans
#Associate each of the vNICs configured for RDMA to a physical adapter that is up
and is not virtual (to be sure that each vRDMA NIC is mapped to separate pRDMA NIC)
$physicaladapters=(get-vmswitch SETSwitch).NetAdapterInterfaceDescriptions |
Sort-Object
#verify mapping
#verify RDMA
#verify ip config
##Configure QoS
#Apply policy to the target adapters. The target adapters are adapters connected
to vSwitch
### (unfortunately this is not possible to simulate inside VM and will throw
error) ###
#validate policy
#Create a Traffic class and give SMB Direct 30% of the bandwidth minimum. The
name of the class will be "SMB"
#rename networks
#configure Live Migration to use SMB and to use only SMB network
Get-ClusterResourceType -Cluster $clustername -Name "Virtual Machine" | Set-
ClusterParameter -Name MigrationExcludeNetworks -Value ([String]::Join(";",(Get-
ClusterNetwork -Cluster $clustername | Where-Object {$_.Name -ne "SMB"}).ID))