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

    Configure FOG to save images on a Windows shared folder

    Scheduled Pinned Locked Moved
    General
    2
    9
    5.9k
    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.
    • F
      Federico.Bartolini
      last edited by

      Hi to all,
      I don’t know if it’s the right section of the forum to post this topic, If it’s the wrong section please forgive me.
      First of all, I’m not very skilled on linux systems.
      I setup in a test environment a ubuntu 12.04 machine where i setup Fog 0.32.
      All works fine, I tryed to backup/restore images of the win xp clients in my lan succesfully.
      Now I wold like change the image storage location to a windows machine.
      I can browse the network and open the sharings of this machine. Also I tryed to create and remove file on it succesfully.
      I read the user guide “Separate NFS server” but i don’t understand how i can use a win machine sharing as images sorage location.
      Any suggestion will be appreciated.

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Federica.Bartolini,

        I know that they do make nfs servers for Windows, though I’ve never had to use it. I don’t know what types of problems you would run into. I think your best bet with this methodology would be to keep your location the same on your FOG server. Create the Windows NFS Share, then mount that share to your FOG Server under the /images directory.

        The only issue I foresee with doing this, however, is permissions. You need full read/write access to the folder and I don’t know how that would work with the nfs from Windows.

        Here’s a How-to for doing the NFS from Windows:
        [url]http://technonstop.com/tutorial-setup-nfs-server-windows[/url]

        Hopefully this will help you out.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • F
          Federico.Bartolini
          last edited by

          Hi Tom thank for your help.
          I installed NFS server for windows following the tutorial you sent me.

          I can browse, read and write in windows shared folder but fog don’t works.
          When client boot this messages appears:

          • Preparing to send image file to server

          • Mounting File System…mount:ser.ver.ipa.ddr:/images/dev/ failed, reason given by server: Permission denied
            Done

          • Checking Mounted File System …
            ###########################################################################################

          An error has been detected

          ###########################################################################################

          Fatal Error: Failed to mount NFS Volume.

          ###########################################################################################

          Computer will reboot in 1 minute.

          ###########################################################################################

          I created .mntcheck files in /images and images/dev
          I tryed to do this mappings:
          Fog user to Administrator user, root user to Administrator, ubuntu user to administrator but nothing.

          I found this thread and following it I can upload image:

          [url]http://fogproject.org/forum/threads/how-to-setup-a-fog-storage-node-without-installing-fog.4294/[/url]

          After image upload the client shows this message:
          Task complete!

          • FTP connection to Storage Server has failed!
          • FTP connection to Storage Server has failed!
          • FTP connection to Storage Server has failed!
            …

          I have to shut down it manually. The fog’s task is not deleted. It’s in active task section.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Because you’re going off of a Windows NFS share, meaning you’re using Windows Login Credentials, the STORAGE_FTP_TFTP_USERNAME and PASSWORD, on the configuration AND the storage configuration need to be changed to match the credentials on your windows system. You may even need to add an FTP server that allows access to the NFS share to allow this to happen successfully for you.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • F
              Federico.Bartolini
              last edited by

              Following this [URL=‘http://fogproject.org/forum/threads/how-to-setup-a-fog-storage-node-without-installing-fog.4294/’][COLOR=#737373]http://fogproject.org/forum/threads/how-to-setup-a-fog-storage-node-without-installing-fog.4294/[/COLOR][/URL]
              I installed on the windows machine filezilla server (as ftp server) and I configure it with the STORAGE_FTP_TFTP_USERNAME and PASSWORD (that are the standard UID and PWD of FOG). This UID and PWD match the storage node UID and PWD.

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                Right, but on the Windows NFS Server, is the FTP server properly allowing that same fog UID and PWD to actually login?

                My guess is it’s not allowing it which is why you’re getting the * FTP connection to Storage Server has failed error.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • F
                  Federico.Bartolini
                  last edited by

                  Windows NFS Server allow image upload, in windows share I found the images files. The credentials are the same. I don’t understand why those credential allow image upload and not connect to storage server.

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    NFS is different than FTP. After the upload is placed, it has to move the files from /images/dev/${MAC} to /images/{IMAGENAME}

                    It, from what I can tell, uses FTP to perform this part of the task.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 0
                    • F
                      Federico.Bartolini
                      last edited by

                      Solved, At first step in windows machine, I shared in haneWIN NSF server c:\FOG_IMG like /images.
                      And as you said, system cannot move /images/dev/${MAC} to /images/{IMAGENAME}.
                      I’ve created a subfolder c:\FOG_IMG\images and I mapped it to /images.
                      I don’t understand the reason but after this It works and moves the images.

                      Thank you

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

                      144

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project