I'd like to deploy a vyos ova and have it pre-configured with an ip address, and gateway, so the deployment and configuration can be fully automated.
The needed properties can be defined in the ovf spec like this:
<ProductSection> <Property ovf:key="ip-address" ovf:type="string" ovf:userConfigurable="true" ovf:value="" ovf:qualifiers="MinLen(4),MaxLen(15)"> <Label>IP address</Label> <Description>Specifies the IP address. If set, netmask and gateway are required too. Alternatively, enter 'dhcp' to use dhcp and ignore netmask and gateway.</Description> </Property> <Property ovf:key="netmask" ovf:type="string" ovf:userConfigurable="true" ovf:value=""> <Label>Netmask</Label> </Property> <Property ovf:key="gateway" ovf:type="string" ovf:userConfigurable="true" ovf:value=""> <Label>Gateway</Label> </Property> ...
At first boot the values can be found using vmtoolsd --cmd 'info-get guestinfo.ovfEnv' to generate initial ip configuration.