summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJonathan Bauer2017-03-30 18:22:34 +0200
committerJonathan Bauer2017-03-30 18:22:34 +0200
commite45533b739a016498e8a534aa24027b9adbf6034 (patch)
treed552d9ce9eb309eae91705f9fc84a9bbb3aac267 /README.md
parentignore manifest.json files (diff)
downloadpacker-templates-e45533b739a016498e8a534aa24027b9adbf6034.tar.gz
packer-templates-e45533b739a016498e8a534aa24027b9adbf6034.tar.xz
packer-templates-e45533b739a016498e8a534aa24027b9adbf6034.zip
added tl;dr section for quick start
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
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 <qcow2_file> <output_qcow2_file>
+
+## 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