From e45533b739a016498e8a534aa24027b9adbf6034 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 30 Mar 2017 18:22:34 +0200 Subject: added tl;dr section for quick start --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 1a03963..5d2bacf 100644 --- a/README.md +++ b/README.md @@ -81,3 +81,22 @@ you need to adapt your boot configuration file (SLX_MOUNT_ROOT_OPTIONS). While the qemu builder produces a qcow2 image, it can be further compressed using: virt-sparsify --compress + +## TL;DR +0) git clone --recursive git://git.openslx.org/openslx-ng/packer-templates + or if already cloned +0) git submodule init && git submodule update + +1) Build base: + packer build -var-file=base.json -only=qemu ubuntu-16.04-amd64.json + +2) Build initramfs: + packer build -var-file=base.json -only=qemu -var='image_path='"$(jq -r '.builds[0].files[0].name' < manifest.json)"'' ansible-roles/run-playbook-only.json + +Produces: + - kernel & initramfs in ansible-roles/boot_files/ + - main qcow2 image under output-ubuntu.../packer-ubuntu-amd64 + +To boot: + - qocw2 image -> dnbd3 server + - kernel, initramfs and config pointing to the above image on http server -- cgit v1.2.3-55-g7522