📜 ⬆️ ⬇️

We work with a hybrid cloud: VMware vCloud Connector, part 1

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.

image
')

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:


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.

image
Workflow of vCloud Connector on the example of vSphere-based infrastructure and vCloud Director-based public cloud
1. 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:

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.
image

2. Set the network parameters of vCloud Connector Server and click Next :

image

3. Check all settings and click Finish .
image

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.
image

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.
image

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

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

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

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

10. To register the vCloud Connector Server with the vSphere Client, go to the Server-vSphere Client section. We register:

The tab with the control panel vCloud Connector Server is not closed. She still useful.
image

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.
image

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:
image

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

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

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

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

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

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.
image

8. The registered vCloud Connector Node appears in the list.
image

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).
image

We deploy vCloud Connector Node in an external infrastructure (vCloud Director)



1. Add a template to your organization from the Public Catalog and deploy.
image

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

3. Select the type of storage.
image

4. Set the IP Static-Manual selection mode.
image

5. Set the network parameters of the virtual machine.
image

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

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.
image

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

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.
image

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

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 .
image

We register vCloud Connector Nodes in the interface vCloud Connector



1. Go to the vSphere Client interface and click on the vCloud Connector icon.
image

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

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.
image

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

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.

Source: https://habr.com/ru/post/306904/


All Articles