From baea7ac7ee2001d1de4d0fa3da75bc0564b14763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 20 Oct 2020 10:03:37 +0200 Subject: [PATCH] docs/HACKING: add a note about how to grow the image Yesterday, I spent more hours than I would like to admit debugging tests that was failing because the Fedora cloud base image has only 4 GB disk space. This commit adds a note for the future me. --- HACKING.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HACKING.md b/HACKING.md index 42f50fe64..9668e90d2 100644 --- a/HACKING.md +++ b/HACKING.md @@ -21,6 +21,9 @@ To start a ephemeral virtual machine using this repository, run: `IMAGE` has to be a path to an cloud-init-enabled image matching the host operating system, because that's what the packages where built for above. +Note that the Fedora/RHEL cloud images might be too small for some tests +to pass. Run `qemu-img resize IMAGE 10G` to grow them, cloud-init's growpart +module will grow the root partition automatically during boot. The second argument points to a directory from which cloud-init user-data is generated (see `tools/gen-user-data` for details). The one given above tries to