Configure FOG to save images on a Windows shared folder



  • 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.



  • 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


  • Senior Developer

    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.



  • 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.


  • Senior Developer

    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.



  • 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.


  • Senior Developer

    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.



  • 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.


  • Senior Developer

    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.


Log in to reply
 

387
Online

38981
Users

10712
Topics

101676
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.