Configuring Advanced Windows Server 2012 R2 Services: Virtual Machine and Site Resilience
- 4/29/2014
Practice exercises
The goal of this section is to provide you with hands-on practice with the following:
- Preparing servers for shared nothing live migration
- Preparing servers for Hyper-V Replica
- Configuring virtual machine replication
- Performing planned virtual machine replication failover
- Performing shared nothing live migration
- Managing storage migration
- Exporting, importing, and cloning a virtual machine
- Performing unplanned virtual machine replication failover
Unlike other chapters in this book, the practice exercises in this lesson require that you have two reasonably identical computers that will function as Hyper-V hosts. Unlike the other server roles that are addressed by the 70-412 exam, running Hyper-V in a supported configuration requires that you install the operating system on “bare metal.” It is possible with some virtualization solutions to trick Windows Server 2012 so that it detects that it is running directly on hardware when in fact it is running in a virtualized state. If you know how to configure a third-party virtualization solution to do this, you can build a lab for this chapter in this manner.
When selecting host computers for MEL-HV-1 and MEL-HV-2, ensure that they meet the following Hyper-V virtualization requirements:
- 1.4 GHz or faster x64 processor with hardware-assisted virtualization. Included with Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology.
- Hardware enforced Data Execution Prevention (DEP). On processors that use Intel architecture, this involves enabling the Intel XP (Execute Disable) bit or the AMD NX (No Execute) bit.
Figure 8-23 serves as a starting point to describe the environment created for this set of practice exercises.
FIGURE 8-23 The lab infrastructure
- The Windows 8.1 Enterprise Edition computer running client Hyper-V and hosting virtual machines SYD-DC, MEL-DC, ADL-DC, and CBR-DC. The client Hyper-V virtual switch is configured with two virtual switches: a private switch and an external switch. Practice exercises in all other chapters of this book assume that SYD-DC, MEL-DC, ADL-DC, and CBR-DC are configured so that network adapters are matched to the private switch.
- SYD-DC.contoso.com is a virtual machine running the evaluation version of Windows Server 2012 R2 and is configured as described in the introduction of this book. The main change is instead of being configured to use a private network on the Hyper-V host, the SYD-DC.contoso.com virtual machine network adapter is configured to use an external network. SYD-DC.contoso.com retains existing Internet Protocol (IP) address information.
MEL-HV-1 is running the evaluation version Windows Server 2012 R2 Standard Edition. MEL-HV-1 is deployed on computer hardware in a traditional bare metal configuration. MEL-HV1 is configured with the following IP address information and is joined to the contoso.com domain:
- IP Address: 10.10.10.51
- Subnet Mask: 255.0.0.0
- DNS Server Address: 10.10.10.10
MEL-HV-2 is running the evaluation version Windows Server 2012 Standard Edition. HEL-HV-2 is deployed on computer hardware in a traditional bare metal configuration. MEL-HV2 is configured with the following IP address information and is joined to the contoso.com domain:
- IP Address: 10.10.10.52
- Subnet Mask: 255.0.0.0
- DNS Server Address: 10.10.10.10
- You might wish to enable Remote Desktop on MEL-HV-1 and MEL-HV-2 so that you can manage everything centrally from your workstation.
- Copy the Windows Server 2012 R2 evaluation edition iso file to the folder c:\iso on MEL-HV-1.
Exercise 1: Install the Hyper-V role on MEL-HV-1 and MEL-HV-2
In this exercise, you create identical virtual switches on MEL-HV-1 and MEL-HV-2. To complete this exercise, perform the following steps:
- Sign on to MEL-HV-1 as contoso\don_funk with the password Pa$$w0rd.
- From the Manage menu of the Server Manager console, click Add Servers.
In the Add Servers dialog box, click Find Now. Select MEL-HV-2 and click the arrow key to add it to the list of selected computers as shown in Figure 8-24. Click OK.
FIGURE 8-24 The Add Servers dialog box
Click the All Servers node of the Server Manager console and ensure that MEL-HV-1 and MEL-HV-2 are present as shown in Figure 8-25.
FIGURE 8-25 The All Servers node of the Server Manager
- From the Manage menu, click Add Roles And Features.
- On the Before You Begin page of the Add Roles And Features Wizard, click Next twice.
On the Select Destination Server page, select MEL-HV-1.contoso.com as shown in Figure 8-26. Click Next.
FIGURE 8-26 Server selection
- On the Select Server Roles page, select Hyper-V. In the Add Roles And Features Wizard pop-up box, click Add Features.
Verify that the Hyper-V role is selected as shown in Figure 8-27 and click Next three times.
FIGURE 8-27 Selecting server roles
- On the Virtual Switches page, ensure that no network adapters are selected and click Next.
On the Virtual Machine Migration page, ensure that no option is selected as shown in Figure 8-28. Click Next twice.
FIGURE 8-28 The Virtual Machine Migration page
On the Confirm Installation Selections page, select Restart The Destination Server Automatically If Required as shown in Figure 8-29. In the Add Roles And Features Wizard dialog box, click Yes. Click Install.
FIGURE 8-29 The Confirmation page
- MEL-HV-1 might restart a few times. When it completes rebooting, sign in as contoso\don_funk with the password Pa$$w0rd.
- The Add Roles And Features Wizard restarts, and you are informed that Hyper-V is installed. Click Close.
- Click the All Servers node on the Server Manager console.
- In the Manage menu, click Add Roles And Features.
- On the Before You Begin page of the Add Roles And Features Wizard, click Next twice.
On the Select Destination Server page, select MEL-HV-2 as shown in Figure 8-30 and click Next.
FIGURE 8-30 Selecting the destination server
- On the Select Server Roles page, click Hyper-V. In the Add Roles And Features Wizard dialog box, click Add Features, and then click Next three times.
- On the Virtual Switches page, verify that no network adapters are selected and click Next.
- On the Migration page, ensure that the option to allow the server to send and receive live migrations is not enabled, and click Next twice.
- On the Confirm Installation Selections page, ensure that the Restart The Destination Server Automatically If Required option is selected and click Install. Server MEL-HV-2 restarts several times during the process of installing Hyper-V.
- Click Close to dismiss the Add Roles And Features Wizard.
Exercise 2: Configure identical virtual switches on MEL-HV-1 and MEL-HV-2
In this exercise, you configure identical virtual switches MEL-HV-1 and MEL-HV-2. To complete this exercise, perform the following steps:
- When signed on to MEL-HV-1 as contoso\don_funk, on the Tools menu of the Server Manager console, click Hyper-V Manager.
- In the Actions pane of the Hyper-V Manager console, click Connect To Server.
In the Select Computer dialog box, type MEL-HV-2 as shown in Figure 8-31. Click OK.
FIGURE 8-31 The Select Computer dialog box
- In the Hyper-V Manager console, click MEL-HV-1. In the Actions pane, click Virtual Switch Manager.
- On the Virtual Switch Manager For MEL-HV-1 dialog box, click Private, and then click Create Virtual Switch.
On the Virtual Switch Manager For MEL-HV-1 dialog box, type the name PRIVATE SWITCH as shown in Figure 8-32. Ensure that Private Network is selected and click OK.
FIGURE 8-32 Private network switch
- In the Hyper-V Manager console, click MEL-HV-2.
- In the Actions pane, click Virtual Switch Manager.
On the Virtual Switch Manager For MEL-HV-2 dialog box, click Private, and click Create Virtual Switch as shown in Figure 8-33.
FIGURE 8-33 The private network
- On the Virtual Switch Manager For MEL-HV-2 dialog box, type the name PRIVATE SWITCH and ensure that Private Network is selected. Click OK.
Exercise 3: Prepare servers for live migration
In this exercise, you prepare MEL-HV-1 and MEL-HV-2 for live migration. To complete this exercise, perform the following steps:
- Sign on to SYD-DC as contoso\don_funk with the password Pa$$w0rd.
- Click Active Directory Users And Computers on the Tools menu of the Server Manager console.
- Navigate to the Computers container under the contoso.com domain.
- Right-click the MEL-HV-1 computer account and click Properties.
On the Delegation tab of the MEL-HV-1 Properties dialog box, select Trust This Computer For Delegation To Specified Services Only and select Use Kerberos Only as shown in Figure 8-34.
FIGURE 8-34 Configure delegation
- On the Delegation tab of the MEL-HV-1 Properties dialog box, click Add.
- On the Add Services dialog box, click Users Or Computers.
- In the Select Users Or Computers dialog box, type MEL-HV-2, click Check Names and click OK.
In the list of available services select cifs as shown in Figure 8-35. Scroll down, hold the Ctrl key, and also select the Microsoft Virtual System Migration Service. Click OK.
FIGURE 8-35 Select cifs service
Verify that both services are listed as shown in Figure 8-36 and click OK.
FIGURE 8-36 Service delegation
- Right-click the MEL-HV-2 computer account and click Properties.
- On the Delegation tab of the MEL-HV-2 Properties dialog box, select Trust This Computer For Delegation To Specified Services Only and select Use Kerberos Only.
- On the Delegation tab of the MEL-HV-2 Properties dialog box, click Add.
- On the Add Services dialog box, click Users Or Computers.
- In the Select Users Or Computers dialog box, type MEL-HV-1, click Check Names and click OK.
- In the list of available services, hold down the Ctrl key and select cifs and the Microsoft Virtual System Migration Service. Click OK.
Verify that both services are listed as shown in Figure 8-37 and click OK.
FIGURE 8-37 Service delegation
Exercise 4: Prepare servers for replication
In this exercise, you prepare MEL-HV-1 and MEL-HV-2 for replication by configuring Hyper-V and appropriate firewall rules. To complete this exercise, perform the following steps:
- Ensure that you are signed on to MEL-HV-1 as contoso\don_funk.
- In the Search charm, type Windows Firewall with Advanced Security. In the list of results, click Windows Firewall With Advanced Security.
- Right-click the Inbound Rules node and click New Rule.
On the Rule Type page of the New Inbound Rule Wizard, click Predefined, and then select Hyper-V Replica HTTP as shown in Figure 8-38. Click Next.
FIGURE 8-38 The New Inbound Rule Wizard
On the Predefined Rules page, click Hyper-V Replica HTTP Listener (TCP-In) as shown in Figure 8-39, and click Next.
FIGURE 8-39 Enable rule
- On the Action page of the New Inbound Rule Wizard, click Finish.
- Sign in to MEL-HV-2 as contoso\don_funk with the password Pa$$w0rd.
- In the Search charm, type Windows Firewall with Advanced Security. In the list of results, click Windows Firewall With Advanced Security.
- Right-click the Inbound Rules node and click New Rule.
- On the Rule Type page of the New Inbound Rule Wizard, click Predefined, and then select Hyper-V Replica HTTP. Click Next.
- On the Predefined Rules page, click Hyper-V Replica HTTP Listener (TCP-In) and click Next.
- On the Action page of the New Inbound Rule Wizard, click Finish.
Click the Windows PowerShell icon to open a Windows PowerShell window and issue the following command:
Mkdir c:\vm-store
- Switch to MEL-HV-1.
- In the Hyper-V Manager console, right-click MEL-HV-1 and click Hyper-V Settings.
On the Replication Configuration area of the Hyper-V Settings For MEL-HV-1 dialog box, select Enable This Computer As A Replica Server, select Use Kerberos (HTTP), and select Allow Replication From Any Authenticated Server as shown in Figure 8-40. Click OK.
FIGURE 8-40 Enabling the computer as a replica server
- In the Settings message box, review the message and click OK.
- In the Hyper-V Manager console, right-click MEL-HV-2 and click Hyper-V Settings.
In the Replication Configuration area of the Hyper-V Settings For MEL-HV-2 dialog box, select Enable This Computer As A Replica Server, Use Kerberos (HTTP), and Allow Replication From Any Authenticated Server options as shown in Figure 8-41.
FIGURE 8-41 Enabling the computer as a replica server
- Review the message in the Settings pop-up box and click OK.
- Restart MEL-HV-1 and MEL-HV-2.
Exercise 5: Create two virtual machines on MEL-HV-1
In this exercise, you create two virtual machines on MEL-HV-1. You use the first virtual machine to configure Hyper-V replication. You configure the second virtual machine for live migration. This exercise requires that you have access to the Windows Server 2012 evaluation media. This exercise is written assuming this media is stored in the C:\iso folder. To complete this exercise, perform the following steps:
- Sign on to MEL-HV-1 as contoso\don_funk.
Open an elevated Windows PowerShell prompt and type the following command:
Mkdir c:\vm-store
Enter the following command to create the virtual machine TEST-ONE:
New-VM –NewVHDPath c:\vm-store\test-one.vhdx –NewVHDSizeBytes 20GB –ComputerName MEL-HV-1 –MemoryStartupBytes 2048MB –Name TEST-ONE –path c:\vm-store –SwitchName "PRIVATE SWITCH"
Enter the following command to create the virtual machine TEST-TWO:
New-VM –NewVHDPath c:\vm-store\test-two.vhdx –NewVHDSizeBytes 20GB –ComputerName MEL-HV-1 –MemoryStartupBytes 2048MB –Name TEST-TWO –path c:\vm-store –SwitchName "PRIVATE SWITCH"
- If the Hyper-V Manager console is not already open, click Hyper-V Manager on the Tools menu of the Server Manager console.
- In the Hyper-V Manager console, click MEL-HV-1.
Verify that virtual machines TEST-ONE and TEST-TWO are listed as shown in Figure 8-42.
FIGURE 8-42 The Hyper-V Manager
- Click TEST-ONE. In the Actions pane click Settings.
Click the DVD Drive under IDE Controller 1 and set it to use the Windows Server 2012 R2 evaluation media image as shown in Figure 8-43 that you copied to MEL-HV-1 when setting up the computer. Click OK to close the Settings for TEST-ONE on MEL-HV-1 dialog box.
FIGURE 8-43 Settings for the DVD drive
- Click TEST-TWO. In the Actions pane click Settings.
- Click the DVD Drive under IDE Controller 1 and set it to use the Windows Server 2012 R2 evaluation media. Click OK to close the Settings for TEST-TWO On MEL-HV-1 dialog box.
- Click TEST-ONE. In the Actions pane click Start.
Perform the installation of the Windows Server 2012 R2 operating system on TEST-ONE by completing the following steps:
- On the Windows Setup dialog box, click Next and then click Install Now.
- On the Select The Operating System You Want To Install page of the Windows Setup Wizard, click Windows Server 2012 R2 Standard Evaluation (Server With A GUI) and click Next.
- On the License Terms page, click I Accept The License Terms and click Next.
- On the Which Type Of Installation Do You Want page, click Custom: Install Windows Only (Advanced)
- On the Where Do You Want To Install Windows page, click Next. The installation proceeds.
- In the Hyper-V Manager console, click TEST-TWO. In the Actions pane click Start.
Perform the installation of the Windows Server 2012 R2 operating system on TEST-TWO by completing the following steps:
- On the Windows Setup dialog box, click Next and then click Install Now.
- On the Select The Operating System You Want To Install page of the Windows Setup Wizard, click Windows Server 2012 R2 Standard Evaluation (Server With A GUI) and click Next.
- On the License Terms page, click I Accept The License Terms and click Next.
- On the Which Type Of Installation Do You Want page, click Custom: Install Windows Only (Advanced).
- On the Where Do You Want To Install Windows Page, click Next. The installation proceeds.
- Switch back to the TEST-ONE window. When the installation completes, type the password Pa$$w0rd twice and click Finish.
- Sign on to TEST-ONE as Administrator with the password Pa$$w0rd.
- Switch to the TEST-TWO window. When the installation completes, type the password Pa$$w0rd twice and click Finish.
- Sign on to TEST-TWO as Administrator with the password Pa$$w0rd.
Exercise 6: Configure TEST-ONE for replication
In this exercise, you configure virtual machine TEST-ONE hosted on MEL-HV-1 so that it replicates to MEL-HV-2. To complete this exercise, perform the following steps:
- In the Hyper-V Manager console on MEL-HV-1, right-click TEST-ONE and click Enable Replication.
- On the Before You Begin page of the Enable Replication For TEST-ONE Wizard, click Next.
- On the Specify Replica Server page, click Browse.
- In the Select Computer dialog box, type MEL-HV-2, click Check Names, and then click OK.
Verify that the Specify Replica Server page matches Figure 8-44 and click Next.
FIGURE 8-44 Specifying the replica server
On the Specify Connection Parameters page, ensure that Use Kerberos Authentication (HTTP) And Compress The Data That Is Transmitted Over The Network is selected as shown in Figure 8-45. Click Next.
FIGURE 8-45 Connection parameters
- On the Choose Replication VHDs page, ensure that C:\Vm-store\Test-one.vhdx is selected and click Next.
- On the Configure Replication Frequency Page, set the frequency to 30 seconds and click Next.
On the Configure Recovery History page, select Create Additional Hourly Recovery Points and ensure that the Coverage Provided By Additional Recovery Points (In Hours) is set to 24 as shown in Figure 8-46. click Next.
FIGURE 8-46 Configuring the recovery history
On the Choose Initial Replication Method page, choose Send Initial Copy Over The Network and Start Replication Immediately as shown in Figure 8-47. Click Finish.
FIGURE 8-47 Choosing the initial replication method
In the Hyper-V manager console, click TEST-ONE, and then click the Replication tab. Wait until initial replication completes as shown in Figure 8-48.
FIGURE 8-48 The Hyper-V Manager console
Exercise 7: View replication health and perform planned failover of TEST-ONE to MEL-HV-2
In this exercise, you trigger a planned failover of TEST-ONE to MEL-HV-2. To complete this exercise, perform the following steps:
- In the Hyper-V Manager console on MEL-HV-1, right-click the TEST-ONE virtual machine, click Replication, and click View Replication Health.
Verify that Replication Health is listed as Normal as shown in Figure 8-49. Click Close.
FIGURE 8-49 The Replication Health dialog box
- Sign on to TEST-ONE and shut down the virtual machine.
- In the Hyper-V Manager console, right-click TEST-ONE, click Replication, and click Planned Failover.
On the Planned Failover dialog box, ensure that Start The Replica Virtual Machine after Failover option is selected as shown in Figure 8-50 and click Fail Over.
FIGURE 8-50 The Planned Failover dialog box
- On the Planned Failover dialog box, verify that failover completed successfully.
- In the Hyper-V Manager console, click MEL-HV-2.
- Right-click TEST-ONE and verify that TEST-ONE, click Replication and click View Replication Health.
Verify that the current Primary Server is listed as MEL-HV-2.contoso.com as shown in Figure 8-51. Click Close.
FIGURE 8-51 The Replication Health dialog box
Exercise 8: Configure Hyper-V to support live migration
In this exercise, you configure MEL-HV-1 and MEL-HV-2 to support virtual machine live migration. To complete this exercise, perform the following steps:
- In the Hyper-V Manager console on MEL-HV-1, right-click MEL-HV-1 and click Hyper-V Settings.
On the Live Migrations page, select Enable Incoming And Outgoing Live Migrations and Use Any Available Networks For Live Migration as shown in Figure 8-52. Click OK.
FIGURE 8-52 Enabling live migrations
- In the Hyper-V Manager console on MEL-HV-1, right-click MEL-HV-2 and click Hyper-V Settings.
- On the Live Migrations page, select Enable Incoming And Outgoing Live Migrations and Use Any Available Networks For Live Migration. Click OK.
- Sign out of MEL-HV-1 and then sign on again as contoso\don_funk.
Exercise 9: Perform live migration of TEST-TWO
In this exercise, you perform live migration of TEST-TWO from MEL-HV-1 to MEL-HV-2. To complete this exercise, perform the following steps:
- Ensure that you are signed on to the TEST-TWO virtual machine as Administrator with the password Pa$$w0rd.
- In the Search charm, type Notepad and click Notepad in the results.
- In the Untitled – Notepad window, type Open Application with Unsaved Data.
- In the Hyper-V Manager console on MEL-HV-1, right-click TEST-TWO and click Move.
- On the Before You Begin page of the Move “TEST-TWO” Wizard, click Next.
On the Choose Move Type page, select Move The Virtual Machine as shown in Figure 8-53. Click Next.
FIGURE 8-53 Choosing the move type
- On the Specify Destination Computer page, click Browse.
- In the Select Computer dialog box, type MEL-HV-2, click Check Names, and click OK.
- On the Specify Destination Computer page, click Next.
On the Choose Move Options page, select Move The Virtual Machine’s Data To A Single Location as shown in Figure 8-54 and click Next.
FIGURE 8-54 Moving data to a single location
- On the Choose A New Location For Virtual Machine page, click Browse.
- In the Select Folder dialog box, select C:\vm-store on MEL-HV-2.
Verify that the Choose A New Location For Virtual Machine Page matches Figure 8-55 and click Finish.
FIGURE 8-55 Specifying a new location
When the move completes, verify that the text file with the message is open when the virtual machine is hosted on MEL-HV-2 as shown in Figure 8-56.
FIGURE 8-56 Notepad with message
Exercise 10: Perform storage migration
In this exercise, you perform storage migration. To complete this exercise, perform the following steps:
- Sign on to MEL-HV-2 as contoso\don_funk.
- Click the Windows PowerShell icon to open a Windows PowerShell window.
Type the following command and press Enter to create a new folder:
Mkdir c:\new-vm-destination
- Click Hyper-V Manager on the Tools menu of the Server Manager console.
- In the Hyper-V Manager console, select MEL-HV-2.
- Right-click the TEST-TWO virtual machine and click Move.
- On the Before You Begin page of the Move “TEST-TWO” Wizard, click Next.
On the Choose Move Type page, click Move The Virtual Machine’s Storage as shown in Figure 8-57 and click Next.
FIGURE 8-57 Choosing the move type
- On the Choose Move Options page, select Move All Of The Virtual Machine’s Data To A Single Location, and click Next.
On the Choose A New Location For The Virtual Machine’s Items, type c:\new-vm-destination as shown in Figure 8-58 and click Finish.
FIGURE 8-58 Specifying the new destination
Exercise 11: Perform a virtual machine export
In this exercise, you perform a virtual machine export. To complete this exercise, perform the following steps:
While signed on to MEL-HV-2 as Contoso\don_funk, in a Windows PowerShell window, type the following command and press Enter:
Mkdir c:\vm-export
- Sign in to TEST-TWO. Verify that the Notepad window is still open.
- Right-click the taskbar and click Task Manager. Click More Details and then click the Performance tab.
- In the Hyper-V Manager console on MEL-HV-2, right-click TEST-TWO and click Export.
In the Export Virtual Machine dialog box, type c:\vm-export as shown in Figure 8-59 and click Export.
FIGURE 8-59 The Export Virtual Machine dialog box
Exercise 12: Create a copy of a running virtual machine
In this exercise, you import a copy of the TEST-TWO virtual machine to create a copy of a running virtual machine. To complete this exercise, perform the following steps:
- Ensure you are signed on to MEL-HV-2 as contoso\don_funk.
- Click Import Virtual Machine in the Actions pane of the Hyper-V Manager console.
- On the Before You Begin page of the Import Virtual Machine dialog box, click Next.
- On the Locate Folder page, type C:\vm-explort\test-two and click Next.
- On the Select Virtual Machine page, ensure that TEST-TWO is selected and click Next.
On the Choose Import Type page, click Copy The Virtual Machine (Create A New Unique ID) as shown in Figure 8-60 and click Next.
FIGURE 8-60 Choosing Import Type
- On the Choose Folder For Virtual Machine Files page, click Next twice and then click Finish.
- When the Import completes, verify that there are now two running virtual machines on MEL-HV-2 and one in a saved state.
- Right-click the virtual machine in the saved state and click Rename. Rename the VM TEST-TWO-CLONE.
- Right click on TEST-TWO-CLONE and click Start.
- Sign in to TEST-TWO-CLONE and verify that the Notepad and Task Manager windows are present.
Exercise 13: Enable reverse replication
In this exercise, you perform the steps necessary to configure reverse replication after performing the unplanned failover in the previous exercise. To complete this exercise, perform the following steps:
- Ensure you are signed on to MEL-HV-1 as contoso\don_funk.
- On MEL-HV-1, in the Hyper-V Manager console, expand MEL-HV-2. Right-click the TEST-ONE virtual machine and click Shut Down.
- Expand the MEL-HV-1 node, right-click the TEST-ONE virtual machine, click Replication, and click Reverse Replication.
- On the Before You Begin page of the Reverse Replication Wizard For TEST-ONE, click Next.
On the Specify Replica Server page, ensure that MEL-HV-1.contoso.com has automatically been specified as shown in Figure 8-61. Click Next.
FIGURE 8-61 Specifying the replica server
- On the Specify Connection Parameters page, ensure that Kerberos Authentication is selected and click Next.
- On the Configure Replication Frequency page, ensure that 30 seconds is selected and click Next.
On the Configure Additional Recovery Points page, ensure that Create Additional Hourly Recovery Points is selected as shown in Figure 8-62. Click Next and click Finish
FIGURE 8-62 The Configure Recovery History page
- Right-click When MEL-VH-2 Is Selected, right-click TEST-ONE, and click Start.
- Wait five minutes.
Exercise 14: Perform an unplanned failover
In this exercise, you perform an unplanned failover of the TEST-ONE virtual machine. At this point in the practice exercises, the TEST-ONE virtual machine is hosted on MEL-HV-2. You simulate the failure of MEL-HV-2 by shutting down the computer. To complete this exercise, perform the following steps:
- Ensure you are signed on to MEL-HV-1 as contoso\don_funk.
- In the Hyper-V Manager console, ensure that the MEL-HV-1.contoso.com is selected. Right-click the TEST-ONE virtual machine, click Replication, and click View Replication Health.
On the Replication Health dialog box, ensure that the current primary server is set to MEL-HV-2.contoso.com as shown in Figure 8-63. Click Close to close this dialog box.
FIGURE 8-63 The Replication Health dialog box
In the Windows PowerShell window, type the following command and press Enter to force the shutdown of MEL-HV-2:
Stop-computer –computername mel-hv-2 -force
- Right-click the TEST-ONE virtual machine, click Replication, and click Failover.
On the Failover dialog box, ensure that the most recent recovery point is selected as shown in Figure 8-64 and click Failover.
FIGURE 8-64 Failover dialog box
- After failover completes, verify that the TEST-ONE virtual machine is running.