- Citrix MCS for XenServer connector configuration
- XenServer connector configuration
- Citrix Provisioning Services connector configuration
- Network File Share connector configuration
The XenServer Connector Configuration contains the information that allows Citrix App Layering appliance, also known as Enterprise Layer Manager (ELM), to publish Layered Images to Machine Creation Services (MCS) in your XenServer environment. The information includes user credentials and storage location.
To publish Layered Images, use the MCS for XenServer Connector Configuration. In the Connector Configuration wizard, ensure that you configure a virtual machine template. Then, the Layered Image you publish is in a ready-to-use virtual machine, the image is shut down and a snapshot taken. You can use the virtual machine in your XenServer environment without further modifications.
Each Connector Configuration is set to publish Layered Images to a specific storage location in your environment. If you publish to multiple locations, you might need more than one MCS Connector Configuration. You can also publish each Layered Image to a location convenient to the system you provision with the published image. For more about Connectors and Connector Configurations, see Connector essentials.
Notes:
You can use your XenServer environment for creating Layers, and for publishing Layered Images. Each Connector Configuration accesses a specific storage location in your XenServer environment. You might need more than one XenServer Connector Configuration to access the correct location for each purpose. Further, you can publish each Layered Image to a location convenient to the system where you provision the published image. For more about Connectors and Connector Configurations, see Connector essentials.
XenServer uses a pod-like architecture where you interact with individual servers or clusters of servers, instead of a central management server. You manage the pods by using command-line access or GUI management software such as XenCenter. Install XenCenter on your desktop and then you can connect individually to each standalone host or to clusters of hosts.
If you want to create layers by using a XenServer virtual machine, you need a XenServer Connector within App Layering. When publishing Layered Images to XenServer, you need a Connector Configuration for each of your publishing locations as well.
You select a Connector Configuration in the wizards Create Layer and Publish Layered Image. If you need a Connector Configuration for the task, you can create one. To do so, click New on the Connector tab in the wizard.
In the XenServer Connector Configuration wizard, you can browse for the XenCenter server, data store, and host to use for a new configuration.
The fields are case-sensitive. Any values that you type manually must match the case of the object in XenServer, or the validation fails.
You can organize XenServer virtual machines by folder or by tag. These organizational tools are optional when creating and managing virtual machines through XenCenter or other tools. XenServer Connector Configurations do not allow you to specify folders or tags. Virtual machines created by the XenServer Connector, both Packaging Machines, and published Layered Image can use both organizational tools.
Tags
If the template specified in the XenServer connector configuration contains tags, the tags carry over to any virtual machine cloned from that template. Therefore, all packaging virtual machines or published layered images receive the same tags that are in the template. Additionally, the XenServer Connector adds three tags.
If you are using XenCenter, you can view your virtual machines by tag by selecting Organization Views and then selecting By Tag.
Folder
By default, virtual machines created by the XenServer Connector are not placed in a folder. If the specified template is in a folder, the virtual machines that the Connector Configuration creates are in the same folder. All packaging virtual machines and published Layered Images are placed in that same folder. There are not separate folders for packaging virtual machines or published Layered Images.
When you create virtual machines with the XenServer Connector, the virtual network settings in the source template of the Connector Configuration carries over. An option is not available in the Connector Configuration UI to override the network settings.
The XenServer Connector does not work correctly with XenServer clusters. If the host in the configuration is part of a cluster, you must specify the primary host for the connector to work. However, if the primary XenServer host fails and a new primary is elected, you must update the XenServer configuration.
To type values:
To add a Connector Configuration
When you create a Connector Configuration, you can configure an optional PowerShell script to run on any Windows machine running an App Layering Agent. Store the scripts on the same machine on which you install the Agent. The script runs only 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. The variables contain the information to identify the virtual machine that is part of the published Layered Image in XenServer.
Running these scripts do not affect the outcome of the publish job, and the progress of commands run in the script are not visible. The XenServer connector logs contain the output of the script after it runs.
Complete and save the Connector Configuration as previously described.
Before selecting the Script Configuration page, you must save (or discard) any edits to the Connector Configuration settings,
In the left Navigation menu, click Script Configuration to open the Script Path page.
Complete the required fields by using the values in the table in the section "Other Script Configuration Values" and then click Save.
PowerShell variables
When you run the script, it sets the following variables, which you can use in the PowerShell script:
Value | Applies to connector types | Value determined by which code | Description |
---|---|---|---|
connectorCfgName |
All |
Common code |
The name of the connector configuration that is associated with the script configuration. |
imageName |
All |
Common code |
The name of the layered image template that was used to build and publish the layered image. |
osType |
All |
Common code |
The operating system type of the published layered image. It can be one of the following values:
|
virtualInfrastructureServer |
All |
XenServer connector code |
The XenServer host specified in the connector configuration. |
vmName |
All |
XenServer connector code |
The name of the virtual machine that was created. |
vmId |
All |
XenServer connector code |
The virtual machine UUID (same as vmUuid) |
vmUuid |
All |
XenServer connector code |
The virtual machine UUID (same as vmId) |
Definition Scope
When the script variable is set for all platform connector types, or when it is specific to a particular connector type.
Value Source
Determines if the variable value is common code or by connector-specific code.