11.5 Discovering vSphere Hosts and VMs

After you configure the vSphere Provisioning Adapter and it is running on the Orchestration Server, you can discover the vSphere hosts and the VMs on them.

11.5.1 Running Discovery for a vSphere Environment

Discover the VM images on the vCenter Server and populate the Orchestration Console Explorer tree.

  1. From the main menu, select Provision > Select VM Hosts and Repositories to display the Discover VM Hosts and Repositories dialog.

  2. In the Discover VM Hosts and Repositories dialog, select the vsphere job, then click OK.

    HINT:Ensure that this job completes before proceeding to Step 3: Repositories where VMs might reside must be discovered prior to any attempt to discover VM images residing there.

  3. From the main menu, select Provision > Discover VM Images to open the Discover VM Images dialog.

  4. In the Source Repositories table of the Discover VM Images dialog, select the repositories where vSphere images are stored, click Add to move the repositories to the Target Repositories table, then click OK to run the image discovery.

11.5.2 Running Discovery for Multiple Resource Environments

Discover the vSphere hosts and repositories in each vCenter Server environment, and then discover the VMs on them to populate the Orchestration Console Explorer tree.

  1. From the main menu, select Provision > Select VM Hosts and Repositories to display the Discover VM Hosts and Repositories dialog.

  2. In the Discover VM Hosts and Repositories dialog, select the vsphere job, then click OK.

    When you perform this discovery action, the Orchestration Server runs jobs that discover the VM hosts, repositories, and networks in each of the vSphere environments. On each discovered object, the server also generates a *.vsphere.vcenter fact that contains a vCenter ID from the hosting vSphere environment.

    After the objects are discovered in the vSphere environments, you can use the Orchestration Server to discover existing VMs in those environments.

    HINT:Ensure that this job completes before proceeding. Repositories where VMs might reside must be discovered prior to any attempt to discover VM images residing there.

  3. From the main menu, select Provision > Discover VM Images to open the Discover VM Images dialog.

    The Orchestration Agent discovers all of the VMs managed in the vSphere environments and places them in the Orchestration model for you to manage.

  4. In the Source Repositories table of the Discover VM Images dialog, select the repositories where vSphere images are stored, click Add to move the repositories to the Target Repositories table, then click OK to run the image discovery.

When a VM with a given name is discovered in two different vSphere environments, the second VM discovered is named in the form of VMNAME_VCENTERID, rather than named by appending an incremental number, as explained above. As with other such object names that are automatically generated, these VM names can be changed. See Resource Object Naming and Renaming in the Cloud Manager Administrator Reference.