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.
This commit is contained in:
Ondřej Budai 2020-10-20 10:03:37 +02:00
parent 12b8ec2f58
commit baea7ac7ee

View file

@ -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 `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. 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 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 generated (see `tools/gen-user-data` for details). The one given above tries to