eReuse / workbench

The eReuse.org Workbench is a toolset to assist with the diagnostic, benchmarking, inventory and installation of computers.
https://www.ereuse.org
GNU Affero General Public License v3.0
13 stars 7 forks source link

New script to generate server image (OVA) #60

Closed ivilata closed 7 years ago

ivilata commented 7 years ago

Currently, the VirtualBox server OVA image is created manually from a previous release. This is very brittle, unmaintainable and requires a lot of manual intervention, plus it lacks documentation on the process (the PXE_maker.md document only explains how to setup a physical server, and the virtual one requires a lot more tuning).

A script or some automated procedure should be developed both as documentation and to create the VM, configure and pack it as an OVA. Besides scripting, SCM systems like Ansible may be used in the process.

ivilata commented 7 years ago

Branch build-ova-60 in its current state contains the build_ereuse_ova.sh script which, when run as root, automatically builds the OVA by extracting the same Ubuntu Mini Remix ISO as used for eReuseOS, then customizing it under KVM/QEMU and finally packing everything together in a VirtualBox VM.

I've tested the resulting image and it seems to work well. The only downside that I find right now is that the resulting OVA file is nearly 100 MiB bigger than our latest v8.0a1 OVA. Maybe some unnecessary packages may be located and added to the unnecessary package removal phase.

But all in all, I think this can be merged into master. It also carries no changes to the main DDI codebase, so no new eReuseOS ISO or data archive would be needed for the next release.

ivilata commented 7 years ago

I also enabled scripts/configure-server.sh to be run on an existing host and configure it to act as an eReuse PXE server.