重庆曙光服务器虚拟化部署,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.bin

运行安装软件director

[root@linux ~]# ./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 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-director-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-director/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 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证书

检查java版本,vcloud需要java版本是1.6.0

[root@Linux ~]# 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 or FITNESS FOR A

PARTICULAR PURPOSE.

java版本是1.4.2的,需要运行1.6.0版本

安装java1.6.0,进入到java安装目录下

[root@linux~]# cd /opt/vmware/vcloud-director/jre/bin/

运行java 1.6.0平台

[root@linux 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 Server VM (build 19.1-b02, mixed

mode)

创建ssl证书

新建文件目录/opt/ keystore /,进入至此目录下创建证书

[root@1inux ~]# cd /opt/ keystore

[root@1inux centification]#

创建http的ssl证书

/opt/vmware/vcloud-director/jre/bin/keytool -keystore http.ks

-storetype JCEKS -storepass passwd -genkey -keyalg RSA -alias

http

您的名字与姓氏是什么?

您的组织单位名称是什么?

[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@Linux centification]#

/opt/vmware/vcloud-director/jre/bin/keytool -keystore http.ks

-storetype JCEKS -storepass passwd -genkey -keyalg RSA -alias

consoleproxy 自己用

您的名字与姓氏是什么?

您的组织单位名称是什么?

[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@Linux centification]# cd

/opt/vmware/vcloud-director/bin/

[root@Linux bin]# ./configure

Welcome 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 for the remote console proxy.

The HTTP service IP address is used for accessing the user

interface and the

REST 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.10.167

Choice [default=1]: 1

Please enter your choice for the remote console proxy IP

address:

1. 192.168.10.167

2. 192.168.122.1

Choice [default=1]: 1

Please enter the path to the Java keystore containing your SSL

certificates and

private keys:

/opt/vmware/vcloud-director/jre/bin/certificates.ks

Please enter the password for the keystore:

If you would like to enable remote audit logging to a syslog

host please enter

the hostname or IP address of the syslog server. Audit logs are

stored by

vCloud Director for 90 days. Exporting logs via syslog will

enable you to

preserve them for as long as 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 Server

Enter the database type [default=1]: 2

Enter the host (or IP address) for the database:

192.168.10.164

Enter 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:jtds:sqlserver://192.168.10.164:1433/director;socketTimeout=90

loading

/opt/vmware/vcloud-director/db/mssql/NewInstall_PreInit.sql

[2 statements]

..[2]

loading /opt/vmware/vcloud-director/db/mssql/NewInstall.sql

[676 statements]

....................................................................................................[100]

....................................................................................................[200]

....................................................................................................[300]

....................................................................................................[400]

....................................................................................................[500]

....................................................................................................[600]

............................................................................[676]

loading

/opt/vmware/vcloud-director/db/mssql/NewInstall_Funcs.sql

[268 statements]

....................................................................................................[100]

....................................................................................................[200]

....................................................................[268]

loading

/opt/vmware/vcloud-director/db/mssql/NewInstall_Data.sql

[35 statements]

...................................[35]

Database configuration complete.

vCloud Director configuration is now complete.

Once the vCloud Director server has been started you will be

able to

access the first-time setup wizard at this URL:

Would you like to start the vCloud Director service now? If you

choose not

to start it now, you can manually start it at any time using

this command:

service vmware-vcd start

Start it now? [y/n] y

Skipping start up for now

The vCD service will be started automatically on boot. To

disable this,

use the following command: chkconfig --del vmware-vcd

重启服务器,安装完毕

或者重启vcd服务service vmware-vcd start

一定要把系统https服务开启,才能用IE访问

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值