The oVirt System Test projects relies on the existence of a few QCOW images packaged as RPMS and made avaliable in a yum repository.
This project provides the scripts used to build those images.
Please note that building multiple QCOW images will require a lot of resources. Be sure to have at least 100Gb of free disk space, at least 16Gb of RAM and 4 cores.
-
Ensure you have
git
and required tools for building the image:dnf install -y git dnf install -y make autoconf automake rpm-build libguestfs-tools-c libvirt-client libvirt-daemon-config-network qemu-img virt-install
-
As a normal user, clone ost-image repository
git clone https://github.com/oVirt/ost-images.git
-
Set environment variables for configuring the build script:
export DISTRO=el9stream
Relevant environment variable you can use to configure the build script are:
DISTRO
- which image to build. Defaults to el8stream.BUILD_HE_INSTALLED
- build appliance image. set to0
or""
if you do not want it to be build. Not relevant for "node" distros. Defaults to1
.NODE_URL_BASE
- URL for ovirt-node/rhvh images - defaults to ovirt-node repoCENTOS_CACHE_URL
- URL we download ISOs from. If not provided the iso files must exist locally.OPENSCAP_PROFILE
- set a profile during installation. Defaults to xccdf_org.ssgproject.content_profile_stig on rhel8.
If you don't set
CENTOS_CACHE_URL
the full installation ISO of the operating system (not the boot image, the full DVD iso) must be added within./ost-images
directory and named${DISTRO}.iso
. -
Run the build script:
$ ./ost-images/build.sh Building distro el9stream with appliance: 1 with node image url: https://resources.ovirt.org/repos/ovirt/github-ci/ovirt-node-ng-image/ Distro doesn't work with OpenSCAP profiles properly, ignoring
-
At the end of the build you'll have the built RPMs in
./ost-images/rpmbuild/RPMS/x86_64