(0.00)[gmail.com:dkim]; TAGGED_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TAGGED_RCPT(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::535:from] X-Rspamd-Queue-Id: 4fqyRb5c5Jz3jd3 X-Spamd-Bar: --- On Sun, Apr 5, 2026 at 9:16=E2=80=AFAM Rick Macklem wrote: > > On Thu, Feb 19, 2026 at 2:23=E2=80=AFPM Dan Shelton wrote: > > > > Hello, > > > > Will a FreeBSD 15.0 diskless setup with nfsroot work with NFSv4.2? > I just committed a patch to main that does this, with some limitations. > It will be in 15.1. > > The limitations are: > - The server must be configured to handle both NFSv3 and NFSv4 > because the bootstrap code still uses NFSv3. > - The root directory specified in the "V4:" line in /etc/exports must > be "/" so that the root-path is the same for an NFSv3 and NFSv4 mount. > - The NFSv4 server must be configured to use id-numbers in strings and > not be running the nfsused(8) daemon. (This limitation might be lifted > in a future commit which hard-wires enough mapping info to make > things work until the nfsuserd(8) daemon is running.) I just did a commit to main that allows the nfsuserd(8) daemon to run on the NFSv4 root fs. I'm not 100% sure if it will work for a read/write root fs mount. (I tested a read-only one, as suggested by Section 34.10 of the FreeBSD Handbook. For the nfsuserd(8) daemon setup (ie. name@domain strings for uid/gid's), you need.. In /boot/loader.conf boot.nfsroot.user_domain=3D"" along with the two lines nfsuserd_enable=3D"YES" nfsuserd_flags=3D"-domain " in /etc/sysctl.conf. rick > > The NFSv4 mount is enabled by putting: > boot.nfsroot.options=3D"nfsv4" > in the root fs's /boot/loader.conf in the NFS server. > It also needs: > vfs.nfs.enable_uidtostring=3D1 > in /etc/sysctl.conf in the root fs in the NFS server. > > I found Mateusz's wiki useful for the rest of the setup: > https://wiki.freebsd.org/MateuszPiotrowski/BootFreebsdFromNfs > > I also did a couple of things... > - Deleted /etc/hostid in the root fs in the NFS server, so that each > client gets a unique kern.hostuuid. > - Added a line like: > tmpfs /tmp tmpfs rw,size=3D10M,mode=3D01777 0 0 > to the /etc/fstab in the root fs in the NFS server, so /tmp was > mounted. > > Good luck with it, rick > > > > Dan > > -- > > Dan Shelton - Cluster Specialist Win/Lin/Bsd > >