Installation with anaconda.cfg and rocky-9.4-x86_64-dvd.iso

I did a manual installation of Rocky Linux 9 and got the anaconda-ks.cfg file from the root directory in order to use the same configurations on installation to other (iLo HP) servers. I’m letting this anaconda-ks.cfg file be available over HTTP.

But I am confused on how I would initiate installations with reference to this kickstart file? I tried adding the following to the extracted isolinux.cfg file in the isolinux directory.

label netlab4
  menu label KickStart
  menu default
  kernel vmlinuz
  append initrd=initrd.img dns=DNS gateway=GTW ip=IP netmask=NM ks=http://IP/anaconda-ks.cfg

After adding this, I tried rebuilding the ISO with this command and then inserting it as a cdrom + rebooting the server to initiate the installation, but it doesn’t seem like that is doing anything.

sudo mkisofs -o ~/Documents/Rocky-9-custom.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T /path/to/iso_contents/

So now I’m wondering how would I do an installation through a cdrom (CD/DVD) iso file with this kickstart file? I want to avoid the use of any user interface.

Thank you for any advice!