NFS Config
-
Hi! New to Fog and trying to get it running. I am running my server in a Proxmox environment - and I know there are articles out there that describe how to work around some of the issues with getting Fog NFS working in a Proxmox LXC container, but ideally - I’d like to do something else.
We already have an NFS server and use that for our file stores.
Is there a way I can configure out Fog (iPXE) clients to use our NFS server directly - instead of trying to mount image stores from the Fog server, itself?
-
@bkgoodman said in NFS Config:
Is there a way I can configure out Fog (iPXE) clients to use our NFS server directly - instead of trying to mount image stores from the Fog server, itself?
There is a way, but if this is an active NFS server, using FOG imaging would make that nfs server insecure. The FOS engine, the software that runs on the target computer is a customized linux OS. The image capture process runs as the root user, so your nfs share would need to allow root access to the nfs volume. Typically NFS is configured to squash root access to the nfs share for security reasons.
If you really want to do this you can undo the security to allow root’s access. In our tutorial section we have guidance on how to setup a synology nas as a FOG capture server, so its possible to do, but it is an unsupported configuration by the devs so YMMV. The best solution is to capture to the fog server as the devs intended. But since its opensource, if you have the skills, then almost anything is possible.
-
@george1421 Is there a place where such a configuration (i.e. address and credentials to NFS server) exists on the Fog server, or do I have to hack the Linux image to change it?
Thanks!
-BKG
-
@bkgoodman This can be set from the fog web ui. FOG has a concept of storage nodes and master nodes. Only master nodes can collect images, you can deploy images from both master nodes and storage nodes. Where storage nodes are deploy only.
While the following deals with synology nas devices the same info can reference other NFS aware devices. Your target system needs both nfs AND ftp enabled to be able to function as a FOG storage node.
https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node