当部署新的 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=