Creating FDI with centos9 fail

Problem: cant create fdi image with centos 9

Expected outcome: fdi-image with centos 9 as os

Foreman and Proxy versions: 3.4.1

Foreman and Proxy plugin versions: dont know

Distribution and version: dont know

Other relevant data:

Hi,

I have a vagrant file that does the following

  1. spins up a vm using virtualbox

  2. install build tools like lorax, anaconda, pykickstart, git, qemu-kvm etc..)

  3. clone fdi source code (version 5.0.0) from github

  4. add some packages for my needs

  5. generate consolidated kickstart from individual .ks files

  6. builds the iso image using lorax/livemedia-creator in non-virtualized mode.

issue is, that it fails every time.

is it even possible to create FDI image with centos 9? on the github repo it says the following which is a bit confusing

FDI currently builds only against EL 8 and building in a container will NOT work (docker/podman). The building host MUST be EL 8, other versions or Red Hat compatible systems (e.g Fedora) WILL fail to build.

and then

To build the image (this must be done on a EL 9 host):

source: GitHub - theforeman/foreman-discovery-image: Foreman discovery image live distro (Building section)

Thanks for the helpers!

I’ve just did so last week on CS9.

What’s the error you’re getting?

(But yes, the readme could use some updates)

Hi,

it fails on software selection (anaconda)

says its missing build-livecd-root.conf.sh and i cant find it even in the github repo

can you share you vagrant config of how you pointed to centos9 repos etc..

Don't uninstall avahi-libs · theforeman/foreman-discovery-image@5d13e68 · GitHub should fix the software selection error

the missing conf.sh is harmless

1 Like

ok so i deleted it from the ks file and now i have an error about

Error: "Unable to set password for new user: status=1"

so i switched the hash from MD5 to SHA-512 (it seems EL9 requires it?)

does EL9 requires an explicit authselect directive in the kickstart?

how did you overcome the set password for user issue? and what version? im trying with 5.0.0

I didn’t try to set a password, so didn’t run into that problem

when i try that i get the error

2025-11-13 11:42:46,982: The following mandatory spokes are not completed:
2025-11-13 11:42:46,982: Root password
2025-11-13 11:42:46,983: User creation

any auggestion?

So all I do is:

cd aux/vagrant-build
vagrant up fdi-builder

Which should be identical to spinning up an empty CentOS Stream 9 and doing:

sudo dnf -y install pykickstart git wget lorax anaconda
git clone …
./build-kickstart fdi-stream9.ks nightly
sudo ./build-livecd-root "5.1.1" . "nomodeset nokaslr" novirt
1 Like

yup, i ended up doing it as well, only with my modifications.

thanks for the help!