Hybrid cloud helps to scale the company's resources at the expense of the service provider’s capacity. The cloud provider is accessed when it is necessary to quickly obtain additional computing resources, for example, during the delivery of financial statements. External resources will be useful for remote storage of backups. In the cloud service provider, you can also configure replication and automatic recovery of virtual machines in the event of an emergency on the main site.
In this and the next posts we will tell about the solution of these problems using a hybrid cloud based on VMware.
Today we will talk about
VMware vCloud Connector - a solution for managing a distributed virtual infrastructure from a single interface.

')
What it is?
VMware vCloud Connector helps you create a hybrid cloud based on the local virtual infrastructure and cloud service provider resources. With this solution, the owner of the hybrid infrastructure will be able to manage virtual machines located in different infrastructures in one interface:
- move disabled virtual machines, vApp containers, vApp templates from one infrastructure to another;
- turn the machine on and off;
- manage virtual machines through the console;
- synchronize directories;
- expand virtual data center with remote infrastructures through VXLAN technology (available if vSphere Distributed Switch is installed in the vSphere infrastructure not higher than version 5.1.);
What does vCloud Connector consist of?
vCloud Connector Node (vCCN) is a server responsible for transferring data from one virtual infrastructure to another. It is installed in all infrastructures that connects vCloud Connector. If we combine the local vSphere and the public cloud based on the vCloud Director, then we deploy the vCloud Connector Node in each of these infrastructures. One vCloud Connector Node is installed on one organization in vCloud Director.
vCloud Connector Server (vCCS) is a management server that controls the vCloud Connector Nodes nodes. Deployed inside the infrastructure from which we will connect to the service provider cloud.
vCloud Connector Client (UI) - management interface. It will have a list of virtual machines from all the infrastructures connected to vCloud Connect.
Workflow of vCloud Connector on the example of vSphere-based infrastructure and vCloud Director-based public cloud1. In the management interface, the user gives the command to transfer the vApp to the external infrastructure.
2. vCloud Connector Server addresses this command to vCloud Connector Nodes.
3. vCloud Connector Node via the VIM API sends a command to the vCenter Server to export data.
4. During export, the following processes run in parallel:
- data is transferred from storage to the vCloud Connector Node cache on the internal infrastructure side.
- data is transferred from the internal infrastructure vCloud Connector Node to the external infrastructure vCloud Connector Node.
- vCloud Connector Node on the side of the external infrastructure via the vCloud Director API sends a command to import.
- data is transferred from the vCloud Connector Node cache to the vCloud Director transfer store.
5. vCloud Director gives the command vCenter of external infrastructure to import data.
6. Data from the vCloud Director transfer storage is transferred to the vCenter of the external infrastructure. After that, vApp becomes available in the vCloud Director directory.
Installation Instructions
In this guide, we will show how to deploy the vCloud Connector if you want to integrate into a vSphere infrastructure and resources in a vCloud Director-based public cloud.
1.
Access rights. Accounts in vSphere and vCloud Director must have administrative rights.
2.
Ports . For correct interaction between vCloud Connector Server and vCloud Connector Node, the following ports must be open in the Firewall:
- 443 port for interaction between vCloud Connector Server and vCloud Connector Node, between the vCloud Connector Node nodes themselves, if SSL protocol support is
enabled .
- port 80 for interaction between vCloud Connector Server and vCloud Connector Node, between the vCloud Connector Node nodes themselves, if
the SSL protocol is
disabled .
- Port 5480 for logging into the vCloud Connector Server web interface and vCloud Connector Node.
We deploy vCloud Connector Server in the internal infrastructure (vSphere)
1.
Download and deploy the vCloud Connector Server template.

2. Set the network parameters of vCloud Connector Server and click
Next :
- Default Gateway - standard gateway;
- DNS - DNS server addresses separated by commas;
- Network 1 IP address - internal IP address
- Network mas k - subnet mask, for example, 255.255.255.0;

3. Check all settings and click
Finish .

4. The vCloud Connector Server virtual machine appears in the vSphere Client interface. For further configuration, select the virtual machine and click on the
Power On icon.

5. In the console that opens, you will see the login information for the vCloud Connector Server web interface: URL, login and password.
In the
Internet Explorer browser, enter the specified address and log in.

6. From the main page, go to the subsection
Time Zone and adjust the settings.

7. Adjust the host name if necessary. Check the correctness of the network settings section
Network - Address .

8. Change the password in the section
Server - General .

9. If necessary, activate the SSL certificate.
Here is a detailed description of what to do.

10. To register the vCloud Connector Server with the vSphere Client, go to the Server-vSphere Client section. We register:
- vCloud Connector Server URL - you can use an IP address or domain name;
- The IP address or domain name of the vCenter Server;
- username and password of a user with administrator rights in vCenter;
- If you have previously registered vCloud Connector Server with vCenter, but you want to register a new server, check the Overwrite existing registration box.
The tab with the control panel vCloud Connector Server is not closed. She still useful.

11. After installing vCloud Connector Server, the
vCloud Connector UI icon appears in the vSphere Client interface. Through this interface, you will manage the virtual machines in both infrastructures.

We deploy vCloud Connector Node in the internal infrastructure (vSphere)
1.
Download and deploy vCloud Connector Node by analogy with vCloud Connector Server. The result is a virtual machine with the following parameters:

2. Run the vCloud Connector Node virtual machine: select and click on
Power On .

3. Using the URL and credentials, we connect to the vCloud Connector Node administration panel.

4. Configure Time Zone similarly with vCloud Connector Server. In the
Network - Address section we check the network settings.

5. Change the password in the
Node - General section.

6. We register vCloud Connector Node in vSphere infrastructure in the
Node - Cloud section.

7. Return to the vCloud Connector Server panel. In the Nodes section, register the created vCloud Connector Node. Click
Register Node .
Set the name, external IP-address or domain name (Node URL).
In the
Cloud Credentials block, select the vSphere and enter the account administrator.

8. The registered vCloud Connector Node appears in the list.
Important points when creating vCloud Connector Node:• If an internal address is configured on vCloud Connector Node (RFC 1918), then you need to pre-configure NAT (
instructions for vCloud Director)
• Disk size vCloud Connector Node 40 GB. If you plan to move virtual machines with a large disk between the two infrastructures, additionally expand the disk with vCloud Connector Node.
Here are instructions on how to do this.
• If a large bandwidth channel is configured between the vCloud Connector Node of the two infrastructures, then enable the UDT protocol and, if necessary, encryption (Encryption).

We deploy vCloud Connector Node in an external infrastructure (vCloud Director)
1. Add a template to your organization from the Public Catalog and deploy.

2. Set a name, description and select a virtual data center. Click
Next .

3. Select the type of storage.

4. Set the
IP Static-Manual selection mode.

5. Set the network parameters of the virtual machine.

6. On the
Customize Hardware tab, we recommend not changing anything when the virtual machine is deployed. This can be done later.

7. On the Ready to Complete tab, we check once again all the parameters and click
Finish .
8. After creating the virtual machine, click on it with the right mouse button and go to
Properties - Hardwar e. In the
NICs block
, we tick the
Connected box and once again register the IP address.

9. Run vCloud Connector Node on the vCloud Director side.

10. We make the same settings (time zone, network, password) as for the vCloud Connector Node on the vSphere side.
We register vCloud Connector Node in the Node section.

11. We register the second vCloud Connector Node server with vCloud Connector Server.

Connect to the "public" vCloud Connector Node (vCloud Director)
Usually vCloud Connector Node is deployed at the level of its organization. Your provider can deploy vCloud Connector Node at the level of the entire vCloud Director. In this case, you do not need to deploy anything in your organization. It remains only to register this "public" Node with vCloud Connector Server.
The procedure is the same as when registering ordinary Node, just be sure to tick the
Public .

We register vCloud Connector Nodes in the interface vCloud Connector
1. Go to the vSphere Client interface and click on the vCloud Connector icon.

2. We register vCloud Connector Node from an internal infrastructure (vSphere).

3. We register vCloud Connector Node from an external infrastructure (vCloud Director). In this case, we used vCloud Connector Node, which we installed independently in our organization.

4. To speed up the process, click on Reload.

vCloud Connector is ready to go. In the
next post we will explain how to move virtual machines between infrastructures, synchronize directories and work with VXLAN.