Page MenuHomeVyOS Platform

Add initial network configuration to the ovf spec.
Closed, ResolvedPublicFEATURE REQUEST

Description

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.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Related Objects

StatusSubtypeAssignedTask
ResolvedENHANCEMENTsyncer
ResolvedFEATURE REQUESTUnicronNL

Event Timeline

robinelfrink triaged this task as Wishlist priority.Jun 28 2018, 11:56 AM

I'd be happy to create a merge request for this, but I cannot test anything because the ansible role uses a command unkown to me, vmdk-convert. Where does that come from?

syncer changed the visibility from "Subscribers" to "Public (No Login Required)".
syncer edited projects, added VyOS 1.2 Crux; removed OVA/OVF distribution.
syncer added a subscriber: syncer.

Can we add this functionality as planned?
need it for 1.2
so we can deploy it with ovftool

syncer raised the priority of this task from Wishlist to Normal.Sep 4 2018, 12:21 AM
syncer edited projects, added VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
syncer renamed this task from Add initial network configuration to the ovf spec. to .Oct 18 2018, 6:05 AM
syncer changed the subtype of this task from "Task" to "Feature Request".Oct 20 2018, 7:02 AM
syncer raised the priority of this task from Normal to High.
syncer added a subscriber: dmbaturin.

This will be a nice feature, exactly what I needed. Is it hard to implement? I could help testing the ovf deployment to vSphere.

syncer moved this task from In Progress to Finished on the VyOS 1.2 Crux (VyOS 1.2.1) board.