Feature #12634
closedNew HW Model flag pxe_loader in UI/API
Description
Hardware model will be enhanced with two new flags: PXE template specifies
PXE template kind and variant pair to use. Until today, this was hardcoded to
PXELinux or PXEGrub by selected operating system. Optionally, template variant
flag from OS could be simply dropped because PXE template implies variant to
use and there are no variants which share the same configuration syntax (this
is an open item).
Orchestration TFTP code must be modified to use multiple "KIND LOADER default
local boot" and "KIND LOADER global default" templates. Local and global boot
templates must be added for Grub2 new kind. Naming convention will be:
- PXELinux BIOS default local boot
- PXELinux UEFI default local boot
- PXEGrub BIOS default local boot
- PXEGrub UEFI default local boot
- etc. (the same for global default templates)
But only kind/variant is not enough, users need to select BIOS or UEFI booting
method. This is where Loader flag comes in - selection of three constants:
BIOS, UEFI and SecureBoot UEFI. The first two are obvious causing selection of
the correct DHCP filename when deploying TFTP configuration, the third one
select "shim.efi" chain loading capability for secure booting.
Hardware model fact importing will be enhanced - it will be possible to import
the loader flag from an extra custom fact (defined via global settings).
Updated by Lukas Zapletal over 8 years ago
- Related to Tracker #431: [TRACKER] UEFI PXE support added
Updated by Lukas Zapletal over 8 years ago
- Subject changed from Changes in orchestration code to support both PXELinux and Grub2 to Changes in orchestration code to support multiple kinds
We need to actually support up to three kinds: PXELinux, Grub1, Grub2 for one OS.
Updated by Mathieu Parent over 8 years ago
Lukas Zapletal wrote:
We need to actually support up to three kinds: PXELinux, Grub1, Grub2 for one OS.
PXELinux and Grub2 exists as BIOS (Legacy) and UEFI. Is this 5 kinds or 3 kinds x 2 flavors?
Updated by Lukas Zapletal over 8 years ago
PXELinux and Grub2 exists as BIOS (Legacy) and UEFI. Is this 5 kinds or 3 kinds x 2 flavors?
The latter, we aim to support both BIOS and EFI systems with either PXELinux and Grub (becaue of RHEL6 support) or PXELinux and Grub2. The goal is to deploy PXE files simultaneously so both systems can be booted up.
Updated by Lukas Zapletal over 8 years ago
I mean, Foreman will be able to deploy all three at once, but only two of the three will be likely used for one deployment. Grub1 is legacy, the PXE configuration will be present, but DHCP will hand over usually PXELinux and/or Grub2 on modern systems (RHEL7+).
Updated by Lukas Zapletal over 8 years ago
- Subject changed from Changes in orchestration code to support multiple kinds to New host/hostgroup flags pxe_template and loader
Host and hostgroups must be enhanced with two new flags: PXE template specifies PXE template kind and variant pair to use. Until today, this was hardcoded to PXELinux or PXEGrub by selected operating system. Optionally, template variant flag from OS could be simply dropped because PXE template implies variant to use and there are no variants which share the same configuration syntax (this is an open item).
But only kind/variant is not enough, users need to select BIOS or UEFI booting method. This is where Loader flag comes in - selection of three constants: BIOS, UEFI and SecureBoot UEFI. The first two are obvious causing selection of the correct DHCP filename when deploying TFTP configuration, the third one select "shim.efi" chain loading capability for secure booting.
Similarly to root password, a global setting could be provided for one or both flags for missing values (open item).
Updated by Mathieu Parent over 8 years ago
Lukas Zapletal wrote:
[...]
But only kind/variant is not enough, users need to select BIOS or UEFI booting method. This is where Loader flag comes in - selection of three constants: BIOS, UEFI and SecureBoot UEFI. The first two are obvious causing selection of the correct DHCP filename when deploying TFTP configuration, the third one select "shim.efi" chain loading capability for secure booting.
I'm not sure "booting method" is needed. At least, BIOS or UEFI can be differentiated from DHCP options. See "if option arch" at <https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-netboot-pxe-config-efi.html>.
Updated by Lukas Zapletal over 8 years ago
- Related to Bug #6539: When provisioning a new host, missing templates error is not descriptive added
Updated by Lukas Zapletal about 8 years ago
- Subject changed from New host/hostgroup flags pxe_template and loader to New HW Model flags pxe_template and loader
- Description updated (diff)
Updated by The Foreman Bot about 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3679 added
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/theforeman/community-templates/pull/291 added
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/theforeman/foreman_discovery/pull/292 added
Updated by Daniel Lobato Garcia about 8 years ago
- Target version changed from 1.7.1 to 117
Updated by Lukas Zapletal about 8 years ago
- Status changed from Ready For Testing to Duplicate
- Pull request deleted (
https://github.com/theforeman/foreman_discovery/pull/292, https://github.com/theforeman/community-templates/pull/291, https://github.com/theforeman/foreman/pull/3679)
This ticket is actually part of #431.
Updated by Lukas Zapletal about 8 years ago
- Status changed from Duplicate to Assigned
- Priority changed from Normal to High
- Target version changed from 117 to 1.6.2
- Pull request https://github.com/theforeman/foreman/pull/3679 added
Sorry for the noise, I misassigned the PR to the TRACKER issue.
Updated by The Foreman Bot about 8 years ago
- Status changed from Assigned to Ready For Testing
Updated by Lukas Zapletal about 8 years ago
- Subject changed from New HW Model flags pxe_template and loader to New HW Model flag pxe_loader in UI/API
Updated by Lukas Zapletal about 8 years ago
- Related to Bug #16093: DHCP deletion is scheduled twice on MAC change added
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/theforeman/foreman_discovery/pull/292 added
Updated by The Foreman Bot almost 8 years ago
- Pull request https://github.com/theforeman/community-templates/pull/291 added
Updated by Lukas Zapletal almost 8 years ago
- Related to Feature #12434: Allow override of filename options in DHCP host entry added
Updated by Jeff Sparrow almost 8 years ago
Lukas Zapletal wrote:
We need to actually support up to three kinds: PXELinux, Grub1, Grub2 for one OS.
Would be nice if there was a custom option added to this so people who want to bypass pxelinux, can. We do not use pxelinux, we load undionly (or whatever we need based on the host, undionly.pxe/kpxe/kkpxe, ipxe.lkrn, etc) and then chain right into iPXE. If I understand correctly, even with this change we will still end up manually editing foreman source code to suit our needs.
What about a custom option that accepts a string so people can load their own pxe images?
Updated by Lukas Zapletal almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 4cbf879ed5957978afd74b3707c8a6b16fa18225.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 160
Updated by Lukas Zapletal almost 8 years ago
We currently implemented that as a fixed list with "None" option.
What about a custom option that accepts a string so people can load their own pxe images?
I'd rather see a patch that will allow loading one or more custom entries from foreman.yaml file (name and filename pairs). Free form is little bit dangerous (e.g. security considerations etc). Feel free to provide a patch, should be easy to do.
Updated by The Foreman Bot almost 8 years ago
- Pull request https://github.com/theforeman/foreman/pull/3778 added
Updated by Dominic Cleal almost 8 years ago
- Related to Bug #16318: PXE templates do not work in safemode added
Updated by Dominic Cleal almost 8 years ago
- Related to Bug #16475: Provisioning fails when proxy is not updated added
Updated by Ivan Necas almost 8 years ago
- Related to Bug #16532: Selecting architecture in hostgroup doesn't update operating system added
Updated by Dominic Cleal almost 8 years ago
- Related to Bug #16819: TFTP Rebuild failed for host added
Updated by Dominic Cleal almost 8 years ago
- Related to Feature #17297: GRUB 2 PXE loader entries for Debian OS family added
Updated by Tomer Brisker over 7 years ago
- Related to Bug #17503: Host model load causes unnecessary loads on instantiation added
Updated by Marek Hulán over 7 years ago
- Related to Bug #18381: PXE loader attribute does not work with host group inheritance added