In this article:
A Nutanix AHV Connector Configuration contains the credentials and storage container Unidesk needs to connect to Nutanix Acropolis. You can use this connector for publishing Layered Images to Acropolis, and for packaging App Layers and new versions of your OS Layer using an Acropolis VM.
You can use this connector to:
Import your OS image from the Acropolis environment.
Publish Layered Images
Create a Packaging Machine for a new App Layer or OS Layer Version (for cross-platform deployments where your OS Image was imported from a hypervisor other than Acropolis)
You can use your Nutanix Acropolis environment for creating Layers, and publishing Layered Images. Each Connector Configuration accesses a specific storage container in your Nutanix Acropolis environment where you can create your layers or publish layered images.
You may need more than one Nutanix Acropolis Connector Configuration to access the correct container for each purpose. Further, you may want to publish each Layered Image to a container convenient to the systems you will be provisioning with the published image. For more about Connectors, and Connector Configurations, see About Connectors.
When publishing Layered Images to Acropolis, you will need at least one Connector Configuration for each storage container you plan to publish to. You can add Connector Configurations when creating an Image Template from which you will publish Layered Images. If you don't yet have the right Connector Configuration for the task, you can create one by clicking New on the Connector wizard tab (see details below).
The Acropolis Connector Configuration wizard let's you define the credentials and container to use for a new configuration.
Important: The fields are case sensitive, so any values that you enter manually must match the case of the object in Acropolis, or the validation will fail.
User Name/Password - Credentials that will be used when interacting with the Nutanix system. The specified user must have sufficient privileges for the following operations:
Nutanix does not provide a mechanism for organizing virtual machines. Because of this, it may be difficult to find the virtual machines created by your Unidesk ELM when the total number of virtual machines is large. To help you find these VMs, the following naming conventions are used:
When viewing virtual machines through the Nutanix web console, you can search for virtual machines by filtering on:
The virtual network settings of the source template specified in the Nutanix AHV Connector Configuration will be carried over when creating any VMs through the Nutanix Acropolis Hypervisor (AHV) Connector. There is no option in the Connector Configuration UI to override the network settings.
To enter values:
To add a new Connector Configuration:
When creating a new Connector Configuration, you can configure an optional Powershell script to run on any Windows machine running a Unidesk Agent. These scripts must be stored on the same machine that the Unidesk Agent is installed on, and will only be executed after a successful deployment of a Layered Image.
Some preset variables are available to enable scripts to be reusable with different template images and different connector configurations. These variables will also contain information needed to identify the virtual machine created as part of the published Layered Image in Acropolis.
Execution of these scripts will not affect the outcome of the publish job, and progress of commands executed in the script will not be visible. The Acropolis connector logs will contain the output of the executed script.
If you want a script to run each time a Layered Image is published, complete these steps using the values described in the sections that follow.
Complete and save the Connector Configuration as described above.
Note: Before selecting Script Configuration page, you must save (or discard) any edits to the Connector Configuration settings,
If the Navigation menu on the left is not open, select it and click Script Configuration to open the Script Path page.
Complete the required fields using the values detailed here, and click Save.
When the script is executed the following variables will be set and can be used in the powershell script:
Value | Applies to connector types: | Value determined by which code: | Description |
---|---|---|---|
connectorCfgName | Common | Common | This is the name of the connector configuration that the script configuration is associated with. |
imageName | Common | Common | This is the name of the layered image template that was used to build/publish the layered image. |
osType | Common | Common |
This is the OS type of the layered image that was published. It can be one of the following values:
|
virtualInfrastructureServer | Common | Nutanix AHV | The Nutanix AHV (Prism Server) specified in the connector configuraiton. |
vmId | Common | Nutanix AHV | The virtual machine UUID (same as vmUuid). |
vmName | Common | Nutanix AHV | The name of the virtual machine that was created. |
vmNetwork | Common | Nutanix AHV | The name of the virtual network that the main NIC of the virtual machine is connected to. |
vmNetworkId | Common | Nutanix AHV | The UUID of the virtual network that the main NIC of the virtual machine is connected to. |
vmNetworkMAC | Common | Nutanix AHV | The MAC address of the main NIC that is connected to the virtual network specified in vmNetwork and vmNetworkId. |
vmUuid | Common | Nutanix AHV | The virtual machine UUID (same as vmId). |
Defines whether the scripts variable is set for all Connector types or whether it is specific to a particular Connector type.
Defines whether the variable value is determined by common code or by Connector-specific code.