1、VMware vCloud Director 安装部署VMware vCloud Director 安装部署一、 环境准备1、 Oracle或SQL Server数据库服务器2、 Linux服务器一台(双网卡:IP地址192.168.10.163 192.168.10.167)二、vCloud Director安装 将vmware-vcloud-director-1.5.0-464915.bin通过SSH客户端上传至Linux系统上root文件目录下 将其权限改为777权限 root linux # chmod +x vmware-vcloud-director-1.5.0-464915.bi
2、n 运行安装软件director rootlinux # ./vmware-vcloud-director-1.5.0-464915.bin Checking architecture.done Checking for a supported Linux distribution.done Checking for necessary RPM prerequisites.done NOTE: This system has less memory installed than the recommended amount Required: 1.0 GB; Recommended: 2.0
3、GB VMware recommends at least 2.0 GB of memory be available for vCloud Director to operate. You may notice degraded performance with less. It is recommended that you increase the available memory prior to starting the vmware-vcd service. Checking free disk space.done Extracting vmware-vcloud-directo
4、r-1.5.0-464915.x86_64.rpm.done Installing the VMware vCloud Director RPM. warning: vmware-vcloud-director-1.5.0-464915.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 66fd4949 Preparing. #100% 1:vmware-vcloud-director # 100% You should now run the configuration script (/opt/vmware/vcloud-dir
5、ector/bin/configure) to perform other required post-installation configuration. If you will be deploying a vCloud Director cluster you must mount the shared transfer server storage prior to running the configuration script. If this is a single server deployment no shared storage is necessary. If you
6、 are not ready to do this right now, you may run the script later prior to starting the vmware-vcd service. Would you like to run the script now? (y/n)? n Skipping. You may run the configuration script at a later time by executing /opt/vmware/vcloud-director/bin/configure三、创建SSL证书,http和consoleproxy证
7、书 检查java版本,vcloud需要java版本是1.6.0 rootLinux # java -version java version 1.4.2 gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY o
8、r FITNESS FOR A PARTICULAR PURPOSE. java版本是1.4.2的,需要运行1.6.0版本 安装java1.6.0,进入到java安装目录下 rootlinux# cd /opt/vmware/vcloud-director/jre/bin/ 运行java 1.6.0平台 rootlinux bin# ./java -version java version 1.6.0_24 Java(TM) Platform, Standard Edition for Business (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit
9、Server VM (build 19.1-b02, mixed mode) 创建ssl证书 新建文件目录/root/software/centification,进入至此目录下创建证书 root1inux # cd /root/software/centification/ root1inux centification# 创建http的ssl证书 root1inux centification# /opt/vmware/vcloud-director/jre/bin/keytool -keystore certificates.ks -storetype JCEKS -storepass
10、vmware123 -genkey -keyalg RSA -alias http 您的名字与姓氏是什么? Unknown: director 您的组织单位名称是什么? Unknown: vmcloud 您的组织名称是什么? Unknown: vmcloud 您所在的城市或区域名称是什么? Unknown: shanghai 您所在的州或省份名称是什么? Unknown: shanghai 该单位的两字母国家代码是什么 Unknown: cn CN=director, OU=vmcloud, O=vmcloud, L=shanghai, ST=shanghai, C=cn 正确吗? 否: y
11、输入的主密码 (如果和 keystore 密码相同,按回车): 直接输入回车键即可 为http服务创建证书签名请求 rootLinux centification# /opt/vmware/vcloud-director/jre/bin/keytool -keystore certificates.ks -storetype JCEKS -storepass vmware123 -certreq -alias http -file http.csr 创建consoleproxy的ssl证书 rootLinux centification# /opt/vmware/vcloud-director
12、/jre/bin/keytool -keystore certificates.ks -storetype JCEKS -storepass vmware123 -genkey -keyalg RSA -alias consoleproxy 您的名字与姓氏是什么? Unknown: director 您的组织单位名称是什么? Unknown: vmcloud 您的组织名称是什么? Unknown: vmcloud 您所在的城市或区域名称是什么? Unknown: shanghai 您所在的州或省份名称是什么? Unknown: shanghai 该单位的两字母国家代码是什么 Unknown:
13、cn CN=director, OU=vmcloud, O=vmcloud, L=shanghai, ST=shanghai, C=cn 正确吗? 否: y 输入的主密码 (如果和 keystore 密码相同,按回车): 为consoleproxy创建证书签名请求 rootLinux centification# /opt/vmware/vcloud-director/jre/bin/keytool -keystore certificates.ks -storetype JCEKS -storepass vmware123 -certreq -alias consoleproxy -file
14、 consoleproxy.csr 将建立的ssl证书导入至/opt/vmware/vcloud-director/jre/bin/ rootLinux centification# mv certificates.ks /opt/vmware/vcloud-director/jre/bin/四、数据库连接 进入目录/opt/vmware/vcloud-director/bin/,运行configure配置 rootLinux centification# cd /opt/vmware/vcloud-director/bin/rootLinux bin# ./configure Welcome
15、 to the vCloud Director configuration utility.You will be prompted to enter a number of parameters that are necessary to configure and start the vCloud Director service.Please indicate which IP address available on this machine should be used for the HTTP service and which IP address should be used
16、for the remote console proxy.The HTTP service IP address is used for accessing the user interface and theREST API. The remote console proxy IP address is used for all remote console (VMRC) connections and traffic.Please enter your choice for the HTTP service IP address: 1. 192.168.10.163 2. 192.168.
17、10.167 3. 192.168.122.1Choice default=1: 1Please enter your choice for the remote console proxy IP address: 1. 192.168.10.167 2. 192.168.122.1Choice default=1: 1Please enter the path to the Java keystore containing your SSL certificates andprivate keys: /opt/vmware/vcloud-director/jre/bin/certificat
18、es.ksPlease enter the password for the keystore: If you would like to enable remote audit logging to a syslog host please enterthe hostname or IP address of the syslog server. Audit logs are stored byvCloud Director for 90 days. Exporting logs via syslog will enable you topreserve them for as long a
19、s necessary.Syslog host name or IP address press Enter to skip: No syslog host was specified, disabling remote audit logging.The following database types are supported: 1. Oracle 2. Microsoft SQL ServerEnter the database type default=1: 2Enter the host (or IP address) for the database: 192.168.10.16
20、4Enter the database port default=1433: Using default value 1433 for port.Enter the database name default=vcloud: Enter the instance name default=MSSQLSERVER: Using default value MSSQLSERVER for instance name.Enter the database username: Enter the database password: Connecting to the database: jdbc:j
21、tds:sqlserver:/192.168.10.164:1433/director;socketTimeout=90loading /opt/vmware/vcloud-director/db/mssql/NewInstall_PreInit.sql2 statements.2loading /opt/vmware/vcloud-director/db/mssql/NewInstall.sql676 statements.100.200.300.400.500.600.676loading /opt/vmware/vcloud-director/db/mssql/NewInstall_Fu
22、ncs.sql268 statements.100.200.268loading /opt/vmware/vcloud-director/db/mssql/NewInstall_Data.sql35 statements.35Database configuration complete.vCloud Director configuration is now complete.Once the vCloud Director server has been started you will be able toaccess the first-time setup wizard at thi
23、s URL: https:/192.168.10.163Would you like to start the vCloud Director service now? If you choose notto start it now, you can manually start it at any time using this command:service vmware-vcd startStart it now? y/n ySkipping start up for nowThe vCD service will be started automatically on boot. To disable this,use the following command: chkconfig -del vmware-vcd重启服务器,安装完毕或者重启vcd服务service vmware-vcd start
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1