cloud image centos 9 diskimage-builder


На любой впс с установленной centos 9

git clone https://opendev.org/openstack/diskimage-builder
cd diskimage-builder
yum install squashfs-tools python3-pip qemu-img
python3 -m virtualenv dib-venv
source dib-venv/bin/activate
python3 -m pip install -e .

DIB_RELEASE=9 FS_TYPE=xfs DIB_IMAGE_SIZE=5 disk-image-create centos vm epel -o centos9.qcow2

Create a minimal image based on AlmaLinux container image

This element sets the DISTRO_NAME var to ‘almalinux’. The release of AlmaLinux to be installed can be controlled through the DIB_RELEASE variable, which defaults the latest supported release.