This page has moved to docs.citrix.com. You can now find all Smart Tools documentation at the Citrix Product Documentation site. Please update any page links to the new URL: https://docs.citrix.com/en-us/smart-tools/deploy-blueprints/set-static-ip-address-ova-files-vmware-vsphere.html.
For static IP addresses to work with an OVA file, the OVA file must read values from vami properties defined in it.
Learn more about vami properties from the VMware community website.
Read values from vami properties and set static IP addresses
When you launch an OVA file with a static IP address, the following values are set:
prop:ip0=<ip address> (static IP address for example 10.0.0.2)
prop:netmask0=<netmask> (netmask for the configured static IP address for example 255.255.255.0)
prop:gateway=<gateway> (default gateway for the configured static IP address for example 10.0.0.1)
Note: Your OVA file must read the above values from vami properties and use them to set static IPs on the desired NIC.
On Linux, you must enable the following first Boot script and run it:
#Reads and sets IP values from vami
The following figure shows how to enable Boot scripts using VMware Studio:
You can download the complete vami script from the VMware community page.