Before you perform virtual machine cloning, you must create a virtual machine template that the clones are based on.

Prerequisites

  • Verify that your deployment meets the requirements for supporting Linux desktops. See System Requirements for Horizon 6 for Linux.

  • Familiarize yourself with the steps for creating virtual machines in vCenter Server and installing guest operating systems. See "Creating and Preparing Virtual Machines" in the Setting Up Desktop and Application Pools in View document.

  • Familiarize yourself with the recommended video memory (vRAM) values for the monitors you will use with the virtual machine. See System Requirements for Horizon 6 for Linux.

  • Familiarize yourself with the supported JRE versions. See System Requirements for Horizon 6 for Linux.

Procedure

  1. In vSphere Web Client or vSphere Client, create a new virtual machine.
  2. Configure custom configuration options.
    1. Right-click the virtual machine and click Edit Settings.
    2. Specify the number of vCPUs and the vMemory size.

      For recommended values, follow the guidelines in the installation guide for your Linux distribution.

      For example, Ubuntu 12.04 recommends configuring 2048 MB for vMemory and 2 vCPUs.

    3. Select Video card and specify the number of displays and the total video memory (vRAM).

      For recommended values, follow the guidelines in System Requirements for Horizon 6 for Linux. Do not use the Video Memory Calculator.

  3. Power on the virtual machine and install the Linux distribution.
  4. Create a user with root privileges, for example, ViewUser. This user is used to install and uninstall View Agent only.
  5. Edit /etc/sudoers and add the line ViewUser ALL=(ALL) NOPASSWD:ALL.

    With this line in /etc/sudoers, no password is required to run sudo as ViewUser. When you run the sample script to install View Agent that is provided in this chapter, you specify ViewUser as an input.

  6. If the Linux distribution is RHEL, CentOS, or NeoKylin, edit /etc/sudoers and comment out the lines Defaults requiretty and Defaults !visiblepw.
  7. Install VMware Tools.
  8. Install a supported version of JRE.
  9. Shut down the virtual machine and create a snapshot.