You can use the OVF authoring options that are included in a virtual machine vApp options to specify custom information that is preserved when you export the virtual machine as an OVF template.
vApp properties are a central concept to vApp deployment and self-configuration. They can turn a general OVF package into a running vApp instance with a custom configuration.
- When an OVF package is created the author adds the set of properties necessary for the vApp to function in an unknown environment. For example, properties that contain network configuration, a property that contains the email address of the system administrator, or a property that contains the number of expected vApp users.
- Some property values are entered by the user when the vApp is deployed, while other property values are configured by vCenter Server when the vApp is powered on. How properties are handled depends on the property type and the vCenter Server configuration.
When vCenter Server powers on a vApp, it creates an XML document that contains all properties and their values. This document is made available to each virtual machine in the vApp, and allows the virtual machines to apply the properties to their own environment.
Edit vApp Product Information for a Virtual Machine
If you want to export a virtual machine as an OVF template, you can specify product information that becomes available when you deploy a new virtual machine from the OVF template.
Procedure
Manage vApp Custom Properties for a Virtual Machine
You can define and manage custom properties that are stored in the OVF template when you export a virtual machine or vApp and are used by vCenter Server when you deploy the OVF template. OVF templates support static properties, which are often configured by the user, and dynamic properties, which are always set by the vCenter Server.
- Define the OVF properties, for example a DNS address or gateway, in the virtual machine or vApp.
- If you plan to export the virtual machine or the vApp to an OVF template:
- Set up the OVF environment transport to carry the settings into the virtual machine. See Edit OVF Details for a Virtual Machine.
- Write some glue-code to access and apply the information to the virtual machine.
See the VMware vApp Developer blog topic Self-Configuration and the OVF Environment for a discussion, sample code, and a video.
Procedure
- Navigate to a virtual machine from the vCenter Server inventory.
- On the Configure tab, expand Settings and select vApp options.
- You can manage custom properties from the Properties panel.
Option Description Add To create a property, click Add. Edit To edit an existing property, select the property and click Edit. Set Value To set a new value to the existing property, select the property and click Set Value. Delete To delete an existing property, select the property and click Delete.
Edit vApp IP Allocation Policy for a Virtual Machine
You can set or edit the IP allocation policy that the virtual machine uses when you export it to an OVF template and deploy the OVF template.
Procedure
Edit OVF Details for a Virtual Machine
A virtual machine's OVF settings allow you to customize the OVF environment, OVF transport, and boot behavior after OVF deployment. You can edit and configure settings that affect the OVF environment in the Virtual Machine Properties dialog box.
Prerequisites
vApp options must be enabled in order to access these options.