mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-05 06:34:21 +01:00
Qemu merely limits the memory-backend-file size to be aligned to page_size instead of section size(arm64 1GB). Please see file_ram_alloc() in qemu exec.c. If we use 1024MB, the generated image size will be 3-4 times bigger than the original one. After relaxing it, the image size will be changed from 1G to 300M+ on arm64 with Fedora 29 rootfs's default configuration. I do see there are some different limitation for ram_block on other arches (e.g. s390x). So gracefully keep other arches unchanged here. Fixes #404 Signed-off-by: Jia He <justin.he@arm.com>
Kata Containers image generation
A Kata Containers disk image is generated using the image_builder.sh script.
This uses a rootfs directory created by the rootfs-builder/rootfs.sh script.
Creating a guest OS image
To create a guest OS image run:
$ sudo ./image_builder.sh path/to/rootfs
Where path/to/rootfs is the directory populated by rootfs.sh.
Note
: If you are building an image from an Alpine rootfs, see the important note here.
Further information
For more information about usage (including how to adjust the size of the image), run:
$ ./image_builder.sh -h