Creating Unidesk Application Layers 3.x

When you want to layer applications on top of a Unidesk desktop, patch those applications or patch the OS Layer you need to make use of Application Layers, Application Layer versions and OS Layer versions.

Note: Unidesk was bought over by Citrix in January 2017.

Application Layer disks can contain one application or many if you want to reduce the number of Application Layers you have for management and feel that these applications can be bundled together. The less layers you assign to a desktop the less processing the Unidesk Filter Driver will have to do merging layers. Take for example small applications that work well together and will be delivered to all or most desktops. You can also use Application Layers even if you want to inject files/folders or other items in to Unidesk desktops. The Application Layer is a read-only virtual disk file running on Hyper-V (v3.x) that is layered on top of a Desktop using Unidesks Composite File System.

To create Unidesk desktops see https://jgspiers.com/creating-unidesk-desktops/

To create a Unidesk OS Layer see https://jgspiers.com/unidesk-os-layer-creation-process/

An Installation Machine is a requirement when you want to build new Application Layers, update them or patch the OS layer using versioning. The Installation Machine is dedicated to an OS Layer so you must have multiple Installation Machines if you have multiple OS Layers. Installation Machines are diskless however you assign an OS Layer during creation and this OS Layer cannot be chaged at a later stage. The Installation Machine won’t be on the domain but if you have an application or reason for the machine to be on the domain it is fine to do so, just remove the machine from the domain after you are done creating an Application Layer or version.

To create an Installation Machine navigate to System -> Installation Machines -> Create Installation Machine.1-minAssign 2-4GB to the Installation Machine. Associate an OS Layer with the Installation Machine, this is final and cannot be changed without a recreation of the Installation Machine.2-minClick Create Installation Machine.

3-minUsing the tasks view you can see the Installation Machine creation progress.4-minNow that the Installation Machine is created, we can get to creating an Application Layer.5-minNavigat to Layers -> Application Layers -> Create Layer.6-minSpecify a name, description, version and version description if necessary. Application Layers are thin provisioned so the Max Layer Size (GB) value here is the maximum amount of disk space that can potentially be used. The default size of an Application Layer is 10GB and should not be reduced as a best practice.7-minThe OS Layer you choose here is the OS Layer this new Application Layer will work with. You cannot share Application Layers between OS Layers or move an Application Layer to a new OS Layer at a later stage without a rebuild of the Application Layer. Installation Machines that are associated with this OS Layer will be available for selection beside Installation Machine. The Installation Machine you choose here will be prepared so that you can create the Application Layer.8-minSince I have no other layers created nothing shows here. If there was a layer that needed to be present to allow the creation of this layer, you would choose that layer here. For example, an application may require that a component is already available before it can install successfully. 9-minChoose an icon, clicking the Browse button allows you to upload an application icon. 10-minClick Create Layer. 11-minAt this stage the Installation Machine is being prepared with the boot file being created. 12-minKeep an eye on the task. Eventually you will get the message giving you the go ahead to install the software. Connect to the Installation Machine and install the application and any prerequisites. 13-minFor this example I am installing Adobe Reader DC. 14-minOnce you are done installing the application, reboot the Installation Machine for good measure. Now within the Unidesk Management Console, click Finalize on the Application Layer. Unidesk now checks the layer to make sure reboots are completed and that NGEN compiles have been completed if the application uses .NET etc. This ensures the application will work OK when layered. 15-minClick Finalize. 16-minThe Installation Machine shuts down. 17-minAs you can see the status shows the Installation Machine powering off. 18-minThe disk contents are then converted in to a layer. 19-minThe status of the task will return completed.20-minThe Application Layer status will also change to deployable. 21-minAt this stage you should assign the layer to a bunch of test desktops to make sure the application and desktops work correctly together. To assign the Application Layer to desktops simply click one or more desktops and select Edit Desktops. 22-minClick the Application Assignment tab and choose which Application Layer(s) you want to assign. The Repair button for interest basically reinstalls the application on a Desktop. This can be useful on Persistent Desktops if a setting has been changed within the application that has unstabilised the product or the user has deleted or modified a file that the application needs to run correctly. Running a Repair ensures all application edits stored in the Personlization Layer are deleted. 23-minClick Update Desktop. 24-minDesktops update depending on their Maintenance Schedule. Since these machines have been logged out they will be edited. As shown below the Application Layer is copying to required Secondary CachePoints. 25-minThe layer copy process to UnideskSCP2 is underway. 26-minOnce layer copying is complete the machine boot image is rebuilt. 27-minThe virtual machine is set to persistent during the rebuild and then set back to non-persistent (when non-persistent machines are updated). 28-minThe machine edits are successfull and the desktops are powered back on. 29-minUpon logging on to a desktop that as the new Application Layer, Adobe Reader shows as if it had been manually installed but infact it is layered in using the Unidesk Filter Driver. 30-minAdobe Reader even shows up in Program Files. 31-minNow we can launch the application and get to work! 32-min

To repair an Application Layer select one or more desktops and click Edit Desktops.33-minClick on Application Assignment. Tick Repair against the application you want to repair. 34-min

Additional Notes:

Layers come with a status when viewed within the Management Console:

  • Not deployable: Not ready to be assigned to Desktops. Check for statuses in the Task Bar and the layer’s information view for further information.
  • Editing: Unidesk is currently either creating or changing the layer. You can view statuses in the Task Bar for further information.
  • Deployable: Layer is ready to be assigned to desktops.

Leave a Reply