Clearpath Insights: Managed Services | Cloud Services | IT Solutions

VCP5-IaaS Study Guide, Objective 1.1 Part 3

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.

Contact Clearpath's VMware Licensing and Professional Services Team

Blueprint Objective 1.1 – Install vCloud Components

Before we start, let’s identify the sections of objective 1.1:

Knowledge

  • 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

Tools

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
vmware packaging dsa key resized 600vmware packaging gpg rsa key resized 600vmware packaging dsa gpg rsa root vcloud resized 600

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)

vmware vcloud director resized 600

 

 

 

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:

vmware vcloud install screen resized 600

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)

vmware vcloud director configuration resized 600

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 httpvmware vcloud director keygen resized 600

c.) ./keytool -genkey -keystore certificates,ks -storetype JCEKS -storepass <password> -keyalg RSA -alias consoleproxy

vmware vcloud director console proxy resized 600

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.) ./configurevcloud director bin resized 600c.) 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)

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

 vmware vcloud bin certificates resized 600

8.) Type in the FQDN or IP address of your syslog host. If none, just hit enter.

vmware vcloud director syslog host resized 600

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.

vmware vcloud database connection resized 600

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.

 vmware vcloud vcd service resized 600

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.

 vmware vcloud director server browser resized 600

12.) Once you click through, you’ll see a screen to start vCloud Director configuration. Click Next to proceed.

vcloud director configuration resized 600

13.) To proceed, agree to the EULA, then Next.

vcloud director EULA resized 600

14.) Enter in your license key, then hit Next.

vcloud director license key resized 600

15.) Fill in your administrative user information, then hit Next.

vcloud director admin user info resized 600

16.) Fill in a unique system name and installation ID, then hit Next.

vcloud director system name ID resized 600

17.) Verify your settings are correct, then hit Finish.

vcloud director verify settings resized 600

18.) You’ll now be redirected to the login. You can log in using the administrative credentials you specified earlier.

vcloud director login resized 600

19.) You should now see a screen similar to the one below.

vcloud director login dash portal resized 600

Congratulations! You’re now ready to start configuring your vCloud Director environment, which I’ll cover in an upcoming post. Stay tuned!

cta-engineers-customize

Our engineers customize
IT solutions for your business

The best hardware, software and cloud computing solutions are nothing without expert design and implementation.

Our team becomes your team. We take the time to understand your business needs first, and tailor high performance systems specifically for you.

Learn more
Live Chat Support Software