0

VMware Horizon View: Manually Creating Optimized Windows Images for VMware Horizon VMs

Table of Contents

Manually Creating Optimized Windows Images for VMware Horizon VMs. 5

1. Start the New Virtual Machine Wizard in the vSphere Web Client 6

2. Select the New Virtual Machine Creation Type. 6

3. Select a VM Name and Folder 7

4. Select a Cluster or Host 7

5. Select a Datastore for the VM.. 8

6. Select the vSphere Compatibility Level 8

7. Select the Windows Version and Architecture. 9

8. Specify Virtual Hardware Settings 9

9. Continue Specifying Hardware Settings 10

10. Specify VM Options. 11

11. Edit the Configuration Parameters. 12

12. Disable the Ability to Add and Remove Virtual Hardware While the VM Is Running. 13

13. Complete the Wizard. 14

Install Windows. 14

VMware Tools and config. 15

1. Select the Custom Setup Type. 16

2. Disable the Carbon Black Helper Component If Not Required. 17

3. Exclude the Service Discovery Component 18

4. Exclude the Volume Shadow Copy Component 19

5. Begin Installation of VMware Tools. 20

6. Exit the Installation Wizard. 21

7. Do Not Restart the VM.. 21

Install .Net Framework 3.5. 22

Update Windows. 22

1. Select the Update & Security Settings in Windows Settings. 22

2. Select Check for Updates. 23

3. Restart the VM.. 23

Installing Horizon agent on Base image.

Important thing need to decide what agent you are installing and how you want to provision desktops.

Below agent is for linked clone

Below agent is for instant clone

regedit > computer\HKEY_LOCAL_Machine\system\currentcontrolset\servics\vmware-viewcomposer-ga

set to 0

If you want to use MAK activation

Manually Creating Optimized Windows Images for VMware Horizon VMs

1. Start the New Virtual Machine Wizard in the vSphere Web Client

  1. In vSphere Web Client, right-click a data center, cluster, host, or VM folder.
  2. Select New Virtual Machine.

2. Select the New Virtual Machine Creation Type

  1. Select Create a new virtual machine.
  2. Click NEXT.

3. Select a VM Name and Folder

  1. Provide a name in the Virtual machine name field.
  2. Select a location.
  3. Click NEXT.

4. Select a Cluster or Host

  1. Select a cluster or host as the compute resource.
  2. Click NEXT.

5. Select a Datastore for the VM

  1. Select a datastore or datastore cluster where you would like to store the VM.
  2. Click NEXT.

6. Select the vSphere Compatibility Level

  1. Select the lowest version of ESXi that this VM would be deployed to.
    Tip: See Hardware Features Available with Virtual Machine Compatibility Settings.
  2. Click NEXT.

7. Select the Windows Version and Architecture

  1. Select the Guest OS Version with the correct architecture (32- or 64-bit) and, when required, enable VBS. (Choose Microsoft Windows Server 2016 when deploying Windows Server 2019 on ESXi 6.x.)
  2. Click NEXT.

8. Specify Virtual Hardware Settings

  1. Select 2 CPUs. (This should be tested and adjusted to real production values later.)
  2. Select 2.5 GB of memory. (This should be tested and adjusted to real production values later.)
  3. Expand the Memory section.
  4. Select Reserve all guest memory (All locked).
  5. Choose an appropriate hard disk size.
  6. Expand the New SCSI controller section.
  7. Select VMware Paravirtual.
  8. From the VM Network list, select the appropriate network.
  9. Expand New Network.
  10. Select VMXNET3.
  11. Click on ADD NEW DEVICE.
  12. Select CD/DVD Drive.
  13. Scroll down

9. Continue Specifying Hardware Settings

  1. Select Datastore ISO File and browse to the Windows ISO file.
  2. Select Connect.
  3. Delete the New USB Controller.
  4. Expand the Video card section.
  5. Select the maximum Number of Displays that will be used.
  6. Use the following table to determine which number to enter in the Total amount of video memory field.

Note: The table that follows describes the small amount of RAM on the ESXi host that is required for video overhead in addition to system memory. This VRAM size requirement depends in on the display resolution and number of monitors configured for end users.

Display Resolution StandardWidth, in PixelsHeight, in Pixels1-Monitor Overhead2-Monitor Overhead3-Monitor Overhead4-Monitor Overhead
VGA6404801.20 MB3.20 MB4.80 MB5.60 MB
WXGA12808004.00 MB12.50 MB18.75 MB25.00 MB
1080p192010808.00 MB25.40 MB38.00 MB50.60 MB
WQXGA2560160016.00 MB60.00 MB84.80 MB109.60 MB
UHD (4K)3840216032.00 MB78.00 MB124.00 MBNot supported

Important: You are not yet finished with the Customize Hardware wizard page. Now that you have edited the virtual hardware settings, you can configure the VM options.

10. Specify VM Options

  1. At the top of the page click on VM Options.
  2. Expand the Advanced section.
  3. Scroll down.

11. Edit the Configuration Parameters

Click EDIT CONFIGURATION.

Note: In the next step, you are going to disable the hotplug feature. With hotplug enabled, NICs and SCSI controllers appear as removable devices, and the Safely Remove Hardware option for the virtual hardware appears in the Windows System Tray (notification area). To prevent this option from appearing, you will disable the capability. When using VMware App Volumes, you must either add enough controllers for the maximum number of disks you will be using or not set this option.

12. Disable the Ability to Add and Remove Virtual Hardware While the VM Is Running

  1. Click ADD CONFIGURATION PARAMS.
  2. For Name, type devices.hotplug, and for Value, type false.
  3. Click OK. You are returned to the Customize Hardware > VM Options tab of the wizard.
  4. Click NEXT on the wizard page.

13. Complete the Wizard

Click FINISH.

Install Windows

Access the VMware Tools Disk Image from vSphere Web Client

Click Install VMware Tools.

9.2. Mount the VMware Tools Disk Image on a Virtual Drive of the VM

Click on MOUNT and go back to the the remote console.

9.3. Open the Load Driver Dialog Box

Click Load driver.

9.4. Open the File Browser

Click Browse.

9.5. Browse to the Correct PVSCSI Driver

  1. Go to E:\Program Files\VMware\VMware Tools\Drivers\pvscsi\Win8\amd64.
  2. Click OK.

9.6. Select the Driver

With the VMware PVSCSI driver selected, click Next.

10. Use the Default Installation Location

Click Next.

11. Monitor Installation Progress

Wait for Windows to be installed.

VMware Tools and config

Click Next.

1. Select the Custom Setup Type

  1. Select Custom.
  2. Click Next.

2. Disable the Carbon Black Helper Component If Not Required

  1. Deselect VMware Carbon Black Helper, unless you use Carbon Black.
  2. Scroll down.

Note: If you leverage NSX enable the NSX File and Network Introspection drivers.

3. Exclude the Service Discovery Component

  1. Deselect Service Discovery, which enables the discovery of various services running inside a virtual machine. This component is not necessary.
  2. Scroll down.

4. Exclude the Volume Shadow Copy Component

  1. Deselect Volume Shadow Copy Services Support. This component is not necessary.
  2. Click Next.

5. Begin Installation of VMware Tools

Click Install.

6. Exit the Installation Wizard

Click Finish.

7. Do Not Restart the VM

Click No.

 

Install .Net Framework 3.5

Open a command prompt and run the following command:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs

Install any required component that leverages Windows Update, such as C++ runtimes, Office, and so on. The following screenshot shows an example of successfully running this command.

 

Update Windows

Install the latest Windows OS updates.

1. Select the Update & Security Settings in Windows Settings

Press Windows Key+I, to open Windows Settings, and click Update & Security.

2. Select Check for Updates

Note: For earlier non-LTSB/LTSC Windows 10 versions, click Advanced options first and select Defer feature upgrades so that new features are not downloaded and installed. Deferring feature upgrades does not affect security updates.

Click Check for updates and wait for the updates to be installed.

3. Restart the VM

Click Restart now. Run Windows Update again until no more updates are available and no restarts are required.

Important commands

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs

Sandeep Kumar & Shaswati Mukherjee

Leave a Reply

Your email address will not be published. Required fields are marked *