Using an existing OVF file and staging it as a template and VGP

This topic contains the following sections:

This scenario assumes that an Open Virtualization Format (OVF) file is already present on the provisioning datastore. Information is taken from the OVF file and a template is created on a target Virtual Center server, then a corresponding Virtual Guest Package (VGP) is created.

To use an existing OVF file, use the importVM command, which takes the following arguments:

  • groupName — Parent group for this job
  • jobName — Name of the job
  • inputFile — Input file path

Sample input file

PathToOVF=a3fdda62-6a29-42ba-a18d-f39602194f2f/SuseTestVM.ovf
Target=/id/SystemObject/Server/21e41b60-760d-48f5-8c6b-c753e9f435a4/Assets/BMC_VMware_VirtualInfrastructureManager/82000000/domain-c23,/id/SystemObject/Server/21e41b60-760d-48f5-8c6b-c753e9f435a4/Assets/82000000/BMC_VMware_datastores/datastore1(1),cluster
ProvisionDataStore=Class://SystemObject/DataStore/Provisioning Datastore/localhost
VGPFolderPath=/VGP
VGPandTemplateName=myGentoo32

Input file element

Description

PathToOVF

(Required) This is the path to the .ovf file, relative to the provisioning datastore location.
Example:
PathToOVF=a3fdda62-6a29-42ba-a18d-f39602194f2f/SuseTestVM.ovf

Target

(Required) List of comma-separated statements about the target Virtual Center server. For information on how to build the Target statement, see Build the Target.
You can have multiple Target statements.

ProvisionDataStore

(Required) Datastore instance for intermediate storage.
Use this syntax:
Class://SystemObject/DataStore/Provisioning Datastore/<hostname_of_datastore>
Example:
Class://SystemObject/DataStore/Provisioning Datastore/ProvisioningStore

VGPFolderPath

(Required) The depot folder where you want to store the VGP that this job creates. For example:
VGPFolderPath=/VGP indicates a folder called VGP, located right under the top-level depot folder.
After the job successfully creates a template on the Virtual Center server, it creates a VGP in the folder specified here.

VGPandTemplateName

(Required) The name to use for both the VGP and the template(s).

Running the importVm command

JOB_GROUP=/VMImportJobs
JOB_NAME=ImportVM
INPUT_FILE=file:///c:/importVM_Input.txt
JOB_KEY=`blcli VMCaptureJob importVM $JOB_GROUP $JOB_NAME $INPUT_FILE'
Was this page helpful? Yes No Submitting... Thank you

Comments