On Wed, 2018-12-12 at 17:10 -0600, Carl Karsten wrote:> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > > On Wed, Dec 12, 2018 at 4:54 PM Joakim Tjernlund > <Joakim.Tjernlund at infinera.com> wrote: > > > While I am here, I want to ask: > > Is there a way to create a combined PXE boot img for both BIOS and EFI ? > > Currently one have to use 2 different images. > > I'm a little fuzzy what you mean here.Can you have one pxelinux.0 which will work for both UEFI resp. BIOS PXE ?> > do you want the tftp server to send boot img? > > I think you should explain the steps of what boots what. > > > > Also, can one have GRUB bootable PXE img? > > I would ask on a grub list ;) >No, this is a syslinux thing. Basically have grub load(over tftp) and run pxelinux.0 using some other syslinux module. Jocke
On Wed, Dec 12, 2018 at 5:29 PM Joakim Tjernlund <Joakim.Tjernlund at infinera.com> wrote:> > On Wed, 2018-12-12 at 17:10 -0600, Carl Karsten wrote: > > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > > > > > On Wed, Dec 12, 2018 at 4:54 PM Joakim Tjernlund > > <Joakim.Tjernlund at infinera.com> wrote: > > > > > While I am here, I want to ask: > > > Is there a way to create a combined PXE boot img for both BIOS and EFI ? > > > Currently one have to use 2 different images. > > > > I'm a little fuzzy what you mean here. > > Can you have one pxelinux.0 which will work for both UEFI resp. BIOS PXE ? >I don't think so, but I think this may solve the problem: (I've seen it work, not sure what state it is in now, lots of work has been done and I haven't needed to uefi pxe boot in about a year. https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/files/pxe.conf # https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence#Using_ProxyDHCP_.28dnsmasq.29> > > > do you want the tftp server to send boot img? > > > > I think you should explain the steps of what boots what. > > > > > > > Also, can one have GRUB bootable PXE img? > > > > I would ask on a grub list ;) > > > > No, this is a syslinux thing. Basically have grub load(over tftp) and run pxelinux.0 using > some other syslinux module.you want grub to pxe boot? I think this: dhcp-boot=tag:efibc,boot/grubnetx64.efi.signed https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/files/pxe.conf#L23 https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/templates/grub.cfg.j2 that's grub pxe booting Debian installer. once you have grub pxe booting, you can add thing for it to boot: menuentry "ipxe" { linux16 ipxe/ipxe.lkrn }> > Jocke >-- Carl K
On Wed, Dec 12, 2018 at 6:30 PM Joakim Tjernlund via Syslinux <syslinux at zytor.com> wrote:> > On Wed, 2018-12-12 at 17:10 -0600, Carl Karsten wrote: > > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > > > > > On Wed, Dec 12, 2018 at 4:54 PM Joakim Tjernlund > > <Joakim.Tjernlund at infinera.com> wrote: > > > > > While I am here, I want to ask: > > > Is there a way to create a combined PXE boot img for both BIOS and EFI ? > > > Currently one have to use 2 different images. > > > > I'm a little fuzzy what you mean here. > > Can you have one pxelinux.0 which will work for both UEFI resp. BIOS PXE ?BIOS PXE always enters execution at the first byte. UEFI uses a PE32+ image format. The PE32 header starts with the string "MZ" which doesn't bode well for this idea. -- -Gene
On Tue, 2018-12-18 at 14:10 -0500, Gene Cumm wrote:> On Wed, Dec 12, 2018 at 6:30 PM Joakim Tjernlund via Syslinux > <syslinux at zytor.com> wrote: > > On Wed, 2018-12-12 at 17:10 -0600, Carl Karsten wrote: > > > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > > > > > > > > On Wed, Dec 12, 2018 at 4:54 PM Joakim Tjernlund > > > <Joakim.Tjernlund at infinera.com> wrote: > > > > > > > While I am here, I want to ask: > > > > Is there a way to create a combined PXE boot img for both BIOS and EFI ? > > > > Currently one have to use 2 different images. > > > > > > I'm a little fuzzy what you mean here. > > > > Can you have one pxelinux.0 which will work for both UEFI resp. BIOS PXE ? > > BIOS PXE always enters execution at the first byte. UEFI uses a PE32+ > image format. The PE32 header starts with the string "MZ" which > doesn't bode well for this idea. >Yes, that seems a bit difficult. What about booting syslinx from GRUB2 UEFI ? that is instead of PXE boot from BIOS I want grub to start some syslinux binary that continues behaves like PXE boot. I want to automatise the PXE boot so I can initiate one by rebooting into GRUB go from there Jocke