photon icon indicating copy to clipboard operation
photon copied to clipboard

Add OVA template customize

Open metron-eging opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

It's not admin friendly to setup a Photon OS-VM by OVA template, when you need to setup keyboard layout, network interface and ssh enablement. If these 3 settings could be configured by ova deployment, the OVA template would be much more easier to use.

Describe the solution you'd like

Add configuration to ova with following subjects:

  • network interface
  • ssh enablement
  • keyboard layout

Describe alternatives you've considered

No response

Additional context

Here a "professional photoshop"-suggestion:

ova

metron-eging avatar Jan 25 '23 17:01 metron-eging

Hi @metron-eging,

Have you started implementing custom code for this? The idea is good.

Afaik there is no make-build-"à la carte"-parameter for this. An .ovf/.ova file can contain e.g. for the keyboard layout a prefilled dropdown listing (or a string, as well).

      <Property ovf:key="OvfClass44_Keyboard_Layout" ovf:qualifiers="ValueMap{&quot;Swiss-German&quot;,&quot;German-German&quot;,&quot;English-US&quot;}" ovf:type="string" ovf:userConfigurable="true">
        <Label>Keyboard Layout</Label>
      </Property>

The vixdiskutil contains the logic to read/write such "meta" properties (key,value). Orchestrating and automating those additional, unique "classes" through vhw versions, x86_64 + arm64, Photon OS backports without/with secureboot-option is a project win.

dcasota avatar Jan 25 '23 23:01 dcasota

Its not the same but I got round these limitations by using the cloud-init functionality included with Photon. The documentation here is not particularly good however I managed to find enough info online. Must write a blog post about it.....

kevsterd avatar May 22 '23 12:05 kevsterd