Auto-discovering existing templates

You can create a Virtual Guest Package (VGP) by running a Virtual Guest Template Enrollment (VGTE) Job. This job does the following:

  • Automatically discovers templates on one or more servers.
  • Creates a VGP that corresponds to each discovered template, with the following restrictions:
  • If the VGTE Job discovers two templates with the same name, it creates only one VGP. For example, suppose you run the job against two servers — VirtualCenterA and VirtualCenterB. Each server has a template called Win2k3Gold. In this case, the VGTE Job creates only one VGP called Win2k3Gold.
  • If the Depot already contains a VGP with the same name, the VGTE Job does not create a second VGP. For example, suppose the Depot contains a VGP called Win2k3Gold. If the VGTE Job discovers a template called Win2k3Gold, it does not create a second VGP by that name.

You can auto-discover templates in the following environments:

  • VMware
  • Citrix
  • Red Hat Enterprise Virtualization (RHEV)
  • System Center Virtual Machine Manager (SCVMM)

To create a VGTE Job

  1. (Optional) Set up default configuration values that you want to apply to each virtual machine (VM) of a given OS.
    This feature is available for several of the most common platforms, including Windows 2003, Windows 2008, and Red Hat Enterprise Linux. If you do not set up default configuration values before running the VGTE Job, you will need to edit the resulting VGPs after you run the job.
    For information on how to set up default configuration values, see Setting up default configuration values (VGTE Job).
  2. Discover templates and create VGPs by using one of the following commands:
    This example uses the first command, createVGTemplateEnrollmentJobForServer.
    In this example:
    • The command discovers all the templates on a server called myServer.
      The server you specify here must be an entity manager server that contains templates. This entity manager server can be one of the following types:
      • vCenter server
      • RHEV Manager server
      • Citrix Master server
      • SCVMM Hyper-V server
    • The command puts the resulting VGPs in a depot folder called /vgpackages.
    • The command puts the job in the Jobs folder called /vgjobs.
    • Because executeNow (the last argument) is set to true in this example, the job executes immediately. If you set executeNow to false, you need to run the job at another time. You can use commands in the Job namespace to do this.
      Virtualization createVGTemplateEnrollmentJobForServer testVGTEjob /vgpackages /vgjobs myServer true
  3. Look at your newly created VGPs. There are two ways to do this:
    • By using the BLCLI:
      DepotObject listAllByGroup "/vgpackages" \\
      GOLD-RHEL55x32 \\
      GOLD-RHEL55x64 \\
      GOLD-win2k3x64-Agent \\
      GOLD-win2k8-32bit \\
      GOLD-win2k8r2x64 \\
      GOLD-win2k8x32 \\
      GOLD_win2k3-32 \\
      RHEL-5.3-x64-template \\
      Template-RHEL4-x64 \\
    • By using the BMC Server Automation Console:
      Navigate to the Depot folder and expand the vgpackages group.
Was this page helpful? Yes No Submitting... Thank you