I've done a lot of headless/diskless stuff. I haven't done much for years, because my NAS only has gigabit Ethernet ports. I can cascade them and get four Gbps downstream, but it's still painful. I have recently upgraded my house to 10Gbps Ethernet, with only one room still stuck at gigabit, and unfortunately, it's my main office. I'm working on getting the drop there now (literally, just taking a break here). Even o…
Diskless Linux boot using ZFS, iSCSI and PXE
21–30 of 108 posts
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#22NFS 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)
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#23Re: Diskless Linux boot using ZFS, iSCSI and PXE
#24This could be an interesting setup for booting off a NAS like Synology or QNAP. I haven't really used iSCSI, it's intimidating how much prep this takes...
... And it's very, very fun.
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#25Nice. I'm extra fond of ZFS backed network root filesystem, because it lets you put an OS on ZFS without needing to deal with ZFS support in that OS. (One of these days I want to try OpenBSD with its root on NFS on ZFS, either from Linux or FreeBSD.) Does anyone have an opinion on iSCSI vs NBD?
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#26Nice. I'm extra fond of ZFS backed network root filesystem, because it lets you put an OS on ZFS without needing to deal with ZFS support in that OS. (One of these days I want to try OpenBSD with its root on NFS on ZFS, either from Linux or FreeBSD.) Does anyone have an opinion on iSCSI vs NBD?
You might like https://smolbsd.org/
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#27I've done a lot of headless/diskless stuff. I haven't done much for years, because my NAS only has gigabit Ethernet ports. I can cascade them and get four Gbps downstream, but it's still painful. I have recently upgraded my house to 10Gbps Ethernet, with only one room still stuck at gigabit, and unfortunately, it's my main office. I'm working on getting the drop there now (literally, just taking a break here). Even o…
Really I wonder how this turns out to be diskless while you're clearly accessing a disk/drive over the network. Shouldn't we refer to this as network boot?
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#28This could be an interesting setup for booting off a NAS like Synology or QNAP. I haven't really used iSCSI, it's intimidating how much prep this takes...
nbdinfo nbd://server
nbdcopy nbd://server:2001/ nbd+unix:///?socket=/tmp/localsock
https://github.com/NetworkBlockDevice/nbd/blob/master/doc/ur...Re: Diskless Linux boot using ZFS, iSCSI and PXE
#29Hmmh? I haven't done so in years, but configuring multi-boot used to be considerably easier than disk-less operation.