By Robert Keith
Validating Windows Hyper-V Clusters already managed by System Center Virtual Machine Manager is a simple process which can be done easily with the VMM Console GUI. Creating Clusters is also simple, but from PowerShell, administrators can also validate candidate cluster nodes using the System Center facilities.
Iron Networks Products: IronPOD Family of Products, Microsoft CPS
Software: Microsoft System Center, System Center Virtual Machine Manager (SCVMM)
Hardware Components: NA
Validating candidate computer nodes for Hyper-V Cluster from SCVMM commandlets is valuable to insure that the cluster builds successfully and is each node is configured correctly. Many prerequisites should be completed and correct. Some of these prerequisites are managed completely by SCVMM, such as making sure the SMB Network Shares are configured within VMM.
This document describes a process to run the System Center Virtual Machine Manager to validate both the hosts are configured correctly, and that SCVMM is also configured correctly.
The VMM Commandlet to run cluster validation tests is Test-SCVMHostCluster. This command accepts two classes of arguments, a cluster name, or a set of hosts to later join as a cluster.
If the cluster already exists, then simply doing the command:
This will run a cluster validation test and generate a report. This is also simple to do from the VMM Console GUI. To run PowerShell commands using VMM Commands, the easiest way is start PowerShell from the VMM Console.
To select a group of nodes before the cluster is created; these nodes will need to be selected with PowerShell on some way.
The simplest way to group the nodes is to create a VMM Host Group and drag the hosts into the group. In the image below, four nodes (IP3-Comp-2-1 thru IP3-Comp-2-4) are added to the Host Group (IP3-Comp-Cluster).
Please note here the cluster has been created already, but the concept is the same.
Some of the PowerShell commands to select VMM Host Groups are:
In the example below we get and list all the available Host Groups, then select a single Host Group.
We can list the nodes selected:
In this case, we have selected the four nodes which resided inside the IP3-Comp-Cluster Host Group.
The complete sequence of commands using the Host Group to select the computer hosts for this example would be:
An actual example is here:
This can be reduced to a single line:
If your standards do not place each in their own Host Group, then individual nodes can also be selected using a query which selects hosts based either on similar object values, or using substring searches.
This example we selected the four nodes which included the substring of “*Comp-2*”.
Naturally these queries can be quite selective and creative. Below we selected all nodes with the CPUModel of Xeon. The resulting output messages lists the name of the validation report.
Finding the Results
The resulting validation report can be confusing to locate, as it is not located where the current documentation says. Going into File Explorer and doing a search on the report name locates the reports in this case at: C:\Users\Administrator.<Domain>\AppData\Local\Temp.