Building a Private Cloud with vCloud Director-Part 14-Migrating VM from vSphere Infrastructure to private Cloud using vCloud Connector

In our last post  of this series we have learnt what is vCloud connector and what it does.

Now its time to see vCloud Connector in action. In this post we will learn how to migrate a VM from existing vSphere Infrastructure to a private cloud running on vCloud Director.

vCloud Connector has server/node type architecture where there will be one server and one node for each type of cloud. Also we require a node to be deployed for vSphere Infrastructure.

In my last post Installing/Configuring vCloud Connector I have deployed a server and also a node for my vSphere infrastructure. After that we have to deploy a new node for the private cloud (running on vCloud director)

I have already deployed the same and in below screenshot you can see one node by the name “vCC-Node-Pri Cloud”

vcc-p1

Also I have registered this node with my vCloud Director instance

vcc-p2

On vCloud Connector Server I have added the newly added node which is registered with vCloud Director

vcc-p3

I can see both my node (for vSphere and vCloud director) listed here

vcc-p4

Now login to vCenter Server using VI client and from home page click on vCloud Connector to launch below page. Click on + button to add a cloud.

vcc-p5

From the drop down menu select the cloud name which you have specified in vCloud Connector server. In my case I used the name Private-Cloud.

Add the credentials which will be used to authenticate against the organization which is created in vCloud director.

vcc-p6

Now I can see both my cloud (vSphere-Infra and private cloud) have been added to vCloud connector. We are all set to go now.

vcc-p7

Select the cloud that is associated with your vSphere and select “Virtual Machines” tab to list the VM’s present on vSphere.

Note: Before migrating a VM from vSphere to vCloud using vCC 2 things we have to keep in mind:

a: VM should be in power-off state and the VM state should be reporting as stopped in vCC UI

b: There should not be any media attached to the VM

In my lab I am going to migrate a VM named “Server 2003”

vcc-p8

Select the VM and click on Actions button to bring the available options and from that list select Copy

vcc-p9

In Select Target Cloud select your Cloud corresponding to your private cloud. Give a name for the VM and optional description.

Also select the Catalog where this VM will be deployed and hit Next.

In my lav I have only one catalog called Dev Test.

Note: VM will be deployed as vApp in this catalog

vcc-p11

Select the Org vDC corresponding to your organization (if you have more than one Org vDC configured under same organization) and hit Next.

vcc-p12

Under Deployment Options  you can select “Deploy vApp after copy” and you have to choose the network for this vApp.

You can also select “Enable Guest Customization” and “Change SID” feature if you want.

Also you can chose a fixed Administrator password for the vApp that will be deployed.

vcc-p13

On Ready to Complete page review your settings and hit validate.

vcc-p14

Once validation is successful you will get a message like shown below. Hit finish to let vCloud connector do the magic for you.

vcc-p15

Under tasks you can see a new task of copying the VM have been started.

vcc-p16

Also you can monitor the import status in vCloud Director we interface.

vcc-p17

You will see some activities in vCenter Server recent Tasks pane

vcc-p18

You  can see the new vApp is being deployed if you select My Cloud option under your organization.

vcc-p19

Also in vCC UI you will see a new VM under your private cloud now.

vcc-p20

Hope this post is informational to you. Share this on social media. Be Sociable!!

Leave a Reply