VMware {code} Community
GregoryMachin
Contributor
Contributor

Exporting VM to OVA with additional fields.

Hi,

We have a script that unpacks an OVA and then does some black magic on the .ova file to edit and add additional information below, is there a way this information can be added at the time of exporting the OVA thus the job is only done once. Can the export also be managed vi Perl ?

<ProductSection>

      <Info>Information about the installed software</Info>

      <Product>Linux</Product>

      <Vendor>Me</Vendor>

      <Version>CentOS6.1.0</Version>

      <ProductUrl>www.endace.com</ProductUrl>

      <Category>Hostname</Category>

      <Property ovf:key="Hostname" ovf:qualifiers="MaxLen(64)" ovf:type="string" ovf:userConfigurable="true" ovf:value="local">

        <Label>Hostname</Label>

      </Property>

      <Category>Password</Category>

      <Property ovf:key="system-password" ovf:password="true" ovf:qualifiers="MaxLen(30)" ovf:type="string" ovf:userConfigurable="true" ovf:value="Passwordz">

        <Label>system-password</Label>

      </Property>

      <Category>Network Settings</Category>

      <Property ovf:key="Use_DHCP" ovf:qualifiers="ValueMap{&quot;YES&quot;,&quot;NO&quot;}" ovf:type="string" ovf:userConfigurable="true" ovf:value="YES">

        <Label>Use DHCP</Label>

        <Description>Use DHCP for network default is enabled</Description>

      </Property>

      <Property ovf:key="ip" ovf:type="string" ovf:userConfigurable="true" vmw:qualifiers="Ip" ovf:value="0.0.0.0">

        <Label>IP Address</Label>

        <Description>If DHCP is Enabled settings below does not apply</Description>

      </Property>

      <Property ovf:key="netmask" ovf:type="string" ovf:userConfigurable="true" vmw:qualifiers="Ip" ovf:value="0.0.0.0">

        <Label>Netmask</Label>

      </Property>

      <Property ovf:key="gateway" ovf:type="string" ovf:userConfigurable="true" vmw:qualifiers="Ip" ovf:value="0.0.0.0">

        <Label>Gateway</Label>

      </Property>

      <Property ovf:key="dns" ovf:type="string" ovf:userConfigurable="true" vmw:qualifiers="Ip" ovf:value="0.0.0.0">

        <Label>Primary DNS Server</Label>

      </Property>

      <Property ovf:key="domain" ovf:qualifiers="MaxLen(256)" ovf:type="string" ovf:userConfigurable="true" ovf:value=" ">

        <Label>Domain Name</Label>

      </Property>

      <Property ovf:key="zeroconf" ovf:qualifiers="ValueMap{&quot;YES&quot;,&quot;NO&quot;}" ovf:type="string" ovf:userConfigurable="true" ovf:value="NO">

        <Label>Use zeroconf on eth0 interface</Label>

      </Property>

     </ProductSection>

Thank you.

Reply
0 Kudos
0 Replies