How to Manage Host Templates

This section describes how to create and manage host templates in ALM.

For an overview, see Host Templates Overview.

Note: This task is part of a higher-level task. For details, see How to Set Up Cloud Hosts.

Creating a Host Template

This task describes how to create a host template in ALM.

Creating Images for Microsoft Azure Cloud Accounts

To create images for Microsoft Azure cloud accounts:

  1. Create a new instance from the cloud console, using a Windows Server 2008 R2 Enterprise SP1 x64 Image. For details, see http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-create-custom/.

  2. Connect to the instance that you just created. For details, see http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-log-on-windows-server/.

  3. Install a standalone Load Generator in Performance Center.

  4. Turn off firewalls using the following command:

    netsh advfirewall set allprofiles state off
  5. Register the LGCloudAgent service using the following command:

    sc create LGCloudAgent binPath= "c:\Program Files (x86)\HP\Load Generator\bin\LGCloudAgent.exe" start= auto
  6. Disable autostart for the LoadRunnerAgent service:

    • sc config LoadRunnerAgent start= demand
    • sc config remotemanagementagent start= demand
  7. Run the System Preparation Tool using the Generalize and Shutdown options, as described in http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-capture-image-windows-server/. Wait until the instance stops.

    • cd %windir%\system32\sysprep
    • sysprep (generalize, shutdown)
  8. Create an image from the instance. Value the following fields:

    1. $new_image_name: The image name.

    2. $new_image_label: The image label.

    3. $service_name: The name of the service of the instance provisioned in Step 1.

    4. $deployment_name: The deployment name.

    5. $role_name: The name of the virtual machine.

Modifying Host Template Details

To modify details for a host template:

  1. Log into the project that created the host template.
  2. In Cloud Settings > Host Template, select a host template in the grid and click the Host Template Details button . This opens the Host Template Details Dialog Box.
  3. Make any necessary changes and click OK.

Deleting a Host Template

To delete a host template:

  1. Log into the project that created the host template you wish to delete.
  2. In Cloud Settings > Host Templates, select a host template in the grid and click the Delete button . The host template is deleted.

Note: Deleting a host template does not terminate cloud hosts provisioned from that template. See How to Provision and Terminate Cloud Hosts for more information about terminating cloud hosts.

Send Help Center Feedback

Let us know how we can improve your Help Center experience.

Send your email to: [email protected]