Core: Unattended installation

Created on 7 Jan 2015  路  16Comments  路  Source: opnsense/core

While this may not be the most-requested feature, I'd like to start this discussion early while OPNsense source code is still being refactored.

I'd like to see unattended installations of OPNsense. I've created a rather hackish proof-of-concept for pfSense some time ago, which integrates nicely with Foreman:

This is based on the approach Foreman takes to do unattended installations of FreeBSD (10.x):

Of course, I'd love to see a native solution in OPNsense similar to kickstart (RedHat) or preseed (Debian). Maybe it's possible to use FreeBSD's native tools.

help wanted

Most helpful comment

Jos, thanks for considering this feature. From my experience with pfSense I've created a small list of features required to do proper unattended installations:

  • configure destination disk device / automatically select first disk device
  • do minimal configuration: initial password, timezone, ntp, hostname, domain, dns
  • configure networking interfaces WAN and LAN (dhcp/static, ip, netmask, defaultGW)
  • possible to install packages/addons/plugins
  • support pre/post install scripts (to allow for customizations, configure packages, etc.)

All 16 comments

I like the idea, just need a bit of time to discuss this to see if and how this can fit into our roadmap. We still have a lot of work with refactoring/cleaning up old code and bringing back features like squid and ids/ips.. so stay tuned... and thanks for your input!

Jos, thanks for considering this feature. From my experience with pfSense I've created a small list of features required to do proper unattended installations:

  • configure destination disk device / automatically select first disk device
  • do minimal configuration: initial password, timezone, ntp, hostname, domain, dns
  • configure networking interfaces WAN and LAN (dhcp/static, ip, netmask, defaultGW)
  • possible to install packages/addons/plugins
  • support pre/post install scripts (to allow for customizations, configure packages, etc.)

Thanks, that list is very helpful!

:+1:

similar discussion on the FreeBSD mailing list for future reference: http://marc.info/?l=freebsd-current&m=142109070604845&w=2

great. Looking for this feature for some time.
would be willing to test it on my ESX and with my pcengines boxes (ALIX/APU).

Discussed this feature request with the core team and we agree this should make it way to the roadmap. After 15.7 we will revised this and see what milestone should/can be attached.

I'd also love to see a headless install (for example on Alix type hardware) and/or pre-built images suitable to flash to a CF/SD card and boot the system from (like our old friend, m0n0wall)

I think we will focus on #1072 via SSH, adding a remote config import on top. Thoughts? :)

I'm unsure... How "unattended" is that?

Good question. It wouldn't be a full unattended installation per se. It would, however solve a few issues raised here to get somewhere with this feature request in the long run:

  • preconfigured network access during install media boot
  • a yet to be derived way to load remote custom configs prior to install
  • run automated scripts over ssh

timeout

uhm, sorry... this is still valid and unsolved, correct?

@mmoll are you planning to work on it?

@AdSchellevis nope.

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.

Was this page helpful?
0 / 5 - 0 ratings