
Begin the install by opening a Command Prompt window, changing to the C:\saved directory,
and issuing the command to install.
.\RHEVM_47069.exe -s -f1c:\saved\rhevm_config_2.2u2.iss
6.7.2 Configure the RHEV Environment
Also included in the C:\saved directory of the Windows image used in this document is the
following PowerShell script, which automates the following actions:
• log into the RHEV-M API
• create the Cloud-DC1 data center
• create the DC1-Clus1 cluster
• set the Cluster Policy to Even
• add first RHEL/KVM host
• create data storage
• create ISO library
• bring the data center online
• approve any RHEV-H hosts
RHEVMInitConfig.ps1
$cname = "$env:computername"
# Log in to RHEV-M API
write "Logging into RHEV-M API ..."
login-user admin 24^gold $cname
#create data center
write "Creating Data Center ..."
$dcversions = get-datacentercompatibilityversions
$dc = add-datacenter -Name "Cloud-DC1" -DataCenterType "FCP" -CompatibilityVersion
$dcversions[$dcversions.length-1]
#create cluster
write "Creating Cluster ..."
$clusversions = get-clustercompatibilityversions
$clus = add-cluster -ClusterName "DC1-Clus1" -DataCenterId $dc.DataCenterId -ClusterCpuName "Intel
www.redhat.com 122
Comentários a estes Manuais