Install-SCVMHostCluster

Creates a failover cluster from Hyper-V hosts managed by VMM.

Syntax

Install-SCVMHostCluster [-ClusterIPAddress <String[]>] [-ClusterIPAddressPool <StaticIPAddressPool[]>]
 -ClusterName <String> [-ClusterReserve <Int32>] -Credential <VMMCredential> [-Description <String>]
 [-EnableS2D] [-JobGroup <Guid>] [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously]
 [-SetQuorumDisk <ClientObject>] [-SetQuorumNodeMajority] [-SkipValidation] -VMHost <Host[]>
 [-VMMServer <ServerConnection>] [<CommonParameters>]
Install-SCVMHostCluster [-ClusterIPAddress <String[]>] [-ClusterIPAddressPool <StaticIPAddressPool[]>]
 -ClusterName <String> [-ClusterReserve <Int32>] -Credential <VMMCredential> [-Description <String>]
 [-EnableS2D] [-JobGroup <Guid>] [-JobVariable <String>] [-PROTipID <Guid>]
 -PhysicalComputerConfig <PhysicalComputerConfig[]> [-RunAsynchronously] [-SetQuorumNodeMajority]
 [-SkipValidation] [-VMMServer <ServerConnection>] [<CommonParameters>]
Install-SCVMHostCluster -Credential <VMMCredential> [-EnableS2D] [-JobGroup <Guid>] [-JobVariable <String>]
 [-PROTipID <Guid>] -PhysicalComputerConfig <PhysicalComputerConfig[]> [-RunAsynchronously] [-SkipValidation]
 -VMHostCluster <HostCluster> [-VMMServer <ServerConnection>] [<CommonParameters>]
Install-SCVMHostCluster -Credential <VMMCredential> [-EnableS2D] [-JobGroup <Guid>] [-JobVariable <String>]
 [-PROTipID <Guid>] [-RunAsynchronously] [-SkipValidation] -VMHost <Host[]> -VMHostCluster <HostCluster>
 [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Install-SCVMHostCluster cmdlet creates a failover cluster from Hyper-V hosts managed by Virtual Machine Manager (VMM). Install-SCVMHostCluster can also add a node to an existing cluster.

Examples

Example 1: Create a cluster from managed hosts

PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> $HostGroup = Get-SCVMHostGroup -Name "New York"
PS C:\> $Nodes = Get-SCVMHost | where {$_.Name -like "HostClus*" -and $_.VMHostGroup -eq $HostGroup} 
PS C:\> Install-SCVMHostCluster -VMHost $Nodes -ClusterName "Cluster01" -Credential $RunAsAcct

The first command gets the Run As account named RunAsAccount01 and stores it in the $RunAsAcct variable.

The second command gets the host group object named New York and stores the object in the $HostGroup variable.

The third command gets the cluster nodes that begin with the name HostClus in the host group stored in $HostGroup. The command then stores the nodes in the $Nodes variable.

The last command creates the cluster and names it Cluster01.

Example 2: Create a hyper converge cluster from managed hosts

PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> $HostGroup = Get-SCVMHostGroup -Name "New York"
PS C:\> $Nodes = Get-SCVMHost | where {$_.Name -like "HostClus*" -and $_.VMHostGroup -eq $HostGroup} 
PS C:\> Install-SCVMHostCluster -VMHost $Nodes -ClusterName "Cluster01" -Credential $RunAsAcct -EnableS2D

The first command gets the Run As account named RunAsAccount01, and then stores it in the $RunAsAcct variable.

The second command gets the host group object named New York, and then stores it in the $HostGroup variable.

The third command gets the cluster nodes that begin with the name HostClus in the host group stored in $HostGroup. The command stores the nodes in the $Nodes variable.

The last command creates hyper converged cluster and names it Cluster01.

Parameters

-ClusterIPAddress

Specifies one or more IP addresses to use as a cluster IP address.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClusterIPAddressPool

Specifies a static IP address pool to use as a cluster IP address pool.

Type:StaticIPAddressPool[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClusterName

Specifies the name of a cluster.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClusterReserve

Specifies the number of host failures that a host cluster can sustain before VMM designates the cluster as over-committed. The default value is 1.

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies a credential object or, for some cmdlets, a Run As account object that contains the user name and password of an account that has permission to perform this action. Or, in the case of Restart-SCJob, has permission to complete a restarted task.

For more information about the PSCredential object, type Get-Help Get-Credential. For more information about Run As accounts, type Get-Help New-SCRunAsAccount.

Type:VMMCredential
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for the host cluster.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableS2D
Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobGroup

Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PhysicalComputerConfig

Specifies an array of host configuration objects.

For information about host configuration objects, see the New-SCVMHostConfig cmdlet.

Type:PhysicalComputerConfig[]
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetQuorumDisk

Specifies a disk to use as the quorum disk for the cluster.

Type:ClientObject
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetQuorumNodeMajority

Sets the quorum mode to Node Majority for the cluster.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipValidation

Skips cluster validation tests when creating a cluster.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHost

Specifies an array of virtual machine host objects.

Type:Host[]
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHostCluster

Specifies a VMM host cluster object.

Type:HostCluster
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

VMHostCluster

This cmdlet returns a **VMHostCluster** object.