Test Lab Guide: Monitoring Virtual Machines in a Cluster Shared Volume

Mikhail Komarov

MVP Virtual Machine

Vladimir Savko

Date of last update: May 3, 2013

Editor Joe Davies

Abstract

This Microsoft Test Lab Guide (TLG) provides step-by-step instructions to demonstrate the monitoring of virtual machines in a cluster shared volume in the Windows Server 2012 Base Configuration for Private Cloud test lab, using computers running Windows Server 2012.

Copyright Information

This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information in this document, including URL and other Internet Web site references, is subject to change without notice. The entire risk of the use or the results from the use of this document remains with the user. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. 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.

© 2013 Microsoft Corporation. All rights reserved.

Microsoft, Windows, Active Directory, Internet Explorer, and WindowsServer are either registered trademarks or trademarks of MicrosoftCorporation in the UnitedStates and/or other countries.

All other trademarks are property of their respective owners.

Contents

Step 1: Configure the Windows Server 2012 Base Configuration for Private Cloud lab 4

Step 2: Configure the Cluster Shared Volume using Starwind Software 4

Step 3: Configure firewall permission for monitoring virtual machine 4

Step 4: Enable monitoring virtual machine in CSV cluster 5

Step 5: Test monitoring virtual machine 6

Test Lab Guide: Monitoring Virtual Machine

Applies to Windows Server 2012

This lab demonstrates monitoring virtual machine in Cluster Shared Volume Windows 2012.

Step 1: Configure the Windows Server 2012 Base Configuration for Private Cloud lab

Use the instructions in Test Lab Guide: Windows Server 2012 Base Configuration for Private Cloud to configure the Hyper-V hosts HV1 and HV2 and the DC1, APP1, and CLIENT1 virtual machines.

Step 2: Configure the Cluster Shared Volume using Starwind Software

Use the instructions in Test Lab Guide: Create Cluster Shared Volume using Starwind Software to configure the Hyper-V hosts HV1 and HV2 and create the HVCL cluster.

Step 3: Configure firewall permission for monitoring virtual machine

In this step, you will configure firewall for monitoring in APP1 virtual machine

1.  Log on to the HV1 server as the CORP\user1 user account.
2.  Server Manager will start automatically. If it does not automatically start, click Start, type servermanager.exe, and then click Server Manager.
3.  In the left panel, click Hyper-V, in SERVERS select HV1.
4.  Right-click the APP1 virtual machine, and then click Connect.
5.  Log on to the APP1 virtual machine as the CORP\user1 user account.
6.  Server Manager will start automatically. If it does not automatically start, click Start, type servermanager.exe, and then click Server Manager.
7.  In the left panel, select Local Server.
8.  Click Tools, and select Windows firewall.
9.  In the left-hand pane, click Allow an app or feature through Windows Firewall (see picture below).

10.  Select Virtual machine monitoring, and then click OK. (See picture below).

Step 4: Enable monitoring on a virtual machine in the CSV cluster

In this step, you will enable monitoring for the APP1 virtual machine in the CSV cluster.

1.  Log on to the HV1 server as the CORP\user1 user account.

2.  Press the Windows key, type Fail, and start Failover Cluster Management.

3.  In the tree pane, open Nodes/HV1, and select APP1.

4.  Right-click APP1 in the contents pane, point to More Actions, and then click Configure Monitoring.

5.  Click Print Spooler, and then click OK.

6.  You should see that monitoring has been enabled (see picture below).


Step 5: Test monitoring virtual machine

In this step, you will test monitoring for the APP1 virtual machine.
1.  Log on to the HV1 server as the CORP\user1 user account.
2.  Server Manager will start automatically. If it does not automatically start, click Start, type servermanager.exe, and then click Server Manager.
3.  In the left panel, click Hyper-V, in SERVERS, select HV1.
4.  Right-click the APP1 virtual machine, and then click Connect.
5.  Log on to the APP1 virtual machine as the CORP\user1 user account.
6.  Press the Windows logo key, type power, and start Windows PowerShell with administrator permissions.
7.  Run the following PowerShell command three times: Get-Process -Name spoolsv |Stop-Process

8.  Then check the status of the APP1 virtual machine (it must be Running(Application in VM critical)) (see picture below)

9.  Wait up to 2-3 minutes - virtual machine APP1 will be restarted.