In this article I am just adding step by step guide on how to add Microsoft Virtual Server 2005 R2 to System Center Virtual Machine Manager 2008 ( the snapshot are from VMM 2008 R2)
From the VMM Admin Console select Add Host from the Action Menu/Pane
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts\Class D"}
Add-VMHost -VMMServer localhost -ComputerName "virtualserver12.omsdemo.oms" -Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths "C:\SystemCenter" -Reassociate $false -RunAsynchronously -RemoteConnectPort 5900 -VMHostGroup $VMHostGroup
It May fail if your did not have all the prerequisites
1- Microsoft Virtual Server R2 SP1
2- Certain patch for VS KB948515.msp
3- The BITS service should not be disabled
4- WS-Management is installed and started.
or It will success with the below screen.
Additional Snapshots for adding multiple servers at the same time
and here below the script
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts\Class D"}
Add-VMHost -VMMServer localhost -ComputerName "virtualserver6.omsdemo.oms" -Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths "D:\SystemCenter" -Reassociate $false -RunAsynchronously -RemoteConnectPort 5900 -VMHostGroup $VMHostGroup
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts\Class D"}
Add-VMHost -VMMServer localhost -ComputerName "virtalserver7.omsdemo.oms" -Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths "D:\SystemCenter" -Reassociate $false -RunAsynchronously -RemoteConnectPort 5900 -VMHostGroup $VMHostGroup
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts\Class D"}
Add-VMHost -VMMServer localhost -ComputerName "virtualserver9.omsdemo.oms" -Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths "D:\SystemCenter" -Reassociate $false -RunAsynchronously -RemoteConnectPort 5900 -VMHostGroup $VMHostGroup
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts\Class D"}
Add-VMHost -VMMServer localhost -ComputerName "virtualserver10.omsdemo.oms" -Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths "D:\SystemCenter" -Reassociate $false -RunAsynchronously -RemoteConnectPort 5900 -VMHostGroup $VMHostGroup
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts\Class D"}
Add-VMHost -VMMServer localhost -ComputerName "virtualserver11.omsdemo.oms" -Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths "D:\SystemCenter" -Reassociate $false -RunAsynchronously -RemoteConnectPort 5900 -VMHostGroup $VMHostGroup
No comments:
Post a Comment