部署新 vCenter Server Appliance 時,您可以透過上傳 .cfg 組態檔來設定應用裝置,而非在 [vCenter Server 安裝程式] 精靈中手動輸入設定。

組態檔格式

組態檔的每一行皆提供 [vCenter Center 安裝程式] 精靈中的對應項目的設定。此處顯示的值為說明可接受項目的變數。

備註︰

必須輸入與如下所示內容完全一致的標頭:vCenter Server Preseed Config v1.0。否則,檔案將遭到拒絕。

未使用組態檔中的密碼。當完成 [vCenter 安裝程式] 精靈時必須手動輸入密碼。

#vCenter Server Preseed Config v1.0

#Database options
VC_DB_TYPE=embedded or oracle
#Additional database options if VC_DB_TYPE=oracle
VC_DB_SERVER=vCenter Server database server IP address
VC_DB_SERVER_PORT=vCenter Server database server port number
VC_DB_INSTANCE=vCenter Server database server instance name
VC_DB_USER=vCenter Server database user name
VC_DB_PASSWORD=

#vCenter Single Sign-On options
SSO_TYPE=embedded or external
#Additional vCenter Single Sign-On options if SSO_TYPE=external
SSO_LS_LOCATION=vCenter Single Sign-On Lookup Service URL
SSO_LS_CERT_THUMBPRINT=vCenter Single Sign-On Lookup Service certificate thumbprint 
SSO_REG_ADMIN_USERNAME=fully qualified name of a user with vCenter Single Sign-On administrative privileges
SSO_REG_ADMIN_PASSWORD=password for above user with vCenter Single Sign-On administrative privileges
SSO_VC_ADMIN_USERNAME=name of the default principal administrator for vCenter Server. If not qualified, it is assumed to be an Operating System principal
SSO_VC_ADMIN_IS_GROUP=true or false. True if above default principal administrator for vCenter Server is a group.
#Additional vCenter Single Sign-On options if SSO_TYPE=embedded
SSO_ADMIN_PASS=password for the administrator@vsphere.local newly installed embedded vCenter Single Sign-On service
SSO_ADMIN_PASS2=set to the same string as SSO_ADMIN_PASS
SSO_CALLTYPE=set to "typed" for SSO_ADMIN_PASS to take effect.


#Microsoft Active Directory options
VC_AD_STATUS=0 to disable, 1 to enable
#Additional Microsoft Active Directory option if VC_AD_STATUS=1
VC_AD_DOMAIN=Active Directory fully qualified domain name

組態檔範例

此範例顯示使用外部 Oracle vCenter Server 資料庫和外部 vCenter Single Sign-On 執行個體之 vCenter Server Appliance 的組態檔。

#vCenter Server Preseed Config v1.0

#Database options
VC_DB_TYPE=oracle
VC_DB_SERVER=10.111.11.111
VC_DB_SERVER_PORT=1521
VC_DB_INSTANCE=orcl
VC_DB_USER=VCA-6
VC_DB_PASSWORD=

#vCenter Single Sign-On options
SSO_TYPE=external
SSO_LS_LOCATION=https://machinename.corp.com:7444/lookupservice/sdk
SSO_LS_CERT_THUMBPRINT=

#Microsoft Active Directory options
VC_AD_STATUS=0
VC_AD_DOMAIN=