Building vCloud Suite POC – Part 9: Move VM to the Cloud

In the previous part we’ve deployed and configured all vCloud Connector components needed to move virtual machines to the cloud infrastructure. But there is one more thing that needs to be configured before a virtual machine can actually be moved from one environment to another and that is adding the vCloud Connector Nodes to the vCloud Connector UI. Please note that only the environments whose nodes are registered with the vCloud Connector Server will be available in the UI.

Add Nodes to vCloud Connector UI

  1. Open the vSphere Client and connect to the vCenter Server where the vCloud Connector plug-in is enabled.
  2. From the Home page, scroll down to Solutions and Application and click the vCloud Connector plug-in.P9-S1-Plugin
  3. Select the Clouds link under the Browser menu on the left and click the green plus sign to add a cloud.
  4. In the Add Cloud Wizard, select one of the nodes from the pull down menu, enter the appropriate username and password and click Add.P9-S2-Nodes
  5. Repeat step 4 for the other node. If the second node is the node pointing to the vCloud Director, use the credentials of the Organization Administrator to log in if you receive an authentication error.
  6. When all vCloud Connector Nodes are added, you can browse the content of each node. You should end up with something similar like the picture below.P9-S3-Browse

The nodes are added and set up at this point so we can now proceed to the next step.

Move VM to Cloud

Please note that when you copy a virtual machine to a vCloud Director cloud, the virtual machine is copied as a vApp template. When the virtual machine is copied, you can use the deployment options to automatically deploy a VM from the copied vApp template.

  1. With the vCloud Connector UI still open, browse to the virtual machine you want to move to the cloud environment.
  2. If the virtual machine is running, you have to stop it first. You can do this from the vCloud Connector UI by selecting the VM and clicking the Power Off option from the Actions pull down menu.P9-S4-PowerOff
  3. When the status of the VM reads Stopped, select the VM and from the Actions pull down menu select Copy.
  4. In the Copy Wizard, select the target destination, in my case the organization in the vCloud Director. Provide a name, description and select the catalog you want to use for the vApp.P9-S5-Copy1
  5. Next, select the resource. In my case, this will be my Organization. Click Next.
  6. In the Deployment Options, you can choose if you want to deploy the vApp after it is copied. If so, than you must select the network configuration from the pull down menu. You can also choose if you want to power on the vApp and if you want to remove the vApp template from the catalog.P9-S6-Deploy
  7. Review the settings in the summary windows and press Finish to start the copy process.
  8. You can monitor the progress from the Tasks menu. Depending on the size of the virtual machine being copied, this process can take a while.P9-S7-Tasks

Done! The new vApp should be up and running when the copy process completes. Check the network configuration and adjust if necessary. At this point you can start adding more virtual machines to your cloud or deploy them from the template.

This concludes the vCloud Connector part of the vCloud Suite. Continue to part 10 where we will deploy the vCenter Chargeback Manager which will allow us to create reports on resources used in the cloud.

Cheers!

– Marek.Z

Be the first to comment

Leave a reply...