vCloud Director – a fine product. I really like it. I highly recommend some reading HERE though:
The hardest bit people have difficulties to understand is probably the networking, so definitely worth a good read.
Anyway, this is really for you to get started with vCloud Director 5.5. I assume you already have a vSphere Infrastructure running so I won’t be going through the setup of that (vCenter / DB etc.).
vCloud Director will need either a RedHat 6.x or CentOS 6.x server with two IPs available.
VMware recommend using two individual interfaces rather than two virtual interfaces on one physical interface.
The whole shebang can be found HERE. You will also need a database available, in my case, MSSQL
I am using CentOS 6 and I used the minimal iso. You will need as a minimum the following packages, which can be installed using yum
yum install alsa-lib libICE module-init-tools bash libSM net-tools chkconfig libstdc pciutils coreutils libX11 procps findutils libXau redhat-lsb glibc libXdmcp sed grep libXext tar initscripts libXi which krb5-libs libXt libgcc libXtst
If your vCloud Director Cell is a virtual machine, then you likely need a few more bits in order to install VMware Tools.
A good all-rounder is
yum groupinstall “Development Tools” “Additional Development”
Now if not done, download the binary from vmware.com and upload it to your server.
Make the file executable
[[email protected] home]# chmod +x vmware-vcloud-director-5.5.1-1881717.bin
And execute it – at the end of the install, say n when it asks if you want to run the script now.
[[email protected] home]# ./vmware-vcloud-director-5.5.1-1881717.bin Checking architecture…done
Checking for a supported Linux distribution…Detected CentOS system
done
Checking for necessary RPM prerequisites…done
Checking free disk space…done
Extracting VMware vCloud Director. Please wait, this could take a few minutes…
vmware-vcloud-director-5.5.1-1881717.x86_64.rpm
vmware-vcloud-director-rhel-5.5.1-1881717.x86_64.rpm
done
Verifying RPM signatures…done
Installing the VMware vCloud Director RPMs…
warning: vmware-vcloud-director-5.5.1-1881717.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 66fd4949: NOKEY
Preparing… ########################################### [100%]
1:vmware-vcloud-director-########################################### [ 50%]
2: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
As mentioned – don’t run the configuration script right now. We need to create some certificates first. If your server has Java installed (and keytool), you could do that beforehand, but I just use the tool coming with vCloud Director.
Change into the directory of keytool
[[email protected] home]# cd /opt/vmware/vcloud-director/jre/bin/
We need to create two certificates (here I am creating self-signed ones) – one for HTTP and one for the Console Proxy.
Here change RandomPassword to a secure password of your choice and fill out the details requested
[[email protected] bin]# ./keytool -keystore /home/certificates.ks -storetype JCEKS -storepass RandomPassword -genkey -keyalg RSA -keysize 2048 -alias http
What is your first and last name?
[Unknown]: Mike
What is the name of your organizational unit?
[Unknown]: IT
What is the name of your organization?
[Unknown]: vCrucial Ltd.
What is the name of your City or Locality?
[Unknown]: London
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]: GB
Is CN=Mike, OU=IT, O=vCrucial Ltd., L=London, ST=Unknown, C=GB correct?
[no]: yesEnter key password for <http>
(RETURN if same as keystore password):
[[email protected] bin]#
Do the same for the Console Proxy
[[email protected] bin]# ./keytool -keystore /home/certificates.ks -storetype JCEKS -storepass RandomPassword -genkey -keyalg RSA -keysize 2048 -alias consoleproxy
What is your first and last name?
[Unknown]: Mike
What is the name of your organizational unit?
[Unknown]: IT
What is the name of your organization?
[Unknown]: vCrucial Ltd.
What is the name of your City or Locality?
[Unknown]: London
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]: GB
Is CN=Mike, OU=IT, O=vCrucial Ltd., L=London, ST=Unknown, C=GB correct?
[no]: yesEnter key password for <consoleproxy>
(RETURN if same as keystore password):
[[email protected] bin]#
Now we have the required certificate in /home/certificates.ks
Time to run the configuration script.
[[email protected] ~]# /opt/vmware/vcloud-director/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. 172.16.0.30
2. 172.16.0.33
Choice [default=1]: 1Please enter your choice for the remote console proxy IP address:
1. 172.16.0.33Choice [default=1]: 1
Please enter the path to the Java keystore containing your SSL certificates and
private keys: /home/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: sql.vcrucial.com
Enter the database port [default=1433]:
Using default value “1433” for port.Enter the database name [default=vcloud]: vcloud55
Enter the database instance [Press enter to use the server’s default instance]:
Using server’s default instance name.Enter the database username: vcloud55
Enter the database password:
Connecting to the database: jdbc:jtds:sqlserver://172.16.0.4:1433/vcloud55;socke
…………………..[23]
…………………………………………………………………….[
……………………………………………………………………..
..[102]
…………………………………………………………[66]
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:
https://vcd-01.vcrucial.comWould 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 startStart it now? [y/n] y
Starting vmware-vcd-watchdog: [ OK ]
Starting vmware-vcd-cell [ OK ]The vCD service will be started automatically on boot. To disable this,
use the following command: chkconfig –del vmware-vcd[[email protected] ~]#
This will now take a while to boot up. You can check the log for the progress
[[email protected] ~]# tail -f /opt/vmware/vcloud-director/logs/vcloud-container-info.log
You can use the time now to install Java on your server / PC connecting to the vCloud Interface. Newer versions of Java will require the vCloud URL to be added to your Allowed Sites in the Java Control Panel
The installation itself is done at this stage.
Installation of vCD 5.5 content
1. Installation
2. vShield Manager
3. VXLAN Config
4. Initial vCD Config
5. Create a Provider vDC
6. External Network
7. Create an Organization vDC
8. vShield Edge / Org Network
9. Final Testing
10. Install a second vCloud Cell