Iāve used my Ubuntu Linux desktop workstation diskless for a while back in 2009, no special hardware, no special bios (nor UEFI, this is all before UEFI was a thing)
The setup i had was the following:
- pxe relies on DHCP next server and filename to fetch the pxelinux bootloader over TFTP. These days dnsmasq is all you need - it has both a DHCP server and TFTP server built-in.
- pxelinux utilizes the pxe āundiā network stack to fetch, load and start executing the kernel and initrd image (in my case it was also from TFTP, but http can work these days too)
- kernel starts, initramfs starts doing its thing⦠it contains networks card drivers and firmwares, small DHCP client, and an iscsi initiator. Initramfs hook invokes the initiator - and once the block device appears, itās mounted, BusyBox calls pivot_root , old root is unmounted and actual init is execād.
I initially installed it using debootstrap (I had history with Gentoo and didnāt really know Ubuntu that well).
These days, Iād use an existing os and a VM to do an install into an iscsi target, with /boot on sshfs - so that new kernels and initrd/initramfs images can go someplace where pxelinux bootloader can pick them up.
⦠and Iād setup dropbear-initramfs - so that I can ssh into the system and poke around if thereās issues, and Iād probably be more security concious in my setup than I was back then.
For example Iād probably run luks encryption on the iscsi target⦠and Iād investigate maybe some kexec compatible key passing mechanism, so that I donāt have to rely on pxe/tftp for every reboot (e.g. can pxelinux do any kind of verified boot? How?)
⦠If also consider various redundancy options⦠e g. Maybe two servers and a zfs/btrfs mirror over iscsi
Back in the day, the setup kicked ass. Workstation was dead silent due too hard drive noise being in another room, and performance was pretty good relative to mechanical storage, because the iscsi target server was caching disk blocks in ram. So in effect, my root filesystem was on a silent 4GB cache HDD; (SSDs werenāt really a thing back then, I still have a pair of 32G SATA patriot warps from that time, latency on them is horrible).
iscsi target software was also running Linux and was exposing an LVM logical volume over iscsi.
FWIW, I never got a non Linux OS running diskless. From what I hear itās easier these days on Windows 10, I donāt know how.
I did do an install from network where I load winpe over http using pxelinux, and install windows 10 onto local target disk from Samba, i think this is be the basis for a diskless bootable windows 10/11 setup, but I never got that far.