26

Getting Started with Horizon 8

 3 years ago
source link: https://darrylmiles.blog/2020/10/14/getting-started-with-horizon-8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Getting Started with Horizon 8 – Many Miles AwaySkip to content

VMware Horizon is a modern platform for secure delivery of virtual desktops and apps across the hybrid cloud. You can deploy Windows and Linux desktops using Horizon from either on-premises and from other cloud services such as VMware Cloud on AWS, Azure VMware Solution (AVS) and Google Cloud VMware Solution (GCVE).

The purpose of this article is to get you up and running quickly with Horizon 8.

I leveraged a fantastic guide written by Carl Webster titled Learning the Basics of VMware Horizon 7.12 Series. Carl’s guide is very detailed and should be your main step by step guide. I’ve simply summarised they key points with Horizon 8, change a few steps for my lab such as installing the DEM agent and updated a few screen captures as some installation steps have changed with Horizon 8.

image-45.png?w=1024

Download the Horizon Software

Start by downloading a free trial of Horizon 8 from here. For the purposes of my lab I had setup the following:

  • vSphere/vSphere 6.7 – this was already operational in my home lab on an Intel NUC
  • Windows 2016 Domain Controller/DNS – already operational
  • Horizon Components:
    • Horizon Connection Server running on Windows 2016 – The Horizon Connection server software will be installed on this server
    • Dynamic Environment Manager (or DEM) – Simplifies end-user profile management
    • App Volumes – Realtime application delivery platform for Windows applications
    • Horizon Agent – You must install Horizon Agent on virtual machines that are managed by vCenter Server so that Connection Server can communicate with them.
    • Horizon Client – VMware Horizon Clients for Windows, Mac, iOS, Linux, Chrome and Android allow you to connect to your VMware Horizon virtual desktop from your device of choice giving you on-the-go access from any location. Available here.
    • Unified Access Gateway (or UAG) – Provides secure edge services and access to defined resources that reside in the internal network. This allows authorized, external users to access internally located resources such as Horizon in a secure manner.

How do these components hang together? The two diagrams from the Horizon 7 Reference Architecture on Techzone provide the clearest indication. The first diagram shows a user with their Horizon client accessing Horizon via a UAG. This is a typical architecture for a user accessing Horizon from the Internet, otherwise they would access the Connection server directly.

Component%20Design%20Horizon%207_1.png

The following figure shows the high-level logical architecture of the Horizon components with other Enterprise Edition services shown for illustrative purposes. For example using the Workspace ONE Access (which might also provide access to SaaS based applications). The diagram also shows components such as Dynamic Environment Manager (DEM) and App Volumes.

Component%20Design%20Horizon%207_2.png

Carl provides more detail on the various components of Horizon in his guide here. Below is a screen capture of the software I had downloaded for my setup of Horizon.

image-46.png?w=480

Setting up your Horizon Connection Server

1. Run the installer for the Horizon Connection Server and click Next

image-2.png?w=446

2. Accept the licensing terms and click Next
3. Choose the destination folder and click Next
4. Select the defaults as shown and click Next

image-1.png?w=445

5. Enter a data recovery password and click Next
6. Configure the Windows Firewall automatically and click Next
7. Select Authorize the local Administrators group and click Next

image-3.png?w=445

8. Select Join the VMware Customer Experience Improvement Program if desired and click Next
9. Review the final deployment type such as General, AWS, Google etc and click Install
10. When the installation is completed click Finish

image-4.png?w=445

11. Launch the Administrator icon from the server or browse to https://yourconnectionserver/admin

image-5.png?w=105

12. Enter your Horizon Serial number as required (see example below)

image-6.png?w=972

13. In the left frame, under Settings, click Servers
14. Under vCenter Servers click the Add button
15. Enter the required information and click Next

image-7.png?w=1024

16. Accept any self signed certificates as shown and click View Certificate

image-8.png?w=627

17. Click Accept
18. Click Do Not use View Composer and click Next
19. Accept the Storage Settings defaults and click Next
20. Review the final settings and click Submit
21. Setup the Instant Clone Administrator by selecting Settings – Instant Clone Domain Accounts

image-17.png?w=234

22. Review the settings under Settings – Global Settings, General Settings as required
23. With a database already created on your SQL server, enter your database details by going to Settings, click Event Configuration as follows:

image-18.png?w=633

24. Browse to Monitor – Events and ensure a Horizon event is recorded as shown:

image-19.png?w=1024

Setting up your Windows 10 Master Image

This section follows Carl’s blog, but updated for Horizon 8. I also install the Dynamic Environment Manager (DEM) agent as well.

  1. Create a Windows 10 virtual machine (I used 2004 release) with setting such as thin provisioned disk, adapter VMXNET3.
  2. Once the Windows 10 VM is installed, install the VMware Tools so the network card is operational.
  3. Turn off power management within the NIC. Also enable Receive side scaling
  4. Set the Win10’s computer name, in my case WIN102004
  5. I joined this VM to my Active Directory domain
  6. Install the Horizon Agent on the Windows 10 VM as shown:
image-20.png?w=523

8. Click Next
9. Access the license agreement and click Next
10. Click Next to accept IP v4
11. Ensure that Instant Clone is enabled. In my case I enabled USB Redirection. Review the other settings and click Next

image-21.png?w=501

12. Click Next

image-22.png?w=496

13. Click Install
14. Once the Agent is installed, click Finish
15. Restart the Windows 10 virtual machine.
16. Install the Dynamic Environment Manager agent as follows:

image-24.png?w=440

17. Click Next
18. Access the license agreement and click Next
19. Accept the default file location and click Next
20. Click Typical and click Next

image-25.png?w=492

21. Bypass the license key option and click Next
22. Click Install then click Finish when the DEM agent is finished installation
23. I waited until Windows 10 had finished downloading any updates and various processes had completed. ie. waiting for the CPU to reduce to less than 10%

image-82.png?w=659

24. Shutdown the Windows 10 virtual machine and disconnect the virtual CD/DVD drive as shown:

image-23.png?w=767

25. Take a snapshot as shown below:

image-33.png?w=568

Farm and Pool Creation

This section follows Carl’s blog, but updated for Horizon 8, but starting with section VDI Pool Creation.

1. Go to Inventory – Desktops

image-26.png?w=240

2. Select Add and then select Automated Desktop Pool. Click Next

image-27.png?w=284

3. Select Instant Clone and click Next

image-28.png?w=1024

4. Select Dedicated User Assignment and click Next

image-29.png?w=860

5. Click Next as shown

image-30.png?w=913

6. Create a Desktop Pool ID as shown. Select Next

image-31.png?w=912

7. Set the Provisioning Settings. Example settings shown below. Click Next

image-32.png?w=931

8. Configure the vCenter Settings as per the following example. Click Next when completed.

image-34.png?w=1024

Change the settings as required and click Next

image-35.png?w=928

Review the Desktop Pool Settings and click Next

image-36.png?w=942

Review the Remote Display Settings and Click Next

image-38.png?w=931

Review the Guest Customization and click Next

image-37.png?w=1024

Note: I later changed the AD Container to an OU called Horizon for the VDI machines as shown:

image-68.png?w=673

Select Entitle Users After Adding Pool and click Submit

image-39.png?w=1024

Add the required Active Directory user group. In my case I selected Domain Users

image-40.png?w=812

Now that the desktop pool is created and entitlements added, all the Parent VMs, regular VMs, and all folders are created. You can watch the activity in your vCenter server as shown.

image-41.png?w=1024

Also the VDI pool showed the first virtual machine in the pool had started successfully:

image-42.png?w=1024

For my lab, I had to wait about 15 minutes for all the various tasks to complete on my single Intel NUC !

I then launched the Horizon Client on my Mac, logged in and was able to launch the Windows 10 desktop.

image-43.png?w=283
image-44.png?w=1024

Dynamic Environment Manager (DEM)

I installed the VMware Dynamic Environment Manager (DEM) console on the Horizon Server and configured two file shares.  I followed the excellent Quick-Start Tutorial for User Environment Manager to install/configure DEM.  You can configure the DEM Group Policy objects in your Active Directory or local GPO template.

Carl also has two articles on setting up DEM too:

DEM_Config Share

Create a folder called DEM_Config. Create a share for this folder under Advanced Sharing:

image-51.png?w=312

The following are screen captures from key items in setting up the file shares for DEM:

  • image-47.png
  • image-48.png
  • image-49.png

DEM_Profiles Share

Next create another folder called DEM_Profiles. Create a share for this folder under Advanced Sharing:

image-52.png?w=314

Select the Read and Change check boxes for the Domain Users group.

image-53.png?w=322

Select the Read and Change check boxes for the Desktop Admins group

image-54.png?w=322

Below are some of the key NTFS permissions:

  • image-59.png
  • image-55.png
  • image-56.png
  • image-57.png
  • image-58.png
  • image-59.png
  • image-55.png

Dynamic Environment Manager (DEM) Console

  1. Install the Dynamic Environment Manager (DEM) installation software and click Next.
image-60.png?w=441

2. Accept the licensing agreement and click Next
3. Accept the default software destination folder and click Next
4. Select Custom

image-61.png?w=440

5. Deselect VMware DEM FlexEngine and select VMware DEM Mangement Console and click Next

image-62.png?w=440

6. Click Install and click Finish when the software is installed
7. Launch the DEM Management Console

8. Select the location where the DEM Configuration will be installed. In my lab it was \\hcsrv1\DEM_Config as shown and click OK.

image-65.png?w=421

9. Click OK again. You should be prompted with the following DEM Console settings:

image-66.png?w=898

Active Directory Group Policy Object (GPO) settings for DEM

After installing User Environment Manager, you have a couple of options for configuration. You can use the VMware-provided administrative templates for Active Directory Group Policy Objects, or you can use the XML-based option called NoAD mode. This section assumes you have chosen to use AD GPOs.

Copy the supplied ADMX templates (and language sub-folder) to your domain controller C:\Windows\PolicyDefinitions folder:

image-67.png?w=683

Create a GPO for the Horizon Windows 10 virtual desktops:

image-69.png?w=445
image-70.png?w=310

Create the GPO settings as per the VMware DEM guide. These are:

  • Always wait for the network at computer startup and logon = Enabled
  • Configure user Group Policy loopback processing mode = Enabled
  • Configure the Flex Config Files Policy
  • Set FlexEngine to Run as a Group Policy Extension = Enabled
  • Configure the Profile Archives Policy
  • Configure the Profile Archives Backup Policy
  • Configure FlexEngine Logging
  • Add a Windows Logoff Policy
image-71.png?w=997

Whilst I was editing the GPO, I also disabled the Windows 10 first sign-in animation too.

image-99.png?w=1024

Enable the Easy Start Feature

By default, DEM does not manage any applications or environment settings after you install it. You must specify which applications and settings to manage. Although this approach takes a little more work up front, this solution prevents excessive profile growth and profile corruption, enables user settings to roam across Windows versions, and gives you granular control to manage as much or as little of the user experience as needed.

To help with getting started, the Easy Start button instantly adds many common Windows applications, including several versions of Microsoft Office, to the allowlist of applications managed by User Environment Manager. Many Windows environment settings are also added by Easy Start. You can then easily select an application or Windows setting to review and change the default settings.

Return to the DEM Admin Console and select Easy Start

image-72.png?w=734

I selected Microsoft Office 2016/2019/365 and clicked OK

image-73.png?w=543

Click OK when the Easy Start process is completed:

image-74.png?w=543

To test that DEM is setup, I restarted my Windows 10 PC running on Horizon so that it would receive the latest GPO settings. Once I logged into my virtual machine, you can determine if DEM is running correctly if a number of DEM (Quick start) options are configured such as:

image-75.png?w=160

Updating the Horizon Desktop Pool

I next decided to install Google Chrome browser on the Master image (later I tested AppVolumes). I followed Carl Stanhood’s excellent article VMware Horizon 2006: Virtual Desktop Pools – Update a Pool which explains the process to do this.

I started my Windows 10 2004 Master image and installed Chrome. I then shutdown this VM and created a snapshot as shown:

image-83.png?w=568

I then selected the Windows 10 desktop pool, select Maintain – Schedule. The new snapshot was selected and then scheduled to be applied to the desktop pool.

image-92.png?w=1024
image-91.png?w=1024

I waited for about 10 minutes for this updated image to be applied before logging into a Windows 10 desktop.

Dynamic Environment Manager Application Profiler

The VMware DEM Application Profiler is an extra software install that you install on a desktop or virtual machine where you have your user software installed. Once installed the application profiler can be used to quickly create the standard application settings that can be easily rolled out to your users.

Installation instructions are provided in Carl Starhood’s blog here. vDelboy (Dale Carter, VMware) VMware User Environment Manager Application Profiler has an overview of using the Application Profiler with an application. In my lab I selected Notepad++.

image-78.png?w=494

I then changed Notepad++ default directory to C:\TEMP as shown. Using this video as an example.

image-93.png?w=1000

I then selected Save – Save Config File with Predefined Settings

image-94.png?w=753

Copy the saved files to the \\UEMServer\UEMShare\general\applications.

  • Configuration file
  • Flag file
  • Icon file
  • Any ZIP config files

In my lab, you can see four Notepad++ files.

image-97.png?w=648

In the DEM console, click the Refresh Tree button.

image-88.png?w=371

Notepad++ is then listed:

image-95.png?w=437
image-96.png?w=958

Now when I login to my instant clone Windows 10 desktop, the Notepad++ default directory is set to C:\TEMP. I was able to make further preference changes to Notepad++ and change it’s default directory again to C:\Windows\TEMP. Those settings are retained when I loggoff/login to Windows 10. Even though I’m receiving a brand new instant clone desktop!

App Volumes 4.x

As mentioned previously, VMware App Volumes is a real-time application delivery system that enterprises can use to dynamically deliver and manage applications. Essentially you virtualise your applications making it easier to maintain them with your master Windows 10 image.

To get a further understanding on App Volumes, start with the VMware App Volumes 4: What’s New video. The App Volumes 4 interactive walkthrough is well worth reviewing on Techzone.

1%20-%20App%20Volumes%20Just-in-Time%20Application%20Model.png

To install App Volumes, I followed the excellent App Volumes 4 Setup Guide by Patrick Messenger (VMware).

Once the App Volumes Manager is up and running, I installed the App Volumes Agent on my Windows 10 Profiling VM or “Packaging VM” (where I had the DEM Profiler application installed). This is detailed further in the Quick-Start Tutorial for VMware App Volumes 4 Simplified Application Management.

image-101.png?w=492

I restarted the Packaging VM and then took an VM snapshot. That way I can revert to this snapshot after packaging each application. The VM was registered to the App Volumes Manager as shown:

image-102.png?w=937

Next, install the App Volumes Agent on the Windows 10 Golden Manager (which will be used on your Endpoint VMs) as per the Quickstart Tutorial. Follow the steps in Section “Updating the Horizon Desktop Pool” above to apply this new image update to the Horizon environment.

Following the next section of the Quickstart Guide, create an Application and then Package for your selected application. In my case, I used VLC.

image-103.png?w=940

I selected my running “Golden Master” (or Profiling VM) as follows:

image-104.png?w=921

On my master image you will see something similar to the following:

image-105.png?w=1024

I then installed VLC (in my example). After you install the application, if you are prompted to reboot, do so, and only when installation is completely finished, click OK in the dialog box. In my case, VLC didn’t ask to restart Windows so I selected OK, then Yes to advise the profiling is complete. I then selected Finalize.

image-106.png?w=455

After the reboot is complete, log in to the packaging machine again, and click OK in the Packaging successful! dialog box.

image-107.png?w=347

Next assign the application to a group of users by clicking Assign.

image-108.png?w=932

Search for at the appropriate Active Directory group, select that group and click Assign.

image-109.png?w=939

I then had to ensure I clicked Set CURRENT for the application as shown:

image-111.png?w=946

When you login into your virtual desktop, VLC was attached to this desktop as shown:

image-112.png?w=884

Conclusion

After completing these sections (and leveraging a range of excellent blogs and VMware resources) you should have successfully installed VMware Horizon.

You have also installed some additional Horizon services which together VMware call JMP (pronounced jump), which stands for Just-in-Time Management Platform. JMP is composed of the following VMware technologies:

The JMP approach provides several key benefits, including simplified desktop and RDSH image management, faster delivery and maintenance of applications, and elimination of the need to manage “full persistent” desktops.

JMP Harry Labana VMware 2

If you have any further queries on Horizon, I’d recommend posting them on the Horizon Communities forum. Feel free to contact me if you have any feedback or corrections too.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK