This is the third in a series of articles on the VMware Certified Professional 5 – Infrastructure as a Service (VCP5-IaaS) certification blueprint. Part 1 detailed required vCloud components and pre-requisites for installation, use cases and implementation. Part 2 walked you through deployment and configuration of vShield Manager. In this post, I'll show you how to install vCloud Director. I will be going through the blueprint, identifying the key components, and sharing them with you to help you on your way to becoming a VCP5-IaaS.
Blueprint Objective 1.1 – Install vCloud Components
Before we start, let’s identify the sections of objective 1.1:
- Identify required vCloud components and pre-requisites for installation
- Describe installation order of vCloud components
- Explain the purpose and use case of each vCloud component
- Create a SysPrep package
- Install vCloud Director
- Install vShield Manager
- Install vCenter Chargeback
- Install vCloud Connector
- Configure vCloud Director network connections
- Configure vCloud Director database settings
- Troubleshoot basic installation issues
- vCloud Director Installation and Configuration Guide
- vShield Manager Quick Start Guide
- vCenter Chargeback Manager Installation and Upgrade Guide
- vCloud Connector Installation and Configuration
- VMware Journey to Your Cloud
- Architecting a vCloud
- VMware vCloud Architecture Toolkit (vCAT)
- vSphere Client
- vCloud Director Web Console
- vShield Manager UI
- vCC vSphere Client Plug-in
- vCC Web UI
As you can see, this objective is going to be one of the most basic, yet it will also be covering the most information. Above, I’ve highlighted the portions of the objective that will be covered in this post.
For reference, I’m starting with a freshly installed vSphere 5.0 update 1/vCenter 5.0 update 1 environment.
Install vCloud Director
As a basis for the install, I’ve started with a CentOS x64 5.8 VM with two NICs (one for http, one for console proxy) and all required packages. “But Jason!” you might say. “That isn’t a supported operating system!” That is correct; however, I know that it works, and the configuration is nearly identical to RHEL x64 5 update 6. I also have a Microsoft SQL 2008 R2 database, with a local SQL user named vcloud. Note that you’ll have to use SQL authentication, as Windows authentication doesn’t work.
I’ll include syntax in case it isn’t clear from the screenshots. Also, I like to run things in their respective directories, so you’ll see me cd to wherever and ./ to run something. That’s just how I roll. If you want to run things using full paths, that works too. As a final note, this configuration only works for a single cell installation. If you’re doing multiple cells, refer to Kendrick Coleman’s guide on his blog.
1.) First, you will need to get the installation binary over to your new server. Whether that’s copying from an NFS or SMB share, a CD, or whatever; it just needs to get there somehow. I have it on an ISO, so I mounted it, copied the binary to /tmp, and dismounted the ISO.
2.) Next, I download and install the VMware public keys. This is optional, but it’s in the guide - so I do it. Do this for both VMWARE-PACKAGING-GPG-DSA-KEY.pub and VMWARE-PACKAGING-GPG-RSA-KEY.pub.
a.) wget packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub
b.) wget packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
c.) rpm --install VMWARE-PACKAGING-GPG-RSA-KEY.pub
d.) rpm --install VMWARE-PACKAGING-GPG-RSA-KEY.pub
3.) Now, I’m going to run the installer for the first time to extract everything. This will be important for later steps.
a.) cd /tmp (since that’s where my binary was copied to.)
b.) chmod u+x vmware-vcloud-director-1.5.1-622.bin
c.) ./vmware-vcloud-director-1.5.1-622844.bin (this will vary based on the build you use)
Note that it prompts me to confirm that I want to proceed, even though I’m not running a supported distro.4.) Now, the install proceeds on. You should see something similar to this:
You’ll then get a prompt similar to this one. I do not want to run the configure script right away, because I have to create self-signed SSL certs first. If you want to do CA signed certificates, follow steps in the vCloud Director Installation and Configuration Guide (v1.5)
5.) Now, I’m going to use the keytool utility to create the self-signed certs. There will be two, one for the http interface and one for the console proxy interface. Syntax is as follows, though obviously you should use your own FQDN, OU, org, etc. in the steps below. The location is /opt/vmware/vcloud-director/jre/bin.
a.) cd /opt/vmware/vcloud-director/jre/bin
b.) /keytool -genkey -keystore certificates.ks -storetype JCEKS -storepass <password> -keyalg RSA -alias http
c.) ./keytool -genkey -keystore certificates,ks -storetype JCEKS -storepass <password> -keyalg RSA -alias consoleproxy
6.) Now, we go back to the configure script to restart the installation. The location is /opt/vmware/vcloud-director/bin.
a.) cd /opt/vmware/vcloud-director/bin
b.) ./configurec.) Choose the appropriate adapter for the http service and then console proxy.
7.) Enter the path to the Java keystore, then the keystore password (defined when the keystore was created)
8.) Type in the FQDN or IP address of your syslog host. If none, just hit enter.
9.) Next, we configure the database connection. My example is with a Microsoft SQL Server 2008 R2 database. All of these options will vary based on your environment.
10.) After successful configuration of the database, you’ll see a connection being made and a similar message to the one below. Type y to start the vmware-vcd service, and hit enter.
11.) Now, in a web browser, go to the IP or FQDN of the vCloud Director server, as below. Since your cert is self-signed, you’ll get an error about it not being trusted. Click through to continue.
12.) Once you click through, you’ll see a screen to start vCloud Director configuration. Click Next to proceed.
13.) To proceed, agree to the EULA, then Next.
14.) Enter in your license key, then hit Next.
15.) Fill in your administrative user information, then hit Next.
16.) Fill in a unique system name and installation ID, then hit Next.
17.) Verify your settings are correct, then hit Finish.
18.) You’ll now be redirected to the login. You can log in using the administrative credentials you specified earlier.
19.) You should now see a screen similar to the one below.
Congratulations! You’re now ready to start configuring your vCloud Director environment, which I’ll cover in an upcoming post. Stay tuned!