-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pxe menu variables #572
Comments
I have a tutorial here in the FOG forums that talk about post install scripts. This post should show you the available variables: https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/17?_=1692046939324 |
We're looking for preinstall variables that can be used during PXE booting. So I can tell the bootloader kernel arguments what config file to pull for this specific host that is booting. Example: The is a PXE menu item parameters, we need to dynamically fill in the
|
I don't know specifically if the hostname variable is set. The iPXE environment is a bit limited in regards to variables from FOG. The boot.php program does the variable replacement before the iPXE menu is created. It may be possible to add the required variables, but I don't know myself how its done. If you want to see what variables are in the FOG iPXE menu you can with a browser make a call to http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00 That will show you the ipxe menu text. You should see how the variables are built. Now I don't know your workflow, but you could do some call logic changes in the fog post init script. This script is run before any imaging starts. You will have access to the FOG variables in there too. |
This is what we are following to get things booted. If there is a way to make this so that each registered host has its own config file set in kernel parameters, that is what we are looking for. From the docs it is all being loaded from preconfigured image files, do/should we be uploading those to fog instead, and using them that way. Any and all suggestions/help is needed and appreciated. https://docs.harvesterhci.io/v1.1/install/pxe-boot-install/ Our expectations with using FOG was the following scenario
Can this scenario be done? |
Other than fog-ip, what all other variables are able to be used? We specifically are looking to use hostname of the registered host.
The text was updated successfully, but these errors were encountered: