Friday, May 16, 2014

vSphere Connected to vCloud Hybrid Services

I am inquisitive by nature, I think as technologist, most of us like to figure things out. As Albert Einstein said, "I have no particular talent. I am merely inquisitive." So with that perspective, I wanted to see if I could take the vSphere lab that is running on my notebook and connect it to my vCloud Hybrid Services (vCHS) account.

The nested lab on my notebook consists of the two ESXi 5.5 Advanced hosts, vSphere Appliance 5.5 with the vCHS plug-in, vCenter Operations Manager Advanced 5.8, vCloud Connector Server, vCloud Connector Node, and a couple of other virtual machines. All the virtual machines I have running on my notebook are virtual appliances to reduce overhead.

My notebook is a late 2013 MacBook Pro with 2.6 GHz Intel Core i7 processor, 16 GB of 1600 MHz DDR3 memory, and the NVIDIA GeForce GT 750M 2048 MB. For the most part, it handles everything I have in my lab environment without an issue.

Additionally, I have a vCloud Hybrid Service account with a Virtual Data Center that has 10 GHz of CPU, 20 GB of memory, and 2 TB of storage.

In the diagram below, you can see to make the connection from an enterprise data center to vCloud Hybrid Services you need both a vCloud Connector Server and vCloud Connector Node. You can download vCloud Connector 2.6.0 from the VMware Dowloads page. The vCC server is 1.3 gigabyte and the vCC node is 912 megabytes.

After you have deployed the vCloud Connector Server and vCloud Connector Node, you log into the Connector Node by going to https://<vCC Node IP>:5480/ from your web browser. There are four tabs, we want to go to the Node tab which displays the Cloud Registration screen. For the Cloud Registration, you will select the Cloud Type of vSphere and then enter in the Cloud URL, which should be your vSphere host server.

Next, we log onto our vCloud Connector Server. First, we will register our vCloud Connector Server with the vSphere Client. This can be found under the Server tab, click on the vSphere Client button. You will enter the vCloud Connector Server URL and relevant vCenter Server information.

Now we are going to register our vCloud Connector Node and our vCHS Offline Data Transfer (ODT) node. Like before, we want to go to the Node tab which displays the Cloud Registration screen. You register the vCloud Connector Node by selecting a display name, the Node URL, selecting the Cloud Type of vSphere, and then entering in the privileged account information.

Now comes the part that isn't very intuitive, we need to register the vCHS Offline Data Transfer (ODT) node. But where do you find the Node URL? Log onto your vCloud Hybrid Services account, in the Dashboard double-click on the Virtual Data Center to bring up the details page. On the right hand side of the page you will see vCloud Director API URL under Related Links, you want to copy the https://<vCD.vCHS.Info>.com, you do not need to copy the entire string.

You then register the vCHS Offline Data Transfer (ODT) node, make sure that when you are adding the Node URL that you include :8443 at the end of the string. Under Cloud Credentials, select vCloud Director and choose the VCD Org Name from your vCloud Hybrid Services account, in my case the name is ouwant-a-tam2.

Registration is completed, we should have established the connection between our vSphere environment and our vCloud Hybrid Services Virtual Data Center. Open up the vSphere Client, you should have an icon for vCloud Connector under Solutions and Applications, double-click the icon to access the vCloud Connector Console. You will see that both your vSphere environment and your vCHS clouds are available.

In vCloud Hybrid Services, you need to create a catalog as a destination for your transferred virtual machines. Switch to the VMware vCloud Director interface, under Catalogs, click on the Add Catalog button. As you can see in the diagram below, I have created a catalog called Cloud Transfer under My Organization's Catalogs.

Provide a Name and Description for the Catalog, keep the default for Select Storage Type, select Everyone in the organization with Full access for the access level, and then click Finish.

To move a virtual machine from your vSphere environment to vCHS, make sure that the virtual machine is powered down, it should show as Stopped in the Status column; and then click on the Copy button that is indicated in the picture below.

You are going to select your cloud target, which in this case is vCHS, create a name for the resource being copied, and then select the target catalog to send the virtual machine. For our example, I am going to select Cloud Transfer which is the catalog I created earlier.

After you have chosen your target VDC, there are three deployment options available, check the options you want during your deployment.

After you have reviewed the information, click the Validate button and vCloud Connector will validate the transfer and provide any warnings if there are issues. When the validation is complete, click the Finish button to start the transfer. You will see the transfer happening in the right hand panel under Tasks.

And there you have it, my vSphere lab on my MacBook Pro sending virtual machines to vCloud Hybrid Services.

News: Top vBlog 2016 Trending: DRS Advanced Settings