VMwarevCloudDirector部署.docx
《VMwarevCloudDirector部署.docx》由会员分享,可在线阅读,更多相关《VMwarevCloudDirector部署.docx(8页珍藏版)》请在冰点文库上搜索。
VMwarevCloudDirector部署
VMwarevCloudDirector安装部署
一、环境准备
1、Oracle或SQLServer数据库服务器
2、Linux服务器一台(双网卡:
IP地址192.168.10.163192.168.10.167)
二、vCloudDirector安装
将vmware-vcloud-director-1.5.0-464915.bin通过SSH客户端上传至Linux系统上root文件目录下
将其权限改为777权限
[root@linux~]#chmod+xvmware-vcloud-director-1.5.0-464915.bin
运行安装软件director
[root@linux~]#./vmware-vcloud-director-1.5.0-464915.bin
Checkingarchitecture...done
CheckingforasupportedLinuxdistribution...done
CheckingfornecessaryRPMprerequisites...done
NOTE:
Thissystemhaslessmemoryinstalledthantherecommendedamount
Required:
1.0GB;Recommended:
2.0GB
VMwarerecommendsatleast2.0GBofmemorybeavailableforvCloudDirectortooperate.Youmaynoticedegradedperformancewithless.Itisrecommendedthatyouincreasetheavailablememorypriortostartingthevmware-vcdservice.
Checkingfreediskspace...done
Extractingvmware-vcloud-director-1.5.0-464915.x86_64.rpm...done
InstallingtheVMwarevCloudDirectorRPM...
warning:
vmware-vcloud-director-1.5.0-464915.x86_64.rpm:
HeaderV3RSA/SHA1signature:
NOKEY,keyID66fd4949
Preparing...#########################################[100%]
1:
vmware-vcloud-director###########################[100%]
Youshouldnowruntheconfigurationscript
(/opt/vmware/vcloud-director/bin/configure)toperformotherrequired
post-installationconfiguration.
IfyouwillbedeployingavCloudDirectorclusteryoumustmounttheshared
transferserverstoragepriortorunningtheconfigurationscript.Ifthis
isasingleserverdeploymentnosharedstorageisnecessary.
Ifyouarenotreadytodothisrightnow,youmayrunthescriptlater
priortostartingthevmware-vcdservice.
Wouldyouliketorunthescriptnow?
(y/n)?
n
Skipping.Youmayruntheconfigurationscriptatalatertimebyexecuting
/opt/vmware/vcloud-director/bin/configure
三、创建SSL证书,http和consoleproxy证书
检查java版本,vcloud需要java版本是1.6.0
[root@Linux~]#java-version
javaversion"1.4.2"
gij(GNUlibgcj)version4.1.220080704(RedHat4.1.2-46)
Copyright(C)2006FreeSoftwareFoundation,Inc.
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
java版本是1.4.2的,需要运行1.6.0版本
安装java1.6.0,进入到java安装目录下
[root@linux~]#cd/opt/vmware/vcloud-director/jre/bin/
运行java1.6.0平台
[root@linuxbin]#./java-version
javaversion"1.6.0_24"
Java(TM)Platform,StandardEditionforBusiness(build1.6.0_24-b07)
JavaHotSpot(TM)64-BitServerVM(build19.1-b02,mixedmode)
创建ssl证书
新建文件目录/opt/keystore/,进入至此目录下创建证书
[root@1inux~]#cd/opt/keystore
[root@1inuxcentification]#
创建http的ssl证书
/opt/vmware/vcloud-director/jre/bin/keytool-keystorehttp.ks-storetypeJCEKS-storepasspasswd-genkey-keyalgRSA-aliashttp
您的名字与姓氏是什么?
[Unknown]:
您的组织单位名称是什么?
[Unknown]:
vmcloud
您的组织名称是什么?
[Unknown]:
vmcloud
您所在的城市或区域名称是什么?
[Unknown]:
beijing
您所在的州或省份名称是什么?
[Unknown]:
beijing
该单位的两字母国家代码是什么
[Unknown]:
cn
CN=director,OU=vmcloud,O=vmcloud,L=shanghai,ST=shanghai,C=cn正确吗?
[否]:
y
输入的主密码
(如果和keystore密码相同,按回车):
直接输入回车键即可
创建consoleproxy的ssl证书
[root@Linuxcentification]#/opt/vmware/vcloud-director/jre/bin/keytool-keystorehttp.ks-storetypeJCEKS-storepasspasswd-genkey-keyalgRSA-aliasconsoleproxy自己用
您的名字与姓氏是什么?
[Unknown]:
您的组织单位名称是什么?
[Unknown]:
vmcloud
您的组织名称是什么?
[Unknown]:
vmcloud
您所在的城市或区域名称是什么?
[Unknown]:
beijing
您所在的州或省份名称是什么?
[Unknown]:
beijing
该单位的两字母国家代码是什么
[Unknown]:
cn
CN=director,OU=vmcloud,O=vmcloud,L=shanghai,ST=shanghai,C=cn正确吗?
[否]:
y
输入的主密码
(如果和keystore密码相同,按回车):
四、数据库连接
进入目录/opt/vmware/vcloud-director/bin/,运行configure配置
[root@Linuxcentification]#cd/opt/vmware/vcloud-director/bin/
[root@Linuxbin]#./configure
WelcometothevCloudDirectorconfigurationutility.
YouwillbepromptedtoenteranumberofparametersthatarenecessarytoconfigureandstartthevCloudDirectorservice.
PleaseindicatewhichIPaddressavailableonthismachineshouldbeusedfortheHTTPserviceandwhichIPaddressshouldbeusedfortheremoteconsoleproxy.
TheHTTPserviceIPaddressisusedforaccessingtheuserinterfaceandthe
RESTAPI.TheremoteconsoleproxyIPaddressisusedforallremoteconsole(VMRC)connectionsandtraffic.
PleaseenteryourchoicefortheHTTPserviceIPaddress:
1.192.168.10.163
2.192.168.10.167
Choice[default=1]:
1
PleaseenteryourchoicefortheremoteconsoleproxyIPaddress:
1.192.168.10.167
2.192.168.122.1
Choice[default=1]:
1
PleaseenterthepathtotheJavakeystorecontainingyourSSLcertificatesand
privatekeys:
/opt/vmware/vcloud-director/jre/bin/certificates.ks
Pleaseenterthepasswordforthekeystore:
Ifyouwouldliketoenableremoteauditloggingtoasysloghostpleaseenter
thehostnameorIPaddressofthesyslogserver.Auditlogsarestoredby
vCloudDirectorfor90days.Exportinglogsviasyslogwillenableyouto
preservethemforaslongasnecessary.
SysloghostnameorIPaddress[pressEntertoskip]:
Nosysloghostwasspecified,disablingremoteauditlogging.
Thefollowingdatabasetypesaresupported:
1.Oracle
2.MicrosoftSQLServer
Enterthedatabasetype[default=1]:
2
Enterthehost(orIPaddress)forthedatabase:
192.168.10.164
Enterthedatabaseport[default=1433]:
Usingdefaultvalue"1433"forport.
Enterthedatabasename[default=vcloud]:
Entertheinstancename[default=MSSQLSERVER]:
Usingdefaultvalue"MSSQLSERVER"forinstancename.
Enterthedatabaseusername:
Enterthedatabasepassword:
Connectingtothedatabase:
jdbc:
jtds:
sqlserver:
//192.168.10.164:
1433/director;socketTimeout=90
loading/opt/vmware/vcloud-director/db/mssql/NewInstall_PreInit.sql
[2statements]
..[2]
loading/opt/vmware/vcloud-director/db/mssql/NewInstall.sql
[676statements]
....................................................................................................[100]
....................................................................................................[200]
....................................................................................................[300]
....................................................................................................[400]
....................................................................................................[500]
....................................................................................................[600]
............................................................................[676]
loading/opt/vmware/vcloud-director/db/mssql/NewInstall_Funcs.sql
[268statements]
....................................................................................................[100]
....................................................................................................[200]
....................................................................[268]
loading/opt/vmware/vcloud-director/db/mssql/NewInstall_Data.sql
[35statements]
...................................[35]
Databaseconfigurationcomplete.
vCloudDirectorconfigurationisnowcomplete.
OncethevCloudDirectorserverhasbeenstartedyouwillbeableto
accessthefirst-timesetupwizardatthisURL:
https:
//192.168.10.163
WouldyouliketostartthevCloudDirectorservicenow?
Ifyouchoosenot
tostartitnow,youcanmanuallystartitatanytimeusingthiscommand:
servicevmware-vcdstart
Startitnow?
[y/n]y
Skippingstartupfornow
ThevCDservicewillbestartedautomaticallyonboot.Todisablethis,
usethefollowingcommand:
chkconfig--delvmware-vcd
重启服务器,安装完毕
或者重启vcd服务servicevmware-vcdstart
一定要把系统https服务开启,才能用IE访问