Skip to main content

February 24, 2025

Create an Instant-Clone Linux Desktop Pool

You can create an instant-clone floating desktop pool from a Linux virtual machine using the Add Desktop Pool wizard in Horizon Console. After creating an instant-clone floating desktop pool, you can use the Linux virtual machines as remote desktops in a Horizon 8 deployment.

Horizon Agent for Linux only supports instant-clone desktop pools created from virtual machines running the following operating systems:

  • Ubuntu 20.04/22.04
  • Debian 10.x/11.x
  • RHEL 7.9/8.x/9.x
  • CentOS 7.9
  • SLED/SLES 15.x

Note: vGPU graphics capabilities are only supported on instant-clone desktop pools created from Linux machines running the following operating systems:

  • Ubuntu 20.04/22.04
  • Debian 10.x
  • RHEL 7.9/8.x/9.x
  • CentOS 7.9

Prerequisites

Procedure

  1. Create a parent Linux virtual machine (VM) and perform a fresh installation of an operating system that supports the creation of instant-clone desktop pools. See the list of supported operating systems earlier in this article.

    For more information, see Create a Virtual Machine and Install Linux.

    Important: Always use a VM equipped with a freshly installed Linux operating system as the parent VM of an instant-clone desktop pool. Do not use an already cloned system as the parent VM.

  2. For Ubuntu machines, manually install Open VMware Tools (OVT) using the following command:

    sudo apt-get install open-vm-tools
    

    See Prepare a Linux Machine for Remote Desktop Deployment for more information.

  3. Install any dependency packages that are required for the Linux distribution.

    See Install Dependency Packages for Horizon Agent for more information.

  4. Install Horizon Agent for Linux on the Linux VM. See Install Horizon Agent on a Linux Virtual Machine.

  5. Integrate your Linux VM with Active Directory.

    • To use the PBISO authentication solution, complete the procedure described in Configure PowerBroker Identity Services Open (PBISO) Authentication.

    • To use Samba Winbind offline join, configure the following options in the viewagent-custom.conf file. Replace YOURDOMAIN with the NetBIOS name of your domain.

      OfflineJoinDomain=samba
      
      NetbiosDomain=YOURDOMAIN
      

      Note: You must use Samba Winbind to integrate a RHEL 9.x/8.x VM with Active Directory. Otherwise, the creation of the instant-clone floating desktop pool fails.

    • If you want to deactivate offline domain join, you must set the OfflineJoinDomain option to none in the viewagent-custom.conf file. Otherwise, the creation of the instant-clone floating desktop pool fails.

  6. If your DHCP server does not broadcast to a DNS server, specify a DNS server for your Linux system.

    A new virtual network adapter is added when a new instant-cloned VM is created. Any setting in the network adapter, such as the DNS server, in the VM template is lost when the new network adapter is added to the instant-cloned VM. PBIS requires a valid DNS server and the FQDN mapping in the /etc/hosts is not acceptable. To avoid losing the DNS Server setting when the new network adapter is added to the cloned VM, you must specify a DNS server on your Linux system.

    Note: For best results, use NetworkManager instead of WICD for network management. WICD might produce problems when used with instant-cloned SLED/SLES 15.x VMs.

  7. (Optional) If you want to add an NFS mount in the /etc/fstab file of the Linux golden image, use one of the following methods.

    • Add a 'soft' flag in /etc/fstab, such as:

      10.111.222.333:/share 	/home/nfsmount	nfs	rsize=8192,wsize=8192,timeo=14,soft,intr,tcp
      
    • If you do not want to use the 'soft' flag in /etc/fstab, you cannot configure the /etc/fstab in the Linux golden image. You can write a power-off script to configure the /etc/fstab file, and then specify this power-off script for the ClonePrep tool. For more information, see the Horizon 8 Administration document.

  8. Shut down the Linux VM and create a golden image by creating a snapshot of your powered off Linux VM using vSphere Client.

    For more information, see "Take a Snapshot in the Host Client" in vSphere Single Host Management - Host Client, available in vSphere Documentation.

  9. In Horizon Console, add an automated desktop pool.

    Select Inventory > Desktops > Add.

  10. Select Automated Desktop Pool and click Next.

  11. Select Instant Clones, select the vCenter Server instance, and click Next.

  12. Follow the prompts in the wizard to create the pool.

    The following steps explain how to configure the minimum required settings for the pool. To configure more settings, use the configuration information you gathered in the Worksheet for Creating an Instant-Clone Linux Desktop Pool. You can go directly back to any wizard page by clicking the page name in the navigation pane.

    1. When prompted, set the Virtual Machine Naming options.

      OptionDescription
      Enable provisioningSelect this option.
      Stop provisioning on errorSelect this option.
      Naming PatternSpecify a pattern that uses a prefix in all the desktop VM names, followed by a unique number. For example, specify LinuxVM-{n}.
      Max number of machinesSpecify the total number of machines in the pool.
      Number of spare (powered on) machinesSpecify the number of desktop VMs to keep available to users.
      Provision all machines up frontSelect this option to have Horizon Agent provision the number of VMs specified in Max number of machines.
    2. When prompted, specify the Session Types that the pool supports. You can enable the VM Hosted Applications feature by selecting the supported session type for the desktop pool.

      OptionDescription
      DesktopSelect this option to use the pool as a regular desktop pool. All the virtual machines in the pool can only be used to host desktops.
      ApplicationSelect this option to use all the virtual machines in the pool to host applications.
      Desktop and ApplicationWhen this option is selected, the virtual machine in the pool can either host a regular desktop session or host an application session. The first connection to the particular virtual machine will determine the session type of the virtual machine.
    3. When prompted, select Use Virtual SAN for the storage management policy.

    4. When prompted, specify the Domain setting, AD container, and any extra customization scripts that must be run after the VM is cloned.

      Important: When you use ClonePrep power-off or post-synchronization scripts, ensure that the scripts are located in the /var/userScript folder, owned by the root user, and have the file permissions set to 700.

Results

In Horizon Console, you can view the desktop VMs as they are added to the pool by selecting Inventory > Desktops.

After you create the pool, do not delete the golden image or remove it from the vCenter Server inventory if the pool exists. If you remove the golden image VM from the vCenter Server inventory by mistake, you must add it back and then do a push image using the current image.

What to do next

Entitle users to access the pool. See "Entitling Users and Groups" in the Administration guide which is part of the Horizon 8 documentation.

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…