In the Unidesk ELM Management Console, go to the Layers tab.
Right-click in the grey, and click Create App Layer.
In the Layer Details page, give the layer a name and version. Since the App Layer is tied to the OS Layer, it’s a good idea to include the OS Layer name in the App Layer name.
Give the layer a Max Size. The layer disk created for the vSphere Packaging Machine is Thick Provisioned. Click Next.
In the OS Layer page, select an OS Layer. An App Layer created for one OS Layer cannot be used with another OS Layer. Click Next.
In the Prerequisite Layers page, you can select additional layers to include in your packaging machine. If there are no dependent layers, just click Next.
In the Connector page, select a vSphere connector, and click Next.
In the Platform Layer page, if you are creating the App Layer on a different hypervisor than originally used for the OS Layer, you can select the Platform Layer for the new hypervisor. If the hypervisor has not changed, just click Next. The hypervisor can also be changed when publishing the Image Template later.
In the Packaging Disk page, give the .vmdk file a name, and click Next.
In the Icon Assignment page, select an icon, or upload a new one, and click Next.
In the Confirm and Complete page, click Create Layer.
At the bottom of the page, open the Tasks panel.
Click the information icon next to the running task.
Eventually the task will finish deploying the Packaging Machine.
In vSphere Web Client, find the new Packaging Machine (in the PackagingVMs folder in the Unidesk VM folder), open its console, and install your app normally. See Layering Recipes for some application install instructions.
When you are done installing your app, double-click the Shutdown for Finalize icon on the desktop.
It will tell you any issues it finds. After correcting them, double-click the icon again to shutdown the machine.
After the machine is shutdown, in Unidesk ELM Management Console, go to Layers > App Layers.
Right-click the Layer that is currently being Edited, and click Finalize.
In the Script Path page, if you embedded any scripts in the layer, specify the path. Otherwise, just click Next.
In the Confirm and Complete page, click Finalize.
You can view the running tasks in the bottom window pane.
It will eventually finish and say Deployable.
In the Unidesk Management Console, go to the Images tab.
Right-click in the grey, and click Create Template.
In the Name and Description page, give the Template a Name that indicates the OS Layer, Platform Layer, and App Layers. Then click Next.
In the OS Layer page, select an OS Layer, and click Next.
In the Application Assignment page, select zero or more applications. Any App Layer you select here will be merged into the machine pre-boot. Elastic Layers are assigned later. Click Next.
Enter credentials of a service account that is an administrator in PvS. Click Check Credentials.
Scroll down. Use the drop-downs to select the vDisk store and other vDisk settings. Click Test.
On the bottom, click Save.
Then click Close.
Back in the Connector page, select the PvS connector, and click Next.
In the Platform Layer page, select one Platform Layer, and click Next. For PvS, make sure the Platform Layer includes both VDA and PvS Target Device Software.
In the Layered Image Disk page, give the .vmdk file a name, specify a size, and decide if you want Sysprep to run or not. You typically don’t need to Sysprep the image if you’re using MCS, PvS, Composer, or Instant Clone.
In the Confirm and Complete page, click Create Template.
The Image is then displayed as Publishable.
Right-click a publishable image, and click Publish Layered Image.
In the Confirm and Complete page, click Publish Layered Image.
Open the Tasks pane, and click the information icon to view details of the running task.
If publishing to MCS (vSphere):
In the vSphere Web Client, you’ll find the Template VM under the TemplateVMs folder under the Virtual Machine folder you selected for the Connector.
Citrix MCS creates VMs in the same Folder as the Master Image. You might want to move the Template VM to a different virtual machine folder.
If you edit the VM’s hardware, you’ll see that the disk is Thick Provisioned.
Power on the machine.
If doing Citrix Machine Creation Services, there is no need to join it to the domain. Some other provisioning platforms might require the machine to be joined to the domain, which you can do now.
Shut down the Template VM.
For MCS, in Citrix Studio, create a Machine Catalog using the Template VM as the Master Image.
Notice that MCS creates VMs in the same Virtual Machine folder as the Master Image.
If publishing to PvS:
The image is uploaded to the vDisk Store as a .VHD file (not .VHDX).
And it’s automatically added to the vDisk Store in the PvS Console. You can now assign it to your Target Devices.
In the Unidesk Management Console, go to Layers > App Layers.
Right-click a Deployable App Layer, and click Add Assignments.
In the Select Version page, select an App Layer version, and click Next.
In the Image Template Assignment page, don’t select anything. This page lets you assign this App Layer to a Image Template for pre-boot merging. For Elastic merging/mounting, just click Next.
In the Elastic Assignment page, note any issues that Elastic Fit discovered that would prevent the app from merging elastically correctly. If you’re OK with the issues, click the Assign Elastically button.
Search for a user group you want to assign this Layer to, and check the box next to the group. Click Next when done.
In the Confirm and Complete page, click Assign Layer.
Open the Tasks pane to see the progress while it copies the App Layer to the remote SMB share.
When it’s done, go to the SMB share to see the files it uploaded, including the .json files that contain Layer assignments.
To enable Elastic Layers in machines created from a Unidesk Image Template, edit the Template (Images), and make sure Elastic Layers is enabled in the Layered Image Disk page.
In the Version Details page, enter a new version, and click Next.
In the OS Layer page, click Next.
In the Prerequisites Layers page, click Next.
In the Connector page, select a Connector, and click Next.
In the Platform Layer page, click Next.
In the Packaging Disk page, click Next.
In the Confirm and Complete page, click Add Version.
The task details shows the current progress.
When the Packaging Machine is deployed, you can connect to its console and perform any desired updates. When you are done performing updates, double-click the Shutdown for Finalize icon on the desktop.
When done updating the Packaging Machine, right-click the App Layer that is marked as Editing, and click Finalize.
In the Script Path page, click Next.
In the Confirm and Complete page, click Finalize.
View the task details to see the current progress.
To confirm that you have a new version, right-click the App Layer, and click Delete Versions.
You can only delete versions that are not assigned to any Image.
There are two methods of assigning a new version: one image at a time, or multiple images.
To edit one image:
Go to the Images tab. Right-click an Image, and click Edit Template.
Click the Application Assignment page.
Click the plus arrow next to a Layer and select the new version. Then complete the wizard.
To update multiple images:
Right-click the updated layer, and click Update Assignments.
In the Select Version page, select the version you want to assign, and click Next.
In the Image Template Assignment page, select the templates you want to update, and click Next.
In the Elastic Assignment page, if this App Layer is assigned to users, you can update them too. Click Next.
In the Confirm and Complete page, click Update Assignments.
Once an image has a new version assigned, you must republish it.