• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Using SMB as default node

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    152
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tiagomendes
      last edited by

      Hello, I’m trying to use FOG with a windows shared folder.

      I’ve created the folder on windows and mounted on Ubuntu 22.04:

      mount -t cifs //x.x.x.x/images /mnt/iso -v -o credentials=/home/user/.smbcredentials,file_mode=0777,dir_mode=0777,
      

      I have access to the folder and can create/edit files. I also copied the folder /images to /mnt/iso/images

      On fog I changed the default node Image Path and FTP path to /mnt/iso/images.
      But when I try to capture the image I get the following error:
      mounting x.x.x.x:/images/dev on /images failed: permission denied
      Checking Mounted File System
      An error has been detected.
      Fatal error: Failed to mount NFS Volume
      Computer will reboot in 1 minute.

      Any help would be greatly appreciated!

      1 Reply Last reply Reply Quote 0
      • JJ FullmerJ
        JJ Fullmer Testers
        last edited by

        So this will not work for a few reasons, but it is possible to use windows.

        Why it won’t work

        When you boot into fog (FOS - Fog Operating System) it has loaded on the client machine.
        The client machine then mounts an nfs share to upload/download an image from.
        If your nfs share is pointing to another file share, the client only has access to the first NFS share, nfs won’t share out that smb share. I once tried to do something similar in a subfolder of /images for drivers. It has to be local.

        However, it is possible to create a storage node that is just an nfs share, and you can create an nfs share on a windows machine (preferably a windows server install).

        We need to update the this doc still to be in the fog docs site and to apply to newer versions of windows but the general principles outlined in this wiki article https://wiki.fogproject.org/wiki/index.php?title=Windows_Storage_Node should still apply.

        Essentially you need to

        • Add the nfs server feature/role to the windows machine
        • Create an nfs share on windows
        • add a storage node definition in fog that points to the windows nfs share (see also https://docs.fogproject.org/en/latest/storage-node for info on storage nodes in general)
        • there are some other steps to ensure you capture to the storage node as you configure the storage group/node that I don’t recall off the top of my head

        Have you tried the FogApi powershell module? It's pretty cool IMHO
        https://github.com/darksidemilk/FogApi
        https://fogapi.readthedocs.io/en/latest/
        https://www.powershellgallery.com/packages/FogApi
        https://forums.fogproject.org/topic/12026/powershell-api-module

        T 1 Reply Last reply Reply Quote 0
        • [[undefined-on, T tiagomendes, ]]
        • T
          tiagomendes @JJ Fullmer
          last edited by

          @JJ-Fullmer Thank you, In the end I opted to add a second disk, structurewise couldn’t add the nfs,
          Regards.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          162

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project