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

    mounting on images failed permission denied

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    4
    683
    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.
    • P
      processor
      last edited by

      Hi,

      I use FOG for years now.

      I wanted to install a new server on an ubuntu 22.04.

      I followed the wiki without any issue.
      I imported, groups, hosts and images from a previous server.

      I setup the storage node to use this path as image folder : /cloning/FOG
      I edited /opt/.fogsettings and set storageLocation to “/cloning/FOG”
      I checked that management password is the same as default storage config in web interface

      My image are on and iSCSI LUN, previously used by another server.
      So I mounted the iSCSI LUN in /cloning/FOG
      I set right as follow :
      fogproject:root for /cloning recursively
      chmod 775 for /cloning recursively
      same for /images

      I can see images in /cloning/FOG
      .mntchecks are in /images, /images/dev, /cloning/FOG, /cloning/FOG/dev

      And I don’t know why when I try to load an image on a client I have this error message :

      could not mount images folder (/bin/fog.download)
      args passed:
      Reason: mount: mounting 10.33.0.10:/cloning/FOG/ ON /images failed: permission denied
      

      Many thanks in advance for any help.

      By Proc.

      P 1 Reply Last reply Reply Quote 0
      • P
        processor
        last edited by

        So I found by myself.

        The issue was the /etc/exports that was still referencing original /images folder instead of /cloning/fog

        So this part is solved.

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

          @processor Are we good to mark this as solved then?

          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

          1 Reply Last reply Reply Quote 0
          • P
            processor @processor
            last edited by

            @processor Yes you can !

            1 Reply Last reply Reply Quote 0
            • [[undefined-on, JJ FullmerJ JJ Fullmer, ]]
            • 1 / 1
            • First post
              Last post

            149

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project