Navigation
This topic assumes the Unidesk Enterprise Layer Manager has already been imported and configured.
- Layers Overview
- Operating System Preparation
- Export OVF Template
- Import Operating System Layer
- Platform Layer
- Update OS and Platform Layers
- App Layers, Image Templates, and Publishing (separate page)
Layers Overview
Unidesk uses several types of layers:
- Operating System Layer
- Platform Layer
- Application Layer
- Image Template
- User Layer
The master versions of all Layers are stored on the Enterprise Layer Manager virtual appliance.
Operating System Layer is just the base OS (with patches) and VMware Tools. There’s usually no need to install anything else.
The remaining layers (Platform and Application) are created from an OS Layer. These layers are linked to one OS Layer, and can’t be used on any other OS Layer.
Any application that creates local users (e.g. XenApp 6.5) should be installed in the OS Layer.
Platform Layer contains the following:
- Citrix Virtual Delivery Agent, or VMware Horizon Agent.
- Citrix Provisioning Services Target Devices Software
- Hypervisor Tools – if packaging or publishing to a different hypervisor than originally used to create the OS Layer.
An Image Template (the composed machine that is published to the hypervisor) can contain only one Platform Layer. If you are creating a Platform Layer for Citrix Provisioning Services, then that one Platform Layer should include both the Citrix VDA, and the Citrix PvS Target Device Software.
Application Layers contain anything not in the OS Layer or Platform Layer, including the following:
- Applications
- Antivirus
- Print Drivers
- Citrix WEM Agent
- SCCM Client
When creating a Unidesk Machine, there are two methods of merging the Application Layers:
- Pre-boot – Unidesk merges the App Layer with the OS Layer and Platform Layer to create a single monolithic disk file. This method provides the greatest application compatibility. Use this method for Apps with boot time services or drivers.
- Elastic – When the user logs into a Unidesk machine, a service looks in a file share for any Elastic Layers assigned to the user, and merges (mounts) them as the user logs in. Different users can have different Elastic Layers, even on multi-user Remote Desktop Session Host (XenApp) machines. However, Elastic Layering doesn’t work for apps that need boot-time services/drivers.
A single App Layer can be merged using either of these methods. If the App Layer doesn’t work Elastically, then you can mount it Pre-boot (Image Template) instead. There is no need to create separate App Layers for each mounting method.
Elastic App Layers are stored in a SMB file share. You can use any desired method to provide High Availability for this file share including: Scale Out File Server, DFS Namespace/Replication, etc.
Image Template contains one OS Layer, one Platform Layer, and zero or more App Layers. The App Layers assigned in the Image Template are merged pre-boot.
You then Publish the Image Template to your hosting platform.
- For MCS, the Template is pushed to a hypervisor (e.g. vSphere) virtual machine, which becomes the master image for an MCS Catalog.
- For PvS, Unidesk creates a VHD file, and pushes it to a PvS vDisk Store, so you can assign it to Target Devices.
User Layers allow users to install their own applications. This Layer Type is not yet available in Unidesk 4.0.8, but is coming soon.
User Layers require additional consideration for backup, replication, and recovery.
Operating System Preparation
Unidesk has several Test drives, which are complete procedures for creating layers for various platforms.
- Create a virtual machine.
- If vSphere, make sure your OS Layer creation machine has VMXNET3 NIC.
- Install an operating system and patch it.
- Install VMware Tools.
- Don’t join the template machine to the domain. Leave it in a workgroup.
- Disable Automatic Updates on the template machine. You can use layers to install updates. An easy method to disable it is in Group Policy > Computer Configuration > Policies > Administrative Templates > Windows Components > Windows Update > Configure Automatic Updates. Disable the setting.
- Go to the downloaded Unidesk files, right-click the unidesk_os_machine_tools.exe file, and click Run as Administrator.
- Click Install.
- Go to C:\Windows\Setup, and create the Scripts folder.
- You can optionally configure an unattend file to join the Unidesk machines to the domain. If MCS, you can skip this step and MCS will do it for you. For PvS, you can manually join the domain when creating a Platform Layer. Or you can use PowerShell for Advanced Domain Join Operations. The unattend file is more appropriate for full clone VMs.
- To create an unattend file, in C:\Windows\Setup\Scripts, right-click Unattend.exe, and run as administrator.
- At the top of the page, select the correct operating system.
- When choosing to join the domain, note that Domain join credentials are stored in the unattend.xml file in plain text.
- Continue to scroll down and enter configuration settings.
- At the bottom of the window, click Save File
- The tool creates the SetupComplete.cmd file.
- To create an unattend file, in C:\Windows\Setup\Scripts, right-click Unattend.exe, and run as administrator.
- In C:\Windows\Setup\Scripts, run Optimize64.exe as administrator.
- At the top, select your operating system.
- Scroll down. As you scroll, review the changes it’s going to make. Then click Save File.
- Click OK when Optimizations have been saved. Then close the optimization tool.
- Run setup_x64.exe from C:\Windows\Setup\scripts. Make sure you run it elevated.
- In the Welcome to the InstallShield Wizard for the Unidesk Image Preparation Utility page, click Next.
- In the Specify your answer file page, click Next.
- In the InstallShield Wizard Completed page, click Finish.
- Shut down the machine.
Export OVF Template
- Make sure popup blocker is disabled for this vSphere Web Client website.
- In vSphere Web Client, right-click the OS Image machine, expand Template, and click Export OVF Template.
- In the Export OVF Template window, click OK.
- Eventually, you’ll see a Save As dialog box. This process is much quicker if the VM has no snapshots.
- Save the OVF file to the Unidesk file share so Unidesk ELM can access it later.
- You’ll be prompted to save multiple files to the same location.
Import OS Layer
- In the Unidesk ELM Management Console, go to the Layers tab.
- Right-click in the grey area, and click Create OS Layer.
- In the Layer Details page, give the OS Layer a name and version.
- Specify a Max Layer Size. Note: the packaging machine is thick provisioned using the size specified here.
- Click the down arrow to proceed to the next page.
- In the Connector page, the file share should already be selected. Click Next (down arrow).
- In the OS Disk Details page, click Browse, and select the .vmdk file. Click Next.
- In the Icon Assignment page, select an icon or upload a new one. Then click Next.
- In the Confirm and Complete page, you can enter a Comment to indicate who created this layer and when. Then click Create Layer.
- At the bottom of the screen, click the up chevron to display the Tasks pane.
- You’ll see a Running task. Click the information icon to view more details.
Platform Layer
- In the Layers tab, right-click in the grey area, and click Create Platform Layer.
- In the Layer Details page, give the layer a name and version. Note: Platform Layers are linked to OS Layers, so it’s best to indicate which OS Layer this Platform Layer is based on. You can’t use a Platform Layer created on one OS Layer on a different OS Layer.
- Specify a Max Layer Size. Note: the packaging machine is thick provisioned using the size specified here, plus the size of the OS Layer.
- Click Next (down button).
- In the OS Layer page, select the OS Layer this Platform Layer will be based on, and click Next.
- In the Connector page, if you already have a vSphere connector, select it, and click Next. If you don’t already have a vSphere connector, then click New.
- To create the vSphere connector, in the Choose a Connector Type window, select VMware vSphere, and click New.
- A new tab opens.
- Give the Connector a name (e.g. vCenter name). The Connector specification includes specific storage, so you might want the Connector name to indicate the storage name.
- Enter the vCenter FQDN and service account credentials. The vCenter permissions needed by the service account are detailed at Unidesk Prerequisites (vSphere) at unidesk.com.
- Click Check Credentials.
- Scroll down and use the drop downs to select where you want Packaging VMs and Published Templates to be created. Published Templates are later used by MCS to create more machines.
- The Packaging VMs and Published Templates will be created under the Virtual Machine Folder that you specify here.
- Click Test.
- When the Test is successful, click Save.
- Then click Close.
- To create the vSphere connector, in the Choose a Connector Type window, select VMware vSphere, and click New.
- Back in the Connector page, select the vSphere connector, and click Next.
- In the Platform Types page, change the selection to This platform layer will be used for publishing Layered Images. The other selection is if you want to deploy the vSphere OS Layer on a different hypervisor (e.g. Azure).
- Use the drop downs to select the Hypervisor, Provisioning Method, and Connection Broker. These can be changed later. Click Next.
- In the Packaging Disk page, enter a name for the .vmdk disk that will be created in vSphere. Click Next.
- In the Icon Assignment page, select an icon, or upload a new one. Click Next.
- In the Confirm and Complete page, click Create Layer.
- On the bottom of the screen, open the Tasks pane.
- Click the information icon to view what the task is doing.
- Eventually it will say Pending (Action Required), meaning it’s waiting for you to perform the packaging in vSphere.
- In vSphere Web Client, in the VMs and Templates view, expand the Unidesk folder, expand Packaging VMs, and click the new Packaging Machine.
- If you edit the VM’s hardware, notice that the disk is Thick Provisioned.
- You can now access the console of the Packaging VM and install VDA software.
- Feel free to reboot the Packaging VM.
- If PvS:
- Join the machine to the domain. MCS does this automatically during Image Prep.
- Install the PvS Target Device Software. The Unidesk Templates only allow one Platform Layer per template, so you’d need to install both VDA and PvS Target Device components in a single Platform Layer.
- Rearm KMS licensing (slmgr /rearm). MCS does this automatically during Image Prep.
- Join the machine to the domain. MCS does this automatically during Image Prep.
- When you are done installing VDA (and optionally PvS Target Device Software), double-click the Shutdown for Finalize icon on the desktop. If it finds issues, it will tell you what to do (e.g. reboot needed). Otherwise, it will shut down the VM.
- Back in the Unidesk ELM Management Console, in Layers > Platform Layers, right-click the Editing layer, and click Finalize.
- In the Confirm and Complete page, click Finalize.
- You can click the information icon next to the running task to see what it’s doing.
- Eventually the icon will say Deployable.
- You can click the information icon on the Platform Layer to view its details.
Next Steps
Update OS or Platform Layers
- Right-click an OS Layer or a Platform Layer, and click Add Version.
- In the Version Details page, enter a new version, and click Next.
- In the OS Layer page, click Next.
- In the Connector page, select a Connector, and click Next.
- In the Platform Types 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 Layer that is marked as Editing, and click Finalize.
- 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 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 OS Layer or Platform Layer page.
- Click the plus arrow next to a Layer and select the new version. Then complete the wizard.
- Go to the Images tab. Right-click an Image, and click Edit Template.
- 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 Confirm and Complete page, click Update Assignments.
- Right-click the updated layer, and click Update Assignments.
- Once an image has a new version assigned, you must republish it.