Using NFSv4 for FOG deployment/capture
@george1421 If you can provide some guidance on what you did to get NFSv4 working for FOG and the modifications that were needed, I will do my best to create a tutorial so that others can accomplish the same until the feature request can be implemented.
As for the /etc/exports you are simply showing the output there, but I am guess this is the same file that is modified for the uid and gid? Where do I go to update the mount command? nfs-utils I am at a loss as to how to begin with making those modifications?
I see that there are other modifications that you did but it wasn’t entirely clear whether those were actually necessary or not?
Any help or guidance would be great! Thank you for helping out this amazing community!
@quinniedid I updated this article with the testing from today: https://forums.fogproject.org/topic/14791/feature-request-for-fog-1-6-x-configure-image-capture-to-use-nfsv4-instead-of-nfsv3
@sebastian-roth I have an update on this. I’ve had some time on friday night to run through and standup a new FOG 1.5.9 server and convert it over to NFSv4. I have tested capturing an image so far and will confirm that deployment works as it should later today. The heavy lifting (so to speak) for conversion is done in FOS linux. The FOG server NFSv4 changes can be made side by side with NFSv3 except for one change in the bootmeu.php page where we change the capture directory from
On the FOS linux side, I was thinking if we used a
nfsv4=truekernel parameter we could make FOS linux support both nfsv3 and v4 out of the box. I’ll fill in a bit more details after I confirm a deploy works as expected.
@quinniedid For messing with the scripts you want to read this wiki article: https://wiki.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image
Edit: I just read a bit further through the things George posted and found this: https://forums.fogproject.org/post/139596
As I continue down this rabbit hole I find that in buildroot the nfs-utils in nfs-utils.mak nfsv4 is specifically disabled.
So changing the scripts might not be enough.
To build inits from scratch you wanna start here: https://github.com/FOGProject/fos
There is no need for docker as seen in the readme file. Just clone the repo on a powerful system (lots of CPU, RAM and disk space) and start by running:
./build.sh -f -a x64