Hybrid cloud is the ability to quickly expand existing computing power at the expense of cloud provider resources, transfer loads from the local infrastructure to the cloud, migrate virtual machines to the cloud of the IaaS provider and back. Today, more and more of our cloud projects are running exactly in the hybrid cloud model.
A few words about VMware vCloud Connector
This tool allows you to combine public clouds (vCloud Director), as well as remote and local infrastructures based on vSphere, with the ability to manage them as a whole. Using a single user interface, you can connect to several cloud platforms at once, start and stop virtual machines while checking their performance. And in addition to transferring virtual stations between the clouds, you can transfer virtual containers (vApps), templates (Templates) and perform many other actions typical of hybrid cloud environments.
')

vCloud Connector allows you to combine into a hybrid cloud a combination of different types of bundles of cloud and local infrastructures.
For example:
- A bunch of local vSphere infrastructure with a vCloud Director public / private cloud.
- A bunch of private and public vCloud Director clouds.
- A bunch of local vSphere infrastructure with a remote vSphere infrastructure.
- A bunch of two private vCloud Director clouds.
Let us analyze the following scenario of the hybrid cloud using the example of
the “IT-GRAD” cloud .
Using vCloud Connector to bundle local infrastructure (vSphere) and IaaS public cloud provider (vCloud Director)
We need to combine our site with the IT-GRAD cloud to expand our existing infrastructure and copy virtual machines. For convenience, instead of vSphere, we will use the vCenter Server Appliance and virtual ESXi, in which we will create a virtual data center. This vSphere will act as our local site where the company's virtual machines are located.
Components vCloud Connector
We will understand what components of vCloud Connector we have to work with.
- The vCloud Connector UI (often referred to as the vCloud Connector Client) is a user management interface that integrates into the vSphere Client management environment.
- vCloud Connector Server is a management server. Coordinates vCloud Connector activity, controls vCloud Connector Nodes nodes. As a rule, one vCloud Connector Server is required to connect multiple cloud infrastructures.
- vCloud Connector Node is a tool by which the redirected data flow from one cloud to another is processed. Using vCloud Connector Node connects to the final infrastructure. It is installed on at least two (or more) parties.
Now we will schematically display our script.

It turns out that to deploy a hybrid cloud, on the client side, you need to deploy and configure:
- vCenter Server Appliance, virtual ESXi,
- vCloud Connector Server,
- vCloud Connector Node.
On the side of IT-GRAD, vCloud Connector Node has already been deployed.
What the network topology looks like before deploying a hybrid cloud.

vCenter Server Appliance
vCloud Connector is available as a plugin for vCenter Server. Therefore, we will use the virtual vCenter Server, which will be available during the installation of the vCenter Server Appliance. You can also connect to it using the vSphere Client (this will be necessary to manage the hybrid cloud).
The vCenter Server Appliance is a virtual module that is a ready-made virtual machine with a Linux OS installed that implements all the necessary services similar to VMware vCenter Server.
In the client infrastructure, deploy the vCenter Server Appliance, vCloud Connector Server, and vCloud Connector Node.

Create a new client-side vApp

Next, we will perform the following steps (these actions are discussed in more detail in
this article ).
- Connect to vCloud Connector Server Client.
- Connect to vCloud Connector Node client.
- We register the vCloud Connector Node in the vSphere client.
- We register the vCloud Connector Node with the vCloud Connector Server on the client side.
- We register vCloud Connector Node IT GRAD with vCloud Connector Server on the client side.

To connect the two infrastructures and build a hybrid cloud, we will register the already-deployed IT-GRAD vCloud Connector Node on the company's side with the vCloud Connector Server on the client’s company's side. This is how the client company’s vCloud Connector Server console looks after the registration steps have been completed.

- Next, register the vCloud Connector with the vCenter Server Appliance
Connecting external cloud to a hybrid cloud
Now, the registered vCloud Connector plugin is available in the vSphere Client management console, in the Administration panel (Administration) in the Solutions and Applications section.

Click on the vCloud Connector icon, after which the cloud infrastructure control panel opens. Using the “+” button, you can connect the vSphere clouds / infrastructure registered in the vCloud Connector Server.


Using the vCloud Connector console, you can get information about any connected cloud / infrastructure.

In vCloud Connector, you can view the contents of the cloud infrastructure, whether it is based on vSphere or vCloud Director. Moreover, the content is divided into three categories: templates, virtual containers (vApps), virtual machines.
Copying virtual machines between clouds, inside a hybrid cloud
Using vCloud Connector, you can copy any type of object from one site to another. Recall that according to the scenario, the client’s company needs to expand its local infrastructure into the public cloud of the IT-GRAD provider. The remote site will be used to store part of the virtual machines. Let us consider in practice how a single virtual machine is copied. To do this, from the client’s company side, go to the “virtual machines” tab and select the required object. Before making a copy, the machine must be turned off by pressing the Power Off button. Next, run the copy wizard.

In the window for selecting the target site, we indicate the public cloud of the company IT-GRAD, set the name of the template, as well as indicate the directory in which the object will be placed. Click the "Next" button.

After we specify the virtual data center

In the
Ready to complete window, when you click the validation button, you can perform a check that allows you to evaluate the ability to copy the selected item. If a warning message is displayed during validation, pay special attention to this. Before you start copying, you must fulfill all relevant requirements. Otherwise, the execution of the procedure itself may end in errors or not be executed at all.

In the task section you can always track the status of the action taken. We are interested in the success of the procedure for copying a virtual machine template. To do this, go to the task and see the status. As you can see in the figure below, the copying of the object was successful.

Using the search function you can find the copied object. Enter the value vm1 in the search string, this is the name of the template being copied.

We will use the found virtual machine template for further deployment. To do this, go to the templates and start copying. In the wizard window that opens, you must specify the name of the object, and to complete the picture fill in the "Description" field.
Next, a virtual data center is selected and the network configuration is determined.

In the readiness window, you can view summary information about the deployment object.

To determine the success of the deployment of an object based on a template, go to the already familiar taskbar (Tasks). The status of the deployment task from the template is “completed”.

For greater reliability, we switch to the IT GRAD cloud, go to the virtual machine section and find the newly created object.

The virtual machine was successfully copied from our local vSphere infrastructure to the public cloud IT-GRAD.
In more detail how to create hybrid clouds and work with them, we will tell on pages of the
first blog about corporate IaaS.