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

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:

  1. Sign on to MEL-HV-1 as contoso\don_funk with the password Pa$$w0rd.
  2. From the Manage menu of the Server Manager console, click Add Servers.
  3. 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

    FIGURE 8-24 The Add Servers dialog box

  4. 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

    FIGURE 8-25 The All Servers node of the Server Manager

  5. From the Manage menu, click Add Roles And Features.
  6. On the Before You Begin page of the Add Roles And Features Wizard, click Next twice.
  7. On the Select Destination Server page, select MEL-HV-1.contoso.com as shown in Figure 8-26. Click Next.

    FIGURE 8-26

    FIGURE 8-26 Server selection

  8. On the Select Server Roles page, select Hyper-V. In the Add Roles And Features Wizard pop-up box, click Add Features.
  9. Verify that the Hyper-V role is selected as shown in Figure 8-27 and click Next three times.

    FIGURE 8-27

    FIGURE 8-27 Selecting server roles

  10. On the Virtual Switches page, ensure that no network adapters are selected and click Next.
  11. On the Virtual Machine Migration page, ensure that no option is selected as shown in Figure 8-28. Click Next twice.

    FIGURE 8-28

    FIGURE 8-28 The Virtual Machine Migration page

  12. 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

    FIGURE 8-29 The Confirmation page

  13. MEL-HV-1 might restart a few times. When it completes rebooting, sign in as contoso\don_funk with the password Pa$$w0rd.
  14. The Add Roles And Features Wizard restarts, and you are informed that Hyper-V is installed. Click Close.
  15. Click the All Servers node on the Server Manager console.
  16. In the Manage menu, click Add Roles And Features.
  17. On the Before You Begin page of the Add Roles And Features Wizard, click Next twice.
  18. On the Select Destination Server page, select MEL-HV-2 as shown in Figure 8-30 and click Next.

    FIGURE 8-30

    FIGURE 8-30 Selecting the destination server

  19. 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.
  20. On the Virtual Switches page, verify that no network adapters are selected and click Next.
  21. 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.
  22. 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.
  23. 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:

  1. When signed on to MEL-HV-1 as contoso\don_funk, on the Tools menu of the Server Manager console, click Hyper-V Manager.
  2. In the Actions pane of the Hyper-V Manager console, click Connect To Server.
  3. In the Select Computer dialog box, type MEL-HV-2 as shown in Figure 8-31. Click OK.

    FIGURE 8-31

    FIGURE 8-31 The Select Computer dialog box

  4. In the Hyper-V Manager console, click MEL-HV-1. In the Actions pane, click Virtual Switch Manager.
  5. On the Virtual Switch Manager For MEL-HV-1 dialog box, click Private, and then click Create Virtual Switch.
  6. 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

    FIGURE 8-32 Private network switch

  7. In the Hyper-V Manager console, click MEL-HV-2.
  8. In the Actions pane, click Virtual Switch Manager.
  9. 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

    FIGURE 8-33 The private network

  10. 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

    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

    FIGURE 8-35 Select cifs service

  • Verify that both services are listed as shown in Figure 8-36 and click OK.

    FIGURE 8-36

    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

    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:

  1. Ensure that you are signed on to MEL-HV-1 as contoso\don_funk.
  2. In the Search charm, type Windows Firewall with Advanced Security. In the list of results, click Windows Firewall With Advanced Security.
  3. Right-click the Inbound Rules node and click New Rule.
  4. 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

    FIGURE 8-38 The New Inbound Rule Wizard

  5. 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

    FIGURE 8-39 Enable rule

  6. On the Action page of the New Inbound Rule Wizard, click Finish.
  7. Sign in to MEL-HV-2 as contoso\don_funk with the password Pa$$w0rd.
  8. In the Search charm, type Windows Firewall with Advanced Security. In the list of results, click Windows Firewall With Advanced Security.
  9. Right-click the Inbound Rules node and click New Rule.
  10. On the Rule Type page of the New Inbound Rule Wizard, click Predefined, and then select Hyper-V Replica HTTP. Click Next.
  11. On the Predefined Rules page, click Hyper-V Replica HTTP Listener (TCP-In) and click Next.
  12. On the Action page of the New Inbound Rule Wizard, click Finish.
  13. Click the Windows PowerShell icon to open a Windows PowerShell window and issue the following command:

    Mkdir c:\vm-store
  14. Switch to MEL-HV-1.
  15. In the Hyper-V Manager console, right-click MEL-HV-1 and click Hyper-V Settings.
  16. 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

    FIGURE 8-40 Enabling the computer as a replica server

  17. In the Settings message box, review the message and click OK.
  18. In the Hyper-V Manager console, right-click MEL-HV-2 and click Hyper-V Settings.
  19. 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

    FIGURE 8-41 Enabling the computer as a replica server

  20. Review the message in the Settings pop-up box and click OK.
  21. 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:

  1. Sign on to MEL-HV-1 as contoso\don_funk.
  2. Open an elevated Windows PowerShell prompt and type the following command:

    Mkdir c:\vm-store
  3. 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"
  4. 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"
  5. If the Hyper-V Manager console is not already open, click Hyper-V Manager on the Tools menu of the Server Manager console.
  6. In the Hyper-V Manager console, click MEL-HV-1.
  7. Verify that virtual machines TEST-ONE and TEST-TWO are listed as shown in Figure 8-42.

    FIGURE 8-42

    FIGURE 8-42 The Hyper-V Manager

  8. Click TEST-ONE. In the Actions pane click Settings.
  9. 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

    FIGURE 8-43 Settings for the DVD drive

  10. Click TEST-TWO. In the Actions pane click Settings.
  11. 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.
  12. Click TEST-ONE. In the Actions pane click Start.
  13. Perform the installation of the Windows Server 2012 R2 operating system on TEST-ONE by completing the following steps:

    1. On the Windows Setup dialog box, click Next and then click Install Now.
    2. 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.
    3. On the License Terms page, click I Accept The License Terms and click Next.
    4. On the Which Type Of Installation Do You Want page, click Custom: Install Windows Only (Advanced)
    5. On the Where Do You Want To Install Windows page, click Next. The installation proceeds.
  14. In the Hyper-V Manager console, click TEST-TWO. In the Actions pane click Start.
  15. Perform the installation of the Windows Server 2012 R2 operating system on TEST-TWO by completing the following steps:

    1. On the Windows Setup dialog box, click Next and then click Install Now.
    2. 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.
    3. On the License Terms page, click I Accept The License Terms and click Next.
    4. On the Which Type Of Installation Do You Want page, click Custom: Install Windows Only (Advanced).
    5. On the Where Do You Want To Install Windows Page, click Next. The installation proceeds.
  16. Switch back to the TEST-ONE window. When the installation completes, type the password Pa$$w0rd twice and click Finish.
  17. Sign on to TEST-ONE as Administrator with the password Pa$$w0rd.
  18. Switch to the TEST-TWO window. When the installation completes, type the password Pa$$w0rd twice and click Finish.
  19. 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:

  1. In the Hyper-V Manager console on MEL-HV-1, right-click TEST-ONE and click Enable Replication.
  2. On the Before You Begin page of the Enable Replication For TEST-ONE Wizard, click Next.
  3. On the Specify Replica Server page, click Browse.
  4. In the Select Computer dialog box, type MEL-HV-2, click Check Names, and then click OK.
  5. Verify that the Specify Replica Server page matches Figure 8-44 and click Next.

    FIGURE 8-44

    FIGURE 8-44 Specifying the replica server

  6. 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

    FIGURE 8-45 Connection parameters

  7. On the Choose Replication VHDs page, ensure that C:\Vm-store\Test-one.vhdx is selected and click Next.
  8. On the Configure Replication Frequency Page, set the frequency to 30 seconds and click Next.
  9. 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

    FIGURE 8-46 Configuring the recovery history

  10. 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

    FIGURE 8-47 Choosing the initial replication method

  11. 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

    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:

  1. In the Hyper-V Manager console on MEL-HV-1, right-click the TEST-ONE virtual machine, click Replication, and click View Replication Health.
  2. Verify that Replication Health is listed as Normal as shown in Figure 8-49. Click Close.

    FIGURE 8-49

    FIGURE 8-49 The Replication Health dialog box

  3. Sign on to TEST-ONE and shut down the virtual machine.
  4. In the Hyper-V Manager console, right-click TEST-ONE, click Replication, and click Planned Failover.
  5. 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

    FIGURE 8-50 The Planned Failover dialog box

  6. On the Planned Failover dialog box, verify that failover completed successfully.
  7. In the Hyper-V Manager console, click MEL-HV-2.
  8. Right-click TEST-ONE and verify that TEST-ONE, click Replication and click View Replication Health.
  9. 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

    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:

  1. In the Hyper-V Manager console on MEL-HV-1, right-click MEL-HV-1 and click Hyper-V Settings.
  2. 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

    FIGURE 8-52 Enabling live migrations

  3. In the Hyper-V Manager console on MEL-HV-1, right-click MEL-HV-2 and click Hyper-V Settings.
  4. On the Live Migrations page, select Enable Incoming And Outgoing Live Migrations and Use Any Available Networks For Live Migration. Click OK.
  5. 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:

  1. Ensure that you are signed on to the TEST-TWO virtual machine as Administrator with the password Pa$$w0rd.
  2. In the Search charm, type Notepad and click Notepad in the results.
  3. In the Untitled – Notepad window, type Open Application with Unsaved Data.
  4. In the Hyper-V Manager console on MEL-HV-1, right-click TEST-TWO and click Move.
  5. On the Before You Begin page of the Move “TEST-TWO” Wizard, click Next.
  6. On the Choose Move Type page, select Move The Virtual Machine as shown in Figure 8-53. Click Next.

    FIGURE 8-53

    FIGURE 8-53 Choosing the move type

  7. On the Specify Destination Computer page, click Browse.
  8. In the Select Computer dialog box, type MEL-HV-2, click Check Names, and click OK.
  9. On the Specify Destination Computer page, click Next.
  10. 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

    FIGURE 8-54 Moving data to a single location

  11. On the Choose A New Location For Virtual Machine page, click Browse.
  12. In the Select Folder dialog box, select C:\vm-store on MEL-HV-2.
  13. Verify that the Choose A New Location For Virtual Machine Page matches Figure 8-55 and click Finish.

    FIGURE 8-55

    FIGURE 8-55 Specifying a new location

  14. 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

    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:

  1. Sign on to MEL-HV-2 as contoso\don_funk.
  2. Click the Windows PowerShell icon to open a Windows PowerShell window.
  3. Type the following command and press Enter to create a new folder:

    Mkdir c:\new-vm-destination
  4. Click Hyper-V Manager on the Tools menu of the Server Manager console.
  5. In the Hyper-V Manager console, select MEL-HV-2.
  6. Right-click the TEST-TWO virtual machine and click Move.
  7. On the Before You Begin page of the Move “TEST-TWO” Wizard, click Next.
  8. 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

    FIGURE 8-57 Choosing the move type

  9. On the Choose Move Options page, select Move All Of The Virtual Machine’s Data To A Single Location, and click Next.
  10. 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

    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:

  1. 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
  2. Sign in to TEST-TWO. Verify that the Notepad window is still open.
  3. Right-click the taskbar and click Task Manager. Click More Details and then click the Performance tab.
  4. In the Hyper-V Manager console on MEL-HV-2, right-click TEST-TWO and click Export.
  5. In the Export Virtual Machine dialog box, type c:\vm-export as shown in Figure 8-59 and click Export.

    FIGURE 8-59

    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:

  1. Ensure you are signed on to MEL-HV-2 as contoso\don_funk.
  2. Click Import Virtual Machine in the Actions pane of the Hyper-V Manager console.
  3. On the Before You Begin page of the Import Virtual Machine dialog box, click Next.
  4. On the Locate Folder page, type C:\vm-explort\test-two and click Next.
  5. On the Select Virtual Machine page, ensure that TEST-TWO is selected and click Next.
  6. 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

    FIGURE 8-60 Choosing Import Type

  7. On the Choose Folder For Virtual Machine Files page, click Next twice and then click Finish.
  8. When the Import completes, verify that there are now two running virtual machines on MEL-HV-2 and one in a saved state.
  9. Right-click the virtual machine in the saved state and click Rename. Rename the VM TEST-TWO-CLONE.
  10. Right click on TEST-TWO-CLONE and click Start.
  11. 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:

  1. Ensure you are signed on to MEL-HV-1 as contoso\don_funk.
  2. 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.
  3. Expand the MEL-HV-1 node, right-click the TEST-ONE virtual machine, click Replication, and click Reverse Replication.
  4. On the Before You Begin page of the Reverse Replication Wizard For TEST-ONE, click Next.
  5. 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

    FIGURE 8-61 Specifying the replica server

  6. On the Specify Connection Parameters page, ensure that Kerberos Authentication is selected and click Next.
  7. On the Configure Replication Frequency page, ensure that 30 seconds is selected and click Next.
  8. 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

    FIGURE 8-62 The Configure Recovery History page

  9. Right-click When MEL-VH-2 Is Selected, right-click TEST-ONE, and click Start.
  10. 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:

  1. Ensure you are signed on to MEL-HV-1 as contoso\don_funk.
  2. 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.
  3. 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

    FIGURE 8-63 The Replication Health dialog box

  4. 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
  5. Right-click the TEST-ONE virtual machine, click Replication, and click Failover.
  6. 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

    FIGURE 8-64 Failover dialog box

  7. After failover completes, verify that the TEST-ONE virtual machine is running.