From 2a3251199fdfab0f278f11fd9cd674e54dbc917b Mon Sep 17 00:00:00 2001 From: Michael Loeffler Date: Tue, 18 Aug 2020 22:53:56 +0200 Subject: [PATCH 1/4] Added "time" to the build dependencies The program /usr/bin/time is not installed by default, so add it to the build depends. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a98bf9c..376bf2b 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Debian Buster (10) or higher system: * dosfstools * qemu-user-static * binfmt-support +* time Do note that –at least currently– vmdb2 uses some syntax that is available only in the version in testing (Bullseye). From 4e9c3b964853c9e8f7c6b1d212e6ce69fcbfaf6f Mon Sep 17 00:00:00 2001 From: Michael Loeffler Date: Thu, 20 Aug 2020 12:00:29 +0000 Subject: [PATCH 2/4] Added kpartx to the build depends kpartx is used by vmdb2 and isn't installed by default --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 376bf2b..6a2f8e1 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Debian Buster (10) or higher system: * qemu-user-static * binfmt-support * time +* kpartx Do note that –at least currently– vmdb2 uses some syntax that is available only in the version in testing (Bullseye). From ba5b82a4e076daac0c6fa7e81514476c47420f77 Mon Sep 17 00:00:00 2001 From: Michael Loeffler Date: Thu, 20 Aug 2020 12:03:13 +0000 Subject: [PATCH 3/4] Specified the version requirements of vmdb2 in the build depends The default version of Debian 10 is too old, but the version from Debian unstable works. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a2f8e1..a1ce67a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ cd image-specs For this you will first need to install the following packages on a Debian Buster (10) or higher system: -* vmdb2 +* vmdb2 (>= 0.17) * dosfstools * qemu-user-static * binfmt-support From 334b1f4b4ffd86ae1bce9ff70c4c03da79a7070c Mon Sep 17 00:00:00 2001 From: Michael Loeffler Date: Thu, 20 Aug 2020 12:27:53 +0000 Subject: [PATCH 4/4] Added a hint about binfmt-support to the README.md In some cases qemu-user-static is installed before binfmt-support, which causes it to not register its binary formats. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a1ce67a..b30f6a7 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,19 @@ Debian Buster (10) or higher system: * vmdb2 (>= 0.17) * dosfstools -* qemu-user-static * binfmt-support +* qemu-user-static * time * kpartx Do note that –at least currently– vmdb2 uses some syntax that is available only in the version in testing (Bullseye). +If debootstrap still fails with exec format error, try +running `dpkg-reconfigure qemi-user-static`. This calls +`/var/lib/dpkg/info/qemu-user-static.postinst` which uses binfmt-support +to register the executable format with /usr/bin/qemu-$fmt-static + This repository includes a master YAML recipe (which is basically a configuration file) for all of the generated images, diverting as little as possible in a parametrized way. The master recipe is