Creating a VM Template

This chapter describes the following:

  • Creating a template from an existing virtual machine

  • Creating a Customization Specification

  • Provisioning a single vGPU-enabled virtual machine from a template

To create a pool, you must first convert an existing virtual machine into a template, which you can create a single virtual machine or virtual machines on demand.

Note

A complete demonstration of these features is beyond the scope of this document; however, converting a virtual machine to a template and then deploying virtual machines from that template is a fundamental operation that can reduce evaluation time.

Creating a Template

To create a template from an existing virtual machine:

  1. Open the vSphere Web Client:

    _images/vgpu-dg-horizonpool1.png
  2. vSphere displays the Clone Virtual Machine To Template window. With the Select a name and folder tab selected.

    _images/vgpu-dg-horizonpool2.png
  3. In the VM template name field, enter a name for the template.

  4. Select a location to create the template. Click Next.

  5. Select a compute resource for the template. Click Next.

  6. Select the target datastore. Click Next.

  7. Review the Ready to Complete window settings and click Finish to start cloning the virtual machine to a template.

    _images/vgpu-dg-horizonpool3.png
  8. When the cloning process is complete, the VM template is displayed at the end of the list in the VMs and Templates section.

    _images/vgpu-dg-horizonpool4.png

Creating a Customization Specification

Before you can provision a virtual machine from a template, you must create a VM Customization Specification. This will handle actions such as joining the domain and renaming the machine.

To create a VM Customization Specification:

  1. From the left-hand pane of the vSphere Client Shortcuts view, select VM Customization Specifications in the Monitoring section.

    _images/vgpu-dg-horizonpool5.png
  2. In the VM Customization Specifications window, click New.

    _images/vgpu-dg-horizonpool6.png
  3. For Target guest OS, select Windows.

    Check the Generate New Security ID (SID) checkbox.

    If your organization uses an answer file, you can load that file by checking the Use custom SysPrep answer file checkbox.

    If your organization does not use this functionality, leave the checkbox cleared. Enter a name for the new specification in the Customization Specification Name field. Click Next

    _images/vgpu-dg-horizonpool7.png
  4. Enter the VM owner’s name in the Name field and the owner’s organization’s name in the Organization field, then click Next

    _images/vgpu-dg-horizonpool8.png
  5. Enter a computer name for the VM, then click Next.

    _images/vgpu-dg-horizonpool9.png
  6. Enter your Windows product key information or leave this field blank. Then click Next

    _images/vgpu-dg-horizonpool10.png
  7. Enter and confirm the administrator password (it is case sensitive) in the Password and Confirm Password fields, then click Next

    _images/vgpu-dg-horizonpool11.png
  8. Select your time zone from the Time Zone pulldown menu, then click Next

    _images/vgpu-dg-horizonpool12.png
  9. Enter any required one-time commands in this tab, then click Next

    _images/vgpu-dg-horizonpool13.png
  10. Click the appropriate radio button to either:

    • Use standard network settings: Automatically selects network settings.

    • Use manual network settings: Enter the network description, IPv4 address, and/or IPv6 address in the respective fields.

    Click Next.

    _images/vgpu-dg-horizonpool14.png
  11. Select the appropriate radio button to make the VM a member of either a workgroup or a domain. Enter the VM’s workgroup or domain information in the appropriate fields. Then click. Next

    _images/vgpu-dg-horizonpool15.png
  12. Review your settings. If any are incorrect, click Back to correct them. When all of the settings are correct, click Finish to view the new customization specification from the template.

    _images/vgpu-dg-horizonpool16.png

Note

You do not need to create a virtual machine guest customization specification every time you clone a virtual machine from a template.

Provisioning a Single Virtual Machine

To provision a single vGPU-enabled virtual machine from a template:

  1. From vSphere Client, right-click the template and select New VM from this Template. vSphere displays the Deploy From Template window with the Select a name and folder tab selected.

    Enter a name for the new VM in the Virtual machine name field and select a location. Click Next.

    _images/vgpu-dg-horizonpool17.png
  2. Select the Compute Resource, click Next.

  3. Select the target storage type and datastore, click Next.

  4. Check the Customize the operating system checkbox In the Select clone options window. Click Next.

    _images/vgpu-dg-horizonpool18.png
  5. Select the Guest OS used to create the VM. Click Next.

    _images/vgpu-dg-horizonpool19.png
  6. vSphere displays the Ready to complete tab of the Deploy From Template window, displaying the “Win11” Guest OS Customization specification properties.

    Review the settings. If any are incorrect, click the Back button to make corrections. Click Finish to begin creating the virtual machine from the template.

    _images/vgpu-dg-horizonpool20.png
  7. Once the VM is created, it becomes visible in the data center on its cloned host.