Okay I'm new to Foreman and oVirt but have been trying to set something up
in my lab for our developers.
Unfortunately i'm slightly outside of the IT realm at my company so I don't
have direct access to all the core facilities such as DHCP/DNS Servers.
Also it seems we have an existing PXE server on our network.
I managed to get Foreman Installed and configured most of my provisioning
tasks as well as linked Foreman to my oVirt instance in both directions
Foreman -> oVirt Compute and oVirt -> Foreman External Provider - not sure
I needed both but I configured it anyway.
During my initial testing of deploying a VM to oVirt everything seems to
work except when my VM PXE boots I'm grabbing an IP outside of my
infrastructure and it's trying to load windows so likely it's a domain PXE
server that seems to be taking precedence.
While troubleshooting this I found some iPXE to PXE chain booting thread
<Fetch boot files via http instead of TFTP - Foreman>
which I thought I might try to see if I could get it to grab my TFTP server
details in a different manner. I ran through these settings and now I
can't make any changes to my Provisioning Templates whatsoever.
Copy the iPXE firmware to the TFTP root directory:
cp /usr/share/ipxe/ipxe.lkrn /var/lib/tftpboot/
The source directory can be different on linux distributions, this is for
Red Hats. The file is shipped in ipxe-bootimgs package.
Do not use symbolic links as TFTP runs in chroot. When using SELinux,
remember to correct file contexts:
restorecon -RvF /var/lib/tftpboot/
When I try and Submit any changes I just get an error screen. I'm not sure
which log to look in as the main /var/log/foreman/production.log doesn't
update when I try and make these changes to try and track down the issue.
I have removed the ipxe.lkrn from /var/lib/tftpboot/ to try and back out
these changes, but so far no luck. I have restarted foreman.service as
well as rebooted the node entirely and every time I get the same error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator at [no address given] to inform
them of the time this error occurred, and the actions you performed just
before this error.
More information about this error may be available in the server error log.
So here I have two questions feedback on either would be most appreciated.
- How to point my PXE boot to my foreman server rather than the corporate
Is this on the oVirt side or Foreman Side to isolate which PXE server to
- Which logs do I need to check to fix my Provisioning Template debacle?