Comment by ggm

7 hours ago

NFS diskless is the more common approach I've used but this is very cool.

NFS diskless was easier for me to setup when I was doing it.

THe caveat was, you needed readonly root, so that meant freezing the OS, anything that needed changing was either stored in a ram disk (that you need to setup) or a per host nfs area (kinda like overlayfs, but not)

  • Why would you need a read-only root? Do you mean to share across multiple machines?

    • Yeah it makes things a bit easier to debug. Originally my system was designed to run on multiple machines at once.

      If you needed to update the root dir, you chrooted into it and did the (yum) update.

When I tried root-on-nfs I had a lot of issues. The Redhat and Arch package managers don't seem to like it (presumably a sqlite thing?).

  • You can download the rootfs, extract it to a ramdisk, and just run in memory. This is fast for everything. Unfortunately, memory just got super expensive. Fortunately, Linux requires ~no memory to do many useful things.