From 4a02db984677298ea6c960cda7cb6c72ca1e1fa1 Mon Sep 17 00:00:00 2001 From: Junya Noguchi Date: Fri, 4 Apr 2025 11:01:14 +0900 Subject: [PATCH] Add image build method for verified OS. We tested and successfully built Rocky Linux and Alma Linux Ironic images using Diskimage-builder. Add the method. Change-Id: I22758dd59c54038e7ed72e513c61fcddba0ef473 --- doc/source/user/creating-images.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/source/user/creating-images.rst b/doc/source/user/creating-images.rst index 446f2fcbb0..5e94f3cbf9 100644 --- a/doc/source/user/creating-images.rst +++ b/doc/source/user/creating-images.rst @@ -106,6 +106,24 @@ only the main image is used. If you want to use Fedora image, replace ``ubuntu`` with ``fedora`` in the chosen command. +To build images for distributions other than ubuntu, follow the build method +for Whole disk images. + +- Example for Rocky Linux + + If you use the rocky-container element, specify the ``openssh-server`` and + ``cloud-init`` elements to enable ssh login with a key pair, and specify the + ``growroot`` element to adjust the disk size. + + .. code-block:: console + + $ export DIB_CONTAINERFILE_PODMAN_ROOT=1 + $ disk-image-create rocky-container vm dhcp-all-interfaces \ + > block-device-efi openssh-server cloud-init growroot -o my-image + +If you want to use Alma Linux image, replace ``rocky-container`` with +``almalinux-container`` in the chosen command. + .. _disk-image-builder: https://docs.openstack.org/diskimage-builder/latest/ Virtual machine