0

vCloud Director Series Part 6 # Installing vShield

While installing vCloud Director you have to install vShield and this is very important Component, which you have to install on Every ESXi host.

“One vCloud Networking and Security server is needed for each vCenter Server system. vCloud Networking and Security servers provide network security services and automatically deploy VMware vShield virtual appliances on demand from vCloud Director.”

Now we will see how to install vShield into vCenter Server.

1. First download vShield OVF from vmware website. (www.vmware.com)
2. Open vCenter Server and go to Deploy ovf option, options are different if you are using WebClient.

3. Locate the OVF file and Create a VM

4. it will validate the OVF and provide rest of the Information

5. Accept the EULA

6. Provide Virtual Machine name and location

7. Select the Datastore where vmdk will be stored for this VM.

8. Select the Provision

9. Provide Virtual Machine Network

10. Provide password for Web UI or CLI of vShield Manager

11. On Summary page click finish.

12. Once the installation finish you will get this message.

13. Power ON the Virtual Machine and login into it.

14. Type Setup and need to do setup like IP address and basic to use the same.

15. After that reboot the appliance/VM and open Web browser and type the IP address which you provide while setup vShield.
Note: it will give you Certificate warning click to continue and after that it will give you login screen.

16. Here you have to provide user name and password for vShield to login: Default user name and password vShield is: admin and password :default

Note: your system must have updated adobe flash player.

 

17. After login First task is adding vCenter Server. Under Lookup Service you can see vCenter click on Edit and provide your vSphere/vCenter server information.

 

 

18. After Successfully connecting you will be able to see vCenter Server inventory on the left hand side.

 

0

vCloud Director Series Part 5 # Installing VDC on Redhat

After installing Redhat OS it’s time to install VDC but before that you have to copy the vmware-vcloud-director-5.5.2-xxxx.bin.

1. Need to download WINSCP software and open the console of VDC server

2. Copy the vcloud software in prep folder which we created earlier.

3. Here the list of software under prep directory.

4. Now start installing vcloud software by using below command.

[root@vcd prep]# ./vmware-vcloud-director-5.5.2-xxxx.bin

But before that you need libXdmcp.rpm and required rpm

Required software packages

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

5. During installation i am getting above error, So how to install missing rpm.

6. Open the Redhat ISO file and copy the “Package” folder from that ISO file, Copy the package with the help of WINSCP into prep folder.

7. After that run the below command.

8. After installing rpm we can start installing vcloud director software but before that we have to clean the previous installation by using below command.

[root@vcd ]# rpm -e vmware-vcloud-director

9. Now start installing vcloud director.

[root@vcd prep]# ./vmware-vcloud-director-5.5.2-xxxx.bin

Now you will not get that error.

10. It will start installing.

11. During installation you have to provide the Certificate.ks and below details like IP address for HTTP Service IP and

 

12. and IP Proxy Server IP

13. Provide Password for Certificate.ks which we generated earlier.

14. Also Provide Database Details Which Database you want to use like Oracle or Microsoft

0

vCloud Director Series Part 4 # Generate Certificate for VDC

While installing VDC it will ask you to provide Certificate file with extension .ks. So need to Generate the Same by using Redhat Linux Server which we installed in Part 2.

1. Login into Server with root and password.
2. Create a Directory with any name, i am using prep
3. [root@vcd ~]# mkdir prep
4. After that provide the below command to generate the Certificate

Command 1: keytool -keystore certificates.ks -storetype JCEKS -storepass password -validity 9999 -genkey -keyalg RSA -alias http

In above command -storepass password is the password which you have to provide and need to provide while installing VDC.

During installation you have to provide details as you can see in below screen shot.

Command 2: keytool -keystore certificates.ks -storetype JCEKS -storepass password -validity 9999 -genkey -keyalg RSA -alias consoleproxy

0

vCloud Director Series Part 3 # Installing Database for VDC

Database is very important component for vCloud Director. It works like vCenter server database and vCloud Director cells use a database to store shared information.

Note: Before start installing VDC this database must exist and configured for vCloud Director software.

Supported vCloud Director databases

vCloud Director supports Oracle and Microsoft SQL Server databases. The most current information about supported databases is available from the VMware Product Interoperability Matrixes. ( KB 2059451 )

First we will see how to install Microsoft SQL Server 2008 R2.

1. Download the SQL Server server setup from Microsoft Website.
Link to Download: https://www.microsoft.com/en-in/download/details.aspx?id=30438

2. You can use Separate Server for the database other than vCenter Server ( Never install SQL with vCenter Server )

3. Before that check the required component like .Net 4.0 version and install the same from Server Roles & Features

4. Run the Setup to start installing.

 

Accept the Agreement and Click next.

5. Select the Features here and click next.

6. It will go to Next option Installation Rules.
7. After that it will give you option for Instance Configuration, Here you have two options like Go with Default either Provide a Name as per your Organisation. ( I will go with Default )

8. It will give you details about Disk Space requirement.
9. Under Server Configuration it will give you Option to choose or Configure Service Account for SQL Services.

Note: User either Service account or Domain Account with Admin Rights.

10. vCloud Director will work with Mixed Mode Authentication only, it will NOT work with Windows Authentication.

Provide Password for sa account
11. Choose Error reporting if you wise to send logs to Microsoft.

12. After that it will start installing.

13. After Successfully installation you will get below screen.

14. To access SQL server so that you will be able to run or create user etc. You need Console Microsoft SQL Server Management Studio (SSMS). I am using 2016 Server.

Download it From Microsoft Website.
Link to download : https://msdn.microsoft.com/en-us/library/mt238290.aspx?f=255&MSPPError=-2147217396

15. Download it and start installing.

 

16. After installation Open the Console to access SQL Server.

17. Provide the SQL Server Name and Provide User name and password to login into database server.
Once you enter into Database Server Need to do Below Task.

Run these Commands in the SQL Query and Execute. ( https://pubs.vmware.com/vcd-51/index.jsp#com.vmware.vcloud.install.doc_51/GUID-C3C2E2DA-D760-413A-AA8A-A4BC674C068F.html )

Procedure
1
Configure the database server.
A database server configured with 16GB of memory, 100GB storage, and 4 CPUs should be adequate for most vCloud Director clusters.
2
Specify Mixed Mode authentication during SQL Server setup.
Windows Authentication is not supported when using SQL Server with vCloud Director.
3
Create the database instance.
The following script creates the database and log files, specifying the proper collation sequence.
USE [master]
GO
CREATE DATABASE [vcloud] ON PRIMARY
(NAME = N’vcloud’, FILENAME = N’C:\vcloud.mdf’, SIZE = 100MB, FILEGROWTH = 10% )
LOG ON
(NAME = N’vcdb_log’, FILENAME = N’C:\vcloud.ldf’, SIZE = 1MB, FILEGROWTH = 10%)
COLLATE Latin1_General_CS_AS
GO
The values shown for SIZE are suggestions. You might need to use larger values.
4
Set the transaction isolation level.
The following script sets the database isolation level to READ_COMMITTED_SNAPSHOT.
USE [vcloud]
GO
ALTER DATABASE [vcloud] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [vcloud] SET ALLOW_SNAPSHOT_ISOLATION ON;
ALTER DATABASE [vcloud] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT;
ALTER DATABASE [vcloud] SET MULTI_USER;
GO

For more about transaction isolation, see http://msdn.microsoft.com/en-us/library/ms173763.aspx.
5
Create the vCloud Director database user account.
The following script creates database user name vcloud with password vcloudpass.
USE [vcloud]
GO
CREATE LOGIN [vcloud] WITH PASSWORD = ‘vcloudpass’, DEFAULT_DATABASE =[vcloud],
DEFAULT_LANGUAGE =[us_english], CHECK_POLICY=OFF
GO

CREATE USER [vcloud] for LOGIN [vcloud] – Provide Password as per your organisation Standard.
GO
6
Assign permissions to the vCloud Director database user account.
The following script assigns the db_owner role to the database user created in Step 5.
USE [vcloud]
GO
sp_addrolemember [db_owner], [vcloud]
GO

 

 

 

Under Database settings you will be able to see vcloud database.

0

vCloud Director Series Part 2 # Redhat Installation for VDC

Create a Machine (Virtual Machine or Physical Machine) for VDC with Redhat OS. Guest OS supported for VDC ( https://pubs.vmware.com/vcd-51/index.jsp?topic=%2Fcom.vmware.vcloud.install.doc_51%2FGUID-C258BED7-9664-4DFE-B812-100281D4D460.html )

1. First Download the Redhat Enterprise 6.2 from official Website.

Supported vCloud Director operating systems ( KB 2059451 )

CentOS 6 (64-bit) Update 4
CentOS 6 (64-bit) Update 5
Red Hat Enterprise Linux 5 (64-bit) Update 4
Red Hat Enterprise Linux 5 (64-bit) Update 5
Red Hat Enterprise Linux 5 (64-bit) Update 6
Red Hat Enterprise Linux 5 (64-bit) Update 7
Red Hat Enterprise Linux 5 (64-bit) Update 8
Red Hat Enterprise Linux 5 (64-bit) Update 9
Red Hat Enterprise Linux 6 (64-bit) Update 1
Red Hat Enterprise Linux 6 (64-bit) Update 2
Red Hat Enterprise Linux 6 (64-bit) Update 3
Red Hat Enterprise Linux 6 (64-bit) Update 4
Red Hat Enterprise Linux 6 (64-bit) Update 5

2. After that create Virtual Machine and boot from this ISO.

 

3. Follow the Steps while installing.

4. Select the Language as per your Region

5. Select Basic Storage

 

 

 

 

 

6. Provide root Password (Strong password is recommended)

7. Replace Existing Linux System

8. Select Server Type for which purpose you want to use it.

 

 

9. After installation Redhat is ready for VDC.

10. Now Start the Server to do Configuration the VDC.

11. Login with root and type “ setup “ After that it will prompt you with given option

12. First Off the Firewall by clicking spacebar on that option.

13. Now do the setup for NIC card like IP address

14. Go to “ Device Configuration “

15. VDC Required Minimum 2 NIC otherwise VDC installation will be fail.

 

During Virtual Machine Creation i Provided One Nic but after that added 2 NIC Card.

16. Here you have to provide Static IP address.

17. Configure the DNS setting aswell.

18. After that you have to Edit the cfg file for NIC0, NIC1.

Run the below command
[root@vcd ~]# ls

It will give you list of all files. Here you have to edit specific file for NIC0, NIC1

[root@vcd ~]# ls

ifcfg-nic0
ifcfg-nic1

[root@vcd ~]# vi ifcfg-nic0

First Press “ i “ without inverse for insert and then go to ONBOOT option and change to YES.
Press Esc : wq and hit enter. ( w = write and q= quite )

Same step you have to repeat for Second NIC.

0

vCloud Director Series Part 1 # Architecture

Now a days cloud is very important for multiple reason: 1. Disaster Recovery 2. OPEX Cost 3. CAPEX Cost 4. Avoiding Hardware Purchase and Maintenance etc…

How Many Solutions Available in Market as a Solution Answer is = Multiple Vender.

I am working on VMware Product for Cloud Solutions and i will create home lab to show a demonstration How to Create vCloud Director Lab.

1. First Thing Need to under stand Architecture

2. Components

3. Required Software ( vCloud Director, Redhat, vShield, Database Server {Oracle, Microsoft SQL}, vCenter Server, ESXi Host )

Image Credit to VMware
Before Creating your Home Lab You Need to Focus on downloading few Softwares. If you are using Windows then use VMware Software Manager to download all the required software.

After that You Need to Understand Design and How you will deploy Server.

Image Credit to VMware

vSphere Architecture

Image Credit to VMware

VMware vCloud Director Architecture

Image Credit to VMware

vCloud Director Web UI

Image Credit to VMware