Creating a VM Template

This chapter describes the following

  • Creating a template from an existing virtual machine.

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

  • Provisioning vGPU-enabled virtual machines from a template

To create a pool of virtual machines, you must first convert an existing virtual machine into a template, which then allows you to either create a single virtual machine or use it to dynamically create 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

Use the following procedure to create a template from an existing virtual machine.

  1. Right-click a virtual machine and then select Clone -> Clone to Template…
    • The Clone Virtual Machine To Template popup displays with the Select A Name And Folder tab selected.

    ../_images/deployment_vgpu_section-08_subsection-01_image-01.png
  2. Enter a name for the template.

  3. Select either a data-center or virtual machine folder to create the template.

  4. Select Next to display the Select A Compute Resource tab.

  5. Select the host or cluster to store the template.

  6. Select Next to display the Select storage tab.

  7. Select the storage type and target data store.

  8. Select Next to display the Ready to complete tab.

  9. Review the settings and click Finish to start cloning the virtual machine to a template.

    ../_images/deployment_vgpu_section-08_subsection-01_image-02.png
    • The vSphere Web Client Recent Tasks view displays the progress of the cloning operation.

    ../_images/deployment_vgpu_section-08_subsection-01_image-03.png
    • Upon completion, the template displays within the target datacenter and/or host.

    ../_images/deployment_vgpu_section-08_subsection-01_image-04.png

Creating a Customization Specification file

Before provisioning a virtual machine from a template, we need to create a VM Customization Specifications. Use the following procedure to create a VM Customization Specifications:

  1. Click Polices and Profiles from home view.

    ../_images/deployment_vgpu_section-08_subsection-02_image-01.png
  2. From VM Customization Specifications tab, click New.

    ../_images/deployment_vgpu_section-08_subsection-02_image-02.png
  3. The New VM Guest Customization Spec window display pops up.

    ../_images/deployment_vgpu_section-08_subsection-02_image-03.png
  4. Proceed with… - Check Windows as Target guest OS. - Check Generate New Security ID (SID) checkbox. - If your organization currently utilizes an answer file, then you can load that file by checking the Use custom SysPrep answer file checkbox. - If your organization does not use this functionality, then leave the Use custom SysPrep answer file checkbox cleared; enter a name for the new specification in the Customization Spec Name field and click Next to proceed.

  5. The Set Registration Information tab displays.

  6. Enter the user and organization names in the Name and Organization fields, respectively.

    ../_images/deployment_vgpu_section-08_subsection-02_image-04.png
  7. Select Next to display the Set Computer Name tab.

  8. Enter a computer name.

    ../_images/deployment_vgpu_section-08_subsection-02_image-05.png
  9. Select Next to display the Enter Windows License tab.

    ../_images/deployment_vgpu_section-08_subsection-02_image-06.png
  10. Enter your Windows product key information or leave this field blank.

  11. Select Next to display Set Administrator Password.

    ../_images/deployment_vgpu_section-08_subsection-02_image-07.png
  12. Enter and confirm the administrator password (case sensitive) in the Password and Confirm Password fields.

  13. Select Next to display the Time Zone tab.

    ../_images/deployment_vgpu_section-08_subsection-02_image-08.png
  14. Use the Time Zone pull-down menu to select your time zone.

  15. Select Next to display the Run Once tab.

    ../_images/deployment_vgpu_section-08_subsection-02_image-09.png
  16. Enter any one-time commands in this tab if needed.

  17. Select Next to display the Configure Network tab.

    ../_images/deployment_vgpu_section-08_subsection-02_image-10.png
  18. Check the appropriate radio button to either…

    • Use standard network settings: This option automatically selects network settings.

    • Use manual network settings: For this option you enter the network description, IPv4 address, and/or IPv6 address in the respective fields.

    Note

    Teradici Cloud Access Software /PCoIP only work with IPv4 today.

  19. Click Next to display the Set Workgroup or Domain tab.

    ../_images/deployment_vgpu_section-08_subsection-02_image-11.png
  20. Check the appropriate radio button to select either a workgroup or domain.

  21. Enter the information workgroup or domain for the virtual machine to join in the appropriate fields.

  22. Select Next to display the Ready to complete tab.

    ../_images/deployment_vgpu_section-08_subsection-02_image-12.png
  23. Review your settings.

  24. Select Finish to view the new customization specification from the template.

    Note

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

Provisioning a Single Virtual Machine

Use the following procedure to provision a single vGPU-enabled virtual machine from a template.

  1. Right-Click the template and select New VM from this Template.

    • The Deploy From Template window displays with the Select a name and folder tab selected.

    ../_images/deployment_vgpu_section-08_subsection-03_image-01.png
  2. Enter a name for the new virtual machine.

  3. Select Next to display the Select A Compute Resource tab.

  4. Select the cluster or host.

  5. Select Next to display the Select Storage Tab.

  6. Select the target Storage Type and Data Store.

  7. Select Next to display the Select clone options tab.

    ../_images/deployment_vgpu_section-08_subsection-03_image-02.png
  8. Check the Customize the operating system checkbox.

  9. Select Next to display the Customize guest OS tab.

../_images/deployment_vgpu_section-08_subsection-03_image-03.png
  1. Select the template created on previous section.

    • The Ready to complete tab of the Deploy From Template window displays with the new customization specification listed.

    ../_images/deployment_vgpu_section-08_subsection-03_image-04.png
  2. Review the settings and select Finish to begin creating the virtual machine from the template.