6.1 Configuring the vsphere Provisioning Adapter

6.1.1 Configuring the vSphere Provisioning Adapter to Discover VMs

The content of this section includes information to help you configure the vsphere provisioning adapter job, which authenticates to a VMware hypervisor environment and then discovers VMs in that environment.

The information is organized in the following sections:

Initial Configuration

Before you can provision and manage VMs with the vsphere provisioning adapter job, you must perform some initial steps to configure it in order to get it running.

  1. Make sure that the Orchestration Agent is installed and started on a supported host.

    For more information, see Section 2.0, Installing Cloud Manager Orchestration Components.

    If you are installing the agent to a vSphere environment, you can install the agent either locally on the vCenter Server (the vCenter appliance is not supported), or on a dedicated system (virtual or physical) as long as the OS in that system is supported for the Orchestration Agent.

  2. In the Cloud Manager Orchestration Console, log in to the Orchestration Server that you want to use to manage vSphere VMs.

  3. In the Explorer tree of the Orchestration Console, select the Orchestration Server or “grid” object, then select the Authentication tab in the admin view to open the Authentication page.

  4. Create a credential to authenticate to the vCenter Server. In most cases, the credential is for “administrator” account of the Windows machine where the vCenter Server is running.

    1. On the Authentication page, scroll to the Credential Manager (consisting of the Stored Credentials panel and the Stored Certificates panel), then click Add Credential to display the Edit Credential dialog box.

    2. Fill in the fields of the dialog box:

      • Name: Enter a value in that identifies the vCenter Web service to log in to.

      • User: Enter the user name used to connect to the vCenter Web service.

      • Secret: Enter the password of the vCenter Web service user.

      • Type: (Optional) Enter any string that lets you categorize similar credentials into a category or group. For example, for the vsphere provisioning adapter you might enter a “type” called vsphere.

      For more information, see Authentication Page in the NetIQ Cloud Manager 2.1.5 Orchestration Console Reference.

    3. Click Add.

  5. In the Explorer tree, expand the Jobs container, then expand the provisionAdapters container to expose all of the provisioning adapter jobs.

  6. In the Explorer tree, select the vsphere job to open the Admin view.

  7. In the Admin view, select the Job Configuration tab to open the Job Configuration page, then expand the Accounts table on this page.

  8. On the Accounts table, select Add to open the Add a New Account dialog box.

    1. Fill in the fields of the dialog box:

      • Account Name: Enter the name you wish to use to refer to this vCenter serveras within Orchestrator. This name can be any value, but once selected, it should not be changed.

      • vSphere Webservice URL: Enter the URL of the vCenter Web Service server.

        • Syntax: https://address-of-vcenter-server/sdk
        • Example: https://vcenter.server.test/sdk, where vcenter.server.test is the fully qualified domain name (FQDN) of the vCenter server. You could also use the IP address rather than the FQDN.
      • Credential Name: Enter the name of the credential from the Credential Manager that you want to use for logging in to the vCenter Web service server.

      • Auto Portgroup Creation: (Optional) If selected and the vsphere_ignoreNetwork policy is used, port groups are automatically created on a host if it does not have access to the specified network.

      • Auto Portgroup Disconnect: (Optional) If selected, the vNIC on a VM is disconnected when it is shut down.

      • Auto Portgroup Deletion: (Optional) If selected, when the VM is shut down, it checks for port groups on the VM host that has no VMs associated with it and deletes them, if possible. This setting is best used with Auto Portgroup Creation and Auto Portgroup Disconnect.

  9. Associate the vsphere_client policy to the resource that will access the vCenter Server.

    When the vsphere provisioning adapter job starts, this policy constrains the resource for the job to run the Web service commands.

    1. In the Explorer tree, expand the Resources group, select the client resource that is to access the vCenter Web Service server, then select the Policies tab in the admin view to open the Policies page.

    2. On the Policies page, click Choose to open the Policy Selection dialog box, then in the Source Policies list, select the vsphere_client policy, click Add, then click OK to associate this policy with this resource. For more information, see Resource Policies Page in the NetIQ Cloud Manager 2.1.5 Orchestration Console Reference.

      If you want to connect multiple vCenter Servers, refer to Section 6.1.2, Discovering Enterprise Resources in Multiple vSphere Environments.

  10. 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 box.

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

      HINT:Ensure that this job completes before proceeding to Step 10.c: 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 box.

    4. In the Source Repositories table of the Discover VM Images dialog box, 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.

Policy Configuration Summary for the vSphere Provisioning Adapter

The following table provides detailed information about other policies associated with the vSphere provisioning adapter that are used to manage the vSphere hosts and the VMs in the grid. The policy settings are applied to all the VMware VMs in the grid.

Table 6-1 Virtual Machine Management Policies for vSphere

Policy Name

Description

Additional Details

vsphere

Contains the constraints used to select the vCenter Server resources.

Do not modify this policy.

vsphere_assignPool

If you need to assign the VMs to a certain cluster (for example, a cluster root pool), or if you want to assign VMs to pools “owned” by your customers, use this policy.

When applied this policy allows the VM to reside only on VM hosts that have access to the assigned resource pool (resource.vm.pool).

vsphere_client

Contains the settings used to run the vsphere job on the associated vSphere resource.

You need to associate the vsphere_client policy to a vSphere resource before the discovery works. For more information, see Step 9.

vsphere_ignoreNetwork

Includes special facts that allow VMs to consider a VM host despite a missing required Network.

If ignoreNetworkCheck is set, a vBridge (portgroup) can be dynamically created on a VM power-on event. This works in conjunction with the auto_portgroups_creation fact found in the vpshere.policy. Make sure that you set the auto_portgroups_creation fact to true or else the portgroup will not be created during the VM power-on event.

vspherePA

Includes the basic constraints for the vsphere provisioning adapter.

Do not modify this policy.

vSphereUpdate

Includes settings for the vsphereUpdateDaemon job. The policy can be modified directly or the user can edit job args in the schedule that is created by default installation of the Cloud Manager Orchestration Server.

For more information, see Configuring the vSphere Update Client.

vsphereVmHostVnc

Includes port settings to identify a range of ports to be used for remote connections on a specified VM host.

When applied, this policy defines a range of port numbers to be used for remote connections. As VMs are provisioned, they are assigned a port number within the configured range for remote access. This applies only when the VNC mode is automatic (the default) as defined in the vsphereVnc policy.

vsphereVnc

Includes a setting to allow remote desktop connections to vSphere VMs.

For more information, see Setting Up Orchestration VNC for a VM Managed by vSphere.

Assigning a vSphere VM to a Resource Pool

All VMs managed by vSphere are assigned to either the default (named “Resources”) or a named resource pool. When vSphere VM images are discovered by the Orchestration Agent, the resource.vm.pool fact for each VM is set with what is known by vSphere as a “pool assignment.”

If you do not need to restrict VMs based on resource pool assignment, then no policy configuration is necessary and you can provision the VMs as usual, but if you need to assign the VMs to a certain cluster (for example, the cluster root pool), or if you want to assign VMs to pools “owned” by your customers, you can configure the vsphere_assignPool policy to accomplish this.

Use the following steps to ensure that the Orchestration Server always provisions a VM to the resource pool where that VM resides.

  1. Assign the vsphere_assignPool policy to the VM or a group of VMs. No changes to the actual policy file are necessary.

    During provisioning of the VM, the Orchestration Server verifies and relocates the VM (as necessary) to maintain the validity of the pool assignment.

  2. (Conditional) If the VM does not reside in the correct resource pool, look up the ID of the resource pool in vCenter and modify the resource.vm.pool fact to reflect the correct pool assignment. The Orchestration Server relocates the VM to the specified resource pool at the next provision.

    Alternatively, use vSphere to move the resource to the proper pool and re-run the VM discovery process.

Setting Up Orchestration VNC for a VM Managed by vSphere

When you right-click a VM resource, you have the option of launching a remote virtual network computing (VNC) session console of that VM’s desktop. This section provides information about setting up the Orchestration Server to accommodate a VNC session for a VM.

ESX 4.x servers managed by vSphere might have a firewall in place to protect some ports from being open or closed. The vsphere provisioning adapter opens the appropriate ports to accommodate VNC connections from a remote console. These ports are opened when the Orchestration Server discovers the servers. This is not true for ESX 5.x servers managed by vSphere, where the ports require manual opening. For more information, see Section D.0, Enabling VNC Access to vSphere 5 VM Guest Consoles.

Use the following steps to set up VNC session connectivity for the VM managed by the vsphere provisioning adapter job.

NOTE:Although you can change these settings at any time, they take effect for a vSphere VM after a non-running VM is provisioned, or after you perform an Apply Config action on a running VM.

  1. In the Explorer tree of the Orchestration Console, select the Grid Server object where you are logged in, then select the Authentication tab to open the server’s authentication page.

  2. In the Stored Credentials panel (also known as the “Credential Manager”) of the Authentication page, click Add Credential to open the Add Credential dialog box.

  3. In the Add Credential dialog box, specify a credential that includes the VNC password you want to use, then click Add. List the credential type as vnc.

    Although a user is required when you create the credential, this value is not used in the remote session. Only the secret field is used when making the connection.

  4. Configure the vsphereVNC policy.

    1. In the Explorer tree, expand the Policies folder to display the list of policies, then select vsphereVNC policy to open the Policy Editor.

    2. In the Policy Editor, modify the vnc.credential fact value to be the name of the credential you created in Step 3, then click the Save icon.

      Modifying this policy is not necessary unless you want to assign the same credential to every vSphere VM or groups of vSphere VMs. Otherwise, you can select the credential on a per-VM basis from the VNC Credential drop-down list on the Resource Information panel of the VM’s Info/Groups page.

  5. (Conditional) Configure the vsphereVmHostVnc policy for a VM host.

    Modifying this policy is not necessary unless the resource.vnc.mode fact of the vsphereVNC policy is set to automatic. When the ports defined in this range have been consumed, further vSphere VM provisioning fails.

    The default port range in the policy is 5900-5964. If you want to provide remote capabilities to more than 65 VMs on a host or cluster, you need to alter the policy configuration to add more ports to the range. You can also reconfigure the policy to use a different range of ports.

    1. In the Explorer tree, expand the Policies folder to display the list of policies, then select vsphereVmHostVnc policy to open the Policy Editor.

    2. In the Policy Editor, modify the vpshere.port.min fact value as the lower end of the range of ports you want to be used as remote connections for this VM host.

    3. In the Policy Editor, modify the vpshere.port.max fact value as the upper end of the range of ports you want to be used as remote connections for this VM host, then click the Save icon.

  6. Associate the vsphereVNC policy to a VM Resource Group or VM.

    1. In the Explorer tree, select the VM Resource Group (or an individual VM) managed by the vsphere provisioning adapter, then in the admin view, select the Policies tab to open the Policies page for this group.

    2. On the Policies page, select Choose to open the Policy Selection dialog box.

    3. In the Source Policies list of the Policy Selection dialog box, select the vsphereVnc policy, click Add to move it to the associated Policies list, then Click OK.

  7. Associate the vsphereVmHostVnc policy to a VM host.

    1. In the Explorer tree, select the VM host managed by the vsphere provisioning adapter, then in the admin view, select the Policies tab to open the Policies page for this group.

    2. On the Policies page, select Choose to open the Policy Selection dialog box.

    3. In the Source Policies list of the Policy Selection dialog box, select the vsphereVMHostVnc policy, click Add to move it to the associated Policies list, then Click OK.

  8. On the Orchestration Console Menu Bar, click Provision > Discover VM Hosts and Repositories.

    In vSphere 4.x environments, this action opens or closes the firewall on the VM hosts to allow VNC access. This access is based on the vsphere.openVncFirewallPort fact in the vsphere policy.

    For ESX 5.x servers managed by vSphere, the ports require manual opening. For more information, see Section D.0, Enabling VNC Access to vSphere 5 VM Guest Consoles.

  9. (Conditional: For VMs that are running) From the Explorer tree, right-click a vSphere-managed VM, then select Apply Config.

    If the VM for which you want to open a VNC session is not running, simply reprovision the VM.

  10. If the vSphereUpdate Client is running for your vCenter server, refresh the Orchestration Console.

    or

    If the vSphereUpdate Client is not running for your vCenter server, right-click the VM object and select Resync State.

    If you don’t want to resync before using the VNC console, make sure you configure the vSphere Update Client beforehand. For more information, see Configuring the vSphere Update Client.

  11. Right-click the VM object and select Launch Remote Desktop to open the login dialog box for the VNC session.

  12. In the login dialog box, enter the VNC password that you created in the Credential Manager in Step 3.

The following table lists the VNC-related facts in the vsphere provisioning adapter and provides a description of each of those facts.

Table 6-2 vSphere VNC Facts

Fact Name

Description

resource.vnc.ip

The IP address of the VM host where the VM is running

resource.vnc.port

The port currently assigned to the VM. The value is -1 if VNC is disabled for the VM.

resource.vnc.credential

The credential containing the VNC password. This is the name of the credential itself, not the username or the password contained in the credential.

resource.vnc.mode

Determines how VNC port assignments are handled. This value must be automatic, manual, or off.

  • If mode = automatic: the Orchestration Server attempts to select the next available VNC port.

  • If mode = manual: The port value specified in the VM’s resource.vnc.port fact is used.

  • If mode = off: The VNC console is disabled.

resource.remotedesktop

Controls enabling or disabling the Launch Remote Desktop action in the Orchestration Console.

NOTE:With the vSphere 5 release, VMware removed VNC Server as a service than can be directly administered by using the VMware Client or the VMware Client libraries and APIs. Although the VNC functionality still works on ESXi servers, the firewall must be opened to allow access.

For information about enabling VNC access for ESXi 5 servers, see Section D.0, Enabling VNC Access to vSphere 5 VM Guest Consoles.

Setting Up Orchestration to Accommodate VMware DRS Clustering and Updates

The Orchestration Server supports the discovery of VMware vSphere clusters used for high availability in a VMware environment or managed by the VMware Distributed Resource Scheduler (DRS) after an Orchestration Agent has been deployed into such an environment. In this scenario, Cloud Manager Orchestration also allows you to verify when actions have taken place outside of Cloud Manager, such as when DRS moves a VM to an alternate host in the cluster or when an administrator moves a VM into a different resource pool.

Any vSphere clusters discovered by Cloud Manager and managed by DRS are listed in the Orchestration Console as members of a convenience group (for example, a group named clusters_vsphere).

You can learn about the read-only cluster-related facts for these discovered clusters in the following Orchestration documentation references:

The Cloud Manager Orchestration update infrastructure consists of two main components:

  • A vSphere Update Client component, which is executed by the Orchestration Agent

  • The vSphereUpdate monitor job, which starts the Update Client component and ensures that it runs when necessary

Configuring the vSphere Update Client

To configure the vSphere Update Client:

  1. Create a proxy user:

    1. In the Orchestration Console, click Actions > Create User to open the Create a New User dialog box.

    2. In the Source Groups list, select administrators, then click Add to move the administrators user group to the Target Group list.

    3. In the New User Name field, specify a user name, click Create, then click Close.

      This is the proxy user. The username must contain the word “proxy,” for example, my_proxy, or proxy1.

  2. Modify the vSphereUpdate.policy (or modify the jobargs in the scheduler) so that zos.proxy.user contains the name of the user created in Step 1.c:

    1. In the Explorer Tree, select the Policies group to expand the list of policies included on this grid.

    2. Select the vSphereUpdate policy to open the Policy Editor view.

    3. Find the zos.proxy.user fact in the policy, then specify the name of the proxy user you created in Step 1.c as the value for this fact.

  3. Run the vSphereUpdate schedule and job:

    1. In the toolbar of the Orchestration Console, select Scheduler to open the Orchestration Server Job Scheduler.

    2. Select the vSphereUpdate schedule, click Enable, then click Run Now.

  4. (Optional) Verify that the update job has run.

    1. In the Orchestration Console main menu, select Jobs to open the Jobs admin view.

    2. In the admin view, locate the VsphereUpdate job that ran last, then select its Job Log tab.

      You should see something similar to the following in the log:

             [vrack-vc] checking pid: 5276
             [vrack-vc] pid '5276' is still alive
      

      The “pid” reference in the log refers to the javaw.exe process running on the resource that accesses the vCenter software. You can verify that this process is running in the Windows Task Manager on the VCenter host machine.

The vSphereUpdate Monitor Job

The vSphereUpdate monitor job is located in the “all” jobs group. It is associated with both the vsphere policy (for VCenter configuration information) and the vSphereUpdate policy. The vSphereUpdate policy specifies the following cluster-related facts. You can modify these facts to accommodate your environment.

Table 6-3 Cluster-Related Facts in the vSphereUpdate Policy

Fact Name

Type

Description

jobargs.zos.proxy.user

String

An administrative user used by the Orchestration Console to log in to the Orchestration Server in order to perform update operations there.

You must create an administrative user for this purpose, if you have not already done so.

The name of this user must contain the word “proxy,” for example, my_proxy, or proxy1. When you change the value of this fact, you must restart the Orchestration Server.

For information about configuring the vSphere Update Client, see Configuring the vSphere Update Client.

jobargs.zos.proxy.passwd_validity

Integer

The amount of time (measured in seconds) that the zos.proxy.user password is valid.

Example: 86400 (1 day). Although the default value (-1) implies that the password is valid forever, the actual validity time is limited to the uptime of the Orchestration Server.

When the password expires, the Orchestration Console is automatically restarted with a new password the next time that the monitor job runs.

jobargs.debug

Boolean

Specifies whether you want extra verbose debug logging sent to a job log.

NOTE:The client logs its output to the log.txt and err.txt files located in <agent_install_dir>/node.default/.vSphereUpdate/<hostname>/<vcenterId>.

jobargs.verbose

Boolean

Specifies whether you want verbose logging sent to a job log.

This fact is implicitly set when jobargs.debug is set.

jobargs.mode

String

The value for this fact can be optionally set to “clear.” This resets the passwd_validity and forces a restart on the next invocation where the mode is not set.

The value can also be set to “stop” to stop all running update clients.

Configuring the Orchestration Server to Limit Datastore Visibility in vSphere Clusters

If you want to limit the number of datastores (that is, Repositories that are modeled in the Orchestration Server) that are available to a vSphere cluster, you can assign a policy similar the policy below to the undesired repository or repositories:

<policy> 
  <repository> 
    <fact name="enabled" type="Boolean" value="False" /> 
    <fact name="provisioner.jobs"> 
      <array type="String"> 
      </array> 
    </fact> 
  </repository> 
</policy>

This disables the repository for use with the cluster.

Constraining vSphere VMs to Their Assigned Resource Pools

To assign the VMs to a certain cluster (for example, the cluster root pool), or if you want to assign VMs to a pool “owned” by your customers, configure the vsphere_assignPool policy to to a VM or a group of VMs.

  1. In the Orchestration Console tree view, select the VM or Group of VMs that you wish to constrain to their assigned resource pool.

  2. In the admin view, select Policies to open the Policies page.

  3. On the Policies page, select Choose to display the Policy Selection dialog box.

  4. In the Source Policies list, select vsphere_assignPool, click Add to move it to the Associated Polices list, then click OK.

6.1.2 Discovering Enterprise Resources in Multiple vSphere Environments

A data center administrator running VMware products might organize the virtual resources in his or her enterprise into several different vSphere environments. The Cloud Manager Orchestration Server lets you discover and manage all of these enterprise VMs, discovering each relevant VM host, network, repository, and VM within the several vSphere environments and modeling them as objects in the Orchestration Console.

Creating Accounts for Each vCenter Environment

  1. In the Explorer tree, select the vsphere provisioning adapter job to open the Admin view of this job.

  2. Select the Job Configuration tab to open the Job Configuration page, then expand the Accounts table on this page.

  3. On the Accounts table, select Add to open the Add a New Account dialog box.

    1. Fill in the fields of the dialog box:

      • Account Name: This should match the name of the VCenter environment you are connecting to.

      • vSphere Webservice URL: Enter the URL of the vCenter Web Service server.

      • Credential Name: Enter the name of the credential from the Credential Manager that you want to use for logging in to the vCenter Web service server.

      • Auto Portgroup Creation: (Optional) If selected and the vsphere_ignoreNetwork policy is used, port groups are automatically created on a host if it does not have access to the specified network.

      • Auto Portgroup Disconnect: (Optional) If selected, the vNIC on a VM is disconnected when it is shut down.

      • Auto Portgroup Deletion: (Optional) If selected, when the VM is shut down, it checks for port groups on the VM host that has no VMs associated with it and deletes them, if possible. This setting is best used with Auto Portgroup Creation and Auto Portgroup Disconnect.

  4. Repeat Step 3 for every vCenter Server you want to connect to for VM discovery in that vSphere environment.

When you have created Orchestration accounts for each of the vCenter servers in your enterprise, you can continue with Configuring the vsphere.vcenters Fact to Include All Accounts Representing a vCenter Server.

Configuring the vsphere.vcenters Fact to Include All Accounts Representing a vCenter Server

The vsphere.vcenters fact can be set to include the definition for all the vCenter server accounts that you identified in Creating Accounts for Each vCenter Environment. This is required to ensure that only certain agents communicate with certain vSphere accounts. You can set this fact in the vsphere_client policy of the vsphere provisioning adapter or by using a policy to apply to the individual Orchestration Agents you installed in your respective vSphere environments.

When you have used one of these methods, continue with Optionally Specifying an Authentication Certificate for Each vCenter Server.

Configuring the vsphere.vcenters Fact in the vsphere_client Policy

You can associate the vsphere.vcenters fact in the vsphere_client policy to the resources that access the respective vCenter Servers. When the vsphere provisioning adapter job starts, the policy applies the vsphere.vcenters fact to constrain the identified resources for the job to run the Web service commands.

Use these steps to configure the vsphere.vcenters fact:

  1. In the Explorer tree, expand the Policies group, then select the vsphere_client policy to open the Policy Editor page in the admin view.

  2. In the Policy Editor, scroll to or search for the vsphere.vcenters fact, then uncomment it and enter a string value in the array, using the Account Name for each vCenter Server (identified in Creating Accounts for Each vCenter Environment) as a string value.

  3. In the Explorer tree, expand the Resources group, select the client resource that is to access the vCenter Web Service server, then select the Policies tab in the admin view to open the Policies page.

  4. On the Policies page, click Choose to open the Policy Selection dialog box, then in the Source Policies list, select the vsphere_client policy, click Add, then click OK to associate this policy with this resource. For more information, see Resource Policies Page in the NetIQ Cloud Manager 2.1.5 Orchestration Console Reference.

    If you want to connect multiple vCenter Servers, make sure you modify the vsphere.vcenters fact of the vsphere_client policy as described in the policy comments.

Creating a Policy to Apply to Each Orchestration Resource in the Respective vSphere Environments

You can use separate resources to connect to and manage the different vCenter environments that you have configured. To do this, create a custom policy for each vCenter that you want to manage and assign these policies to the resources that you designate to manage the respective vCenters.

The content of the policy should be similar to the following:

<policy>
   <resource>
   <fact name=”vsphere.vcenters”>
      <array>
       <string>VCENTER1_NAME</string>
    </array>
   </fact>
  </resource>
</policy>

In this case, applying this policy along with the vsphere_client.policy to a resource would enable that resource to connect to and manage the vCenter with the name VCENTER1_NAME. This name must match the Account Name you configured in Creating Accounts for Each vCenter Environment.

Optionally Specifying an Authentication Certificate for Each vCenter Server

The vsphere provisioning adapter job automatically enables a secure SSL connection between your Orchestration Agent and the vCenter Server. This involves some security risk if a malicious user is impersonating your vCenter Server. To avoid this risk, you can explicitly configure the SSL certificate that the Orchestration Agent accepts from the vCenter Server.

We recommend that you review VMware documentation regarding gathering the certificate used by your vCenter Server’s Web interface before you proceed further.

When you have gathered the certificate, use the following steps to explicitly configure the certificate:

  1. Make sure that the Orchestration Agent is installed and started on a computer in each vCenter environment.

    For more information, see Section 2.0, Installing Cloud Manager Orchestration Components.

    If you are installing the agent to a vSphere environment, you can install the agent either locally on the vCenter Server (the vCenter appliance is not supported), or on a dedicated system (virtual or physical) as long as the OS in that system is supported for the Orchestration Agent.

  2. In the Cloud Manager Orchestration Console, log in to the Orchestration Server that you want to use to manage vSphere VMs.

  3. In the Explorer tree of the Orchestration Console, select the Orchestration Server or “grid” object, then select the Authentication tab in the admin view to open the Authentication page.

  4. Create a credential to authenticate to a unique vCenter Server in your enterprise. In most cases, the credential is for “administrator” account of the Windows machine where the vCenter Server is running.

    1. On the Authentication page, scroll to the Credential Manager (consisting of the Stored Credentials panel and the Stored Certificates panel), then click Add Certificate to display the Add Certificate dialog box.

    2. Fill in the fields of the dialog box:

      • Identifier: Specify a value in that uniquely identifies the certificate associated with this unique vCenter Server. the identifier should be of the form vsphere_<YOUR_VCENTER_NAME>, where <YOUR_VCENTER_NAME> is the account name that you configured earlier for the vCenter Server.

      • Location: Specify the file location of the certificate you gathered previously.

      • Group: Enter vsphere as the group name.

      For more information, see Authentication Page in the NetIQ Cloud Manager 2.1.5 Orchestration Console Reference.

    3. Click Add.

  5. Repeat Step 4 for all of the vCenter Servers you want to connect to.

When you have completed the authentication configuration, continue with Running Discovery.

Running Discovery

When the Orchestration Server is properly configured, you can use the following steps to discover the VM images on each 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 box.

  2. In the Discover VM Hosts and Repositories dialog box, 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.

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

    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 box, 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.