Building a Private Cloud with vCloud Director-Part 4: Installing vCloud Director


In our last post of this series we have configured the vCloud database and made it ready. This database will be used by the vCloud Director Installer to connect to and setup the database.

I am not using the standard ovf vcloud director installer provided by VMware. I wanted to know how the installation is done and configured so I choose to install vCloud Director on RHEL server.

For list of operating system supported for installing vCloud Director please refer the vCloud Documentation Page from VMware.

Pre-requisites before installing vCloud Director:

1: A server with Redhat as guest operating system installed and configured. Hostname and DNS should be configured.

2: The Redhat Server must have 2 NIC’s and each with different IP address (preferred) for HTTP and Console connection. This server should be reachable to your database server over the network.

3: vCloud Director installation file (bin file) downloaded and copied to server where it will be installed.

4: Certificates must be generated for http and console-proxy connection.

My Lab Setup:

I have installed RHEL-6.5 64 Bit server on one of my Esxi host. This server have been assigned 2 vCPU and 4 GB RAM.

infra-11

The server have hostname setup correctly and also DNS is configured and reachable:

vcd-1

I have 2 different NIC’s configured and each NIC has different IP address.

vcd-2

I tested ping connectivity to my database server and found working.

Everything looks OK. So it’s time to proceed with vCloud Director Installation.

1: Generating the self-signed certificates files: Following command is used to generate the SSL certificates for use with vCloud director

[root@vcd~]# keytool -keystore vcd.ks -storetype JCEKS -storepass vcl@2015 -validity 9999 -genkey -keyalg RSA -alias http

vcd-5

[root@vcd~]# keytool -keystore vcd.ks -storetype JCEKS -storepass vcl@2015 -validity 9999 -genkey -keyalg RSA -alias consoleproxy

vcd-6

Once the certificates is generated you can list the certificates by using the command

[root@vcd~]# keytool -storetype JCEKS -storepass vcl@2015 -keystore vcd.ks -list

vcd-7

Confirm the presence of your certificate file by typing ” ls -l ” command

vcd-8

Now we will proceed with installing vCloud Director. I have uploaded the vCloud director setup file to my server.

vcd-3

By default this file have permission rw-r-r (read-write,read,read). Before starting installation we have to give execute permission to vcloud installer file otherwise installation wont start.

Execute permission can be given to any file in Linux is by using the command:

# chmod +x filename

vcd-4

see the color of file have been changed to green after we have provided the execute permission to this file.

Now start the vcloud director installation by typing the command

[root@vcd~]# ./vmware-vcloud-director-5.5.2-2000523.bin

The above command will extract the installer file and install vCloud-director rpm’s to the system.

vcd-10

Once the rpm installation is finish the installer will invoke one script which will configure the vCloud instance that have been installed.

vcd-9

Press Y if you want to configure right now or press N if you want to do later.

Note: If you press N then you have to use command

# /opt/vmware/vcloud-director/bin/configure to configure the vCloud instance later.

I pressed Y so the script started asking me some questions which needed manual input from me.

First of all it will ask for the IP configuration for the http and console-proxy connection. You can choose which IP will be used for which purpose.

Secondly it will ask for path of the certificate file which we have generated in earlier steps.

My certificate file was located at /root partition but somehow the script was not accepting the path which I was giving.

cert-2

It took me a while to realize the cause of the issue and I have included the solution to this in my post Troubleshooting vCloud Director SSL Certificates Issue

Once you follow the steps shown in post you will be able to proceed.

The 3rd question which script was asking was info about the database.

vcd-12

Once again the installer tested me as it was not able to reach database server and connection was timing out.

db-1

I have covered the troubleshooting steps for this issue in my post Troubleshooting vCloud Director Database Connection Issue

Once the database connectivity issue is resolved you are good to go.

Now when you will enter your database server details it will connect the database server and start configuring it. You will see something like below on your screen once the DB configuration is started.

vcd-13

The installer will ask you whether you want to start vCloud director service now or later. Press Y if you want to start right now.

vcd-14

Note: If you press “N” at this stage then you can later start the services by invoking command # service vmware-vcd start

I pressed “Y” as I cant wait anymore to start using my vCloud director.

About Alex Hunt

Hi All I am Manish Kumar Jha aka Alex Hunt. I am currently working in VMware Software India Pvt Ltd as Operations System Engineer (vCloud Air Operations). I have around 5 Years of IT experience and have exposure on VMware vSphere, vCloud Director, RHEL and modern data center technologies like Cisco UCS and Cisco Nexus 1000v and NSX. If you find any post informational to you please press like and share it across social media and leave your comments if you want to discuss further on any post. Disclaimer: All the information on this website is published in good faith and for general information purpose only. I don’t make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this blog is strictly at your own risk. The Views and opinions published on this blog are my own and not the opinions of my employer or any of the vendors of the product discussed.
This entry was posted in vCloud Director, Vmware and tagged . Bookmark the permalink.

2 Responses to Building a Private Cloud with vCloud Director-Part 4: Installing vCloud Director

  1. Pingback: Building a Private Cloud with vCloud Director-Part 5: Installing vShield Manager | Go Virtual.

  2. Pingback: Install vCloud Director 8 with High Availability | Virtual Reality

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s