I have setup a PXE server with a local HTTPD server to host the ISO files
the config looks like
vi /etc/httpd/conf.d/pxeboot.conf
Alias /centos-st8 /var/pxe/centos-st8
<Directory /var/pxe/centos-st8>
Options Indexes FollowSymLinks
# access permission
Require ip 127.0.0.1 192.168.0.0/24
</Directory>
If I then mount the ISO to /var/pxe/centos-st8, everything works as expected.
I was hoping to simply copy the contents of the ISO to avoid the need for mounting the ISO.
I tried the following:
mkdir ~/dvd
mount -t iso9660 -o loop,ro /home/CentOS-Stream-8-x86_64-20210927-dvd1.iso ~/dvd
cp -r ~/dvd/* /var/pxe/centos-st8/
chcon -R -t httpd_sys_content_t /var/pxe/centos-st8/
But when the kickstart loads it says it can' find the installation source.
I confirmed I can access the ISO files via HTTPD regardless if I mounted them or copied them.
Is there something obvious I'm missing on why it doesn't work with the copy? The alternative is to use fstab to have a more persistent mount, but i am wondering why the copy fails?
EDIT: looks like some errors in the http logs (cherry-picked some related errors)
[Tue Oct 12 03:52:37.662605 2021] [core:error] [pid 1619:tid 140286500001536] (13)Permission denied: [client 192.168.0.123:52794] AH00035: access to /centos-st8/images/install.img denied (filesystem path '/var/pxe/centos-st8/images/install.img') because search permissions are missing on a component of the path