Re: Automatically disabling PXE boot
Tks. Quite clear & useful. Diego Il 07/06/2023 12:57, Andrew Ruthven ha scritto: On Wed, 2023-06-07 at 10:05 +0200, Diego Zuccato wrote: Hi Andrew. That would be OK, but I don't need (and it's actually undesirable) to reinstall at every reboot: one of the systems actually requires an extra reboot to complete the setup... if installation restarts, I'll find the system in a bootloop... Or maybe I didn't understand and you're calling fai-chboot and just not bothering about DHCP ? Oh, we're not doing a reinstall on each boot, that'd suck. While we aren't using fai-chboot, similar concept. We have a pxelinux.cfg/default file that has: default localboot label localboot localboot 0 So by default the boxes will just boot off the local disk. -- Andrew Ruthven, Wellington, New Zealand and...@etc.gen.nz | Catalyst Cloud: | This space intentionally left blank https://catalystcloud.nz | -- Diego Zuccato DIFA - Dip. di Fisica e Astronomia Servizi Informatici Alma Mater Studiorum - Università di Bologna V.le Berti-Pichat 6/2 - 40127 Bologna - Italy tel.: +39 051 20 95786
Re: Automatically disabling PXE boot
On Wed, 2023-06-07 at 10:05 +0200, Diego Zuccato wrote: > Hi Andrew. > > That would be OK, but I don't need (and it's actually undesirable) to > reinstall at every reboot: one of the systems actually requires an extra > reboot to complete the setup... if installation restarts, I'll find the > system in a bootloop... > > Or maybe I didn't understand and you're calling fai-chboot and just not > bothering about DHCP ? Oh, we're not doing a reinstall on each boot, that'd suck. While we aren't using fai-chboot, similar concept. We have a pxelinux.cfg/default file that has: default localboot label localboot localboot 0 So by default the boxes will just boot off the local disk. -- Andrew Ruthven, Wellington, New Zealand and...@etc.gen.nz | Catalyst Cloud: | This space intentionally left blank https://catalystcloud.nz |
Re: Automatically disabling PXE boot
Hi Andrew. That would be OK, but I don't need (and it's actually undesirable) to reinstall at every reboot: one of the systems actually requires an extra reboot to complete the setup... if installation restarts, I'll find the system in a bootloop... Or maybe I didn't understand and you're calling fai-chboot and just not bothering about DHCP ? Diego Il 07/06/2023 09:57, Andrew Ruthven ha scritto: Hey, On Wed, 2023-06-07 at 09:45 +0200, Diego Zuccato wrote: IIUC hooks are run on the system being installed, so I could use LAST hook to somehow signal FAI host to run "fai-chboot -d host". But that would leave DHCP server sending a DHCP OFFER for a PXE boot that's been disabled. Maybe I'm reinventing the wheel, but couldn't find anything. We just leave our servers to PXE boot. It slows boot down a little, but we don't reboot that often, so, meh. The reduction in mucking around required to enable PXE boot is worth a slightly slow boot in my opinion. Cheers, Andrew -- Andrew Ruthven, Wellington, New Zealand and...@etc.gen.nz | Catalyst Cloud: | This space intentionally left blank https://catalystcloud.nz | -- Diego Zuccato DIFA - Dip. di Fisica e Astronomia Servizi Informatici Alma Mater Studiorum - Università di Bologna V.le Berti-Pichat 6/2 - 40127 Bologna - Italy tel.: +39 051 20 95786
Re: Automatically disabling PXE boot
Hey, On Wed, 2023-06-07 at 09:45 +0200, Diego Zuccato wrote: > IIUC hooks are run on the system being installed, so I could use LAST > hook to somehow signal FAI host to run "fai-chboot -d host". But that > would leave DHCP server sending a DHCP OFFER for a PXE boot that's been > disabled. Maybe I'm reinventing the wheel, but couldn't find anything. We just leave our servers to PXE boot. It slows boot down a little, but we don't reboot that often, so, meh. The reduction in mucking around required to enable PXE boot is worth a slightly slow boot in my opinion. Cheers, Andrew -- Andrew Ruthven, Wellington, New Zealand and...@etc.gen.nz | Catalyst Cloud: | This space intentionally left blank https://catalystcloud.nz |
Automatically disabling PXE boot
Hello all. I'm returning to FAI after being forced to use xCat (long & sad story... short version: I didn't like it). One of the features of xCat (possibly the only one I liked...) is that I can avoid touching BIOS configuration on the client, leaving it to always try PXE first and fallback to HDD when PXE fails. That does have the advantage that I don't need IPMI or a tech near a crashed system: it's enough to have someone that can press the 'reset' button (or a cheap switched plug). IIUC hooks are run on the system being installed, so I could use LAST hook to somehow signal FAI host to run "fai-chboot -d host". But that would leave DHCP server sending a DHCP OFFER for a PXE boot that's been disabled. Maybe I'm reinventing the wheel, but couldn't find anything. Any hints? TIA. -- Diego Zuccato DIFA - Dip. di Fisica e Astronomia Servizi Informatici Alma Mater Studiorum - Università di Bologna V.le Berti-Pichat 6/2 - 40127 Bologna - Italy tel.: +39 051 20 95786