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

    Modify path /images to /home ???

    Scheduled Pinned Locked Moved
    General
    7
    17
    8.0k
    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.
    • E
      Eze84d
      last edited by

      Thanks guys for your help.

      I tell them to Reproduce researching and already solved the problem momentarily.

      I tell them how I did it:

      I went to Storage Management Page, and modify the path where I kept the pictures / images to / home / images and longer stay.

      Now I have another little problem … when you are creating the image of the host, I get a sign saying:

      FATAL ERROR: FAILED TO MOUNT NFS VOLUME

      I could help with this ???

      Thank you very much to all !!!

      1 Reply Last reply Reply Quote 0
      • E
        Eze84d
        last edited by

        Mounting File System…mount: mounting 10.0.0.50:/home/images/dev on /images failed: Permission denied

        FATAL ERROR: FAILED TO MOUNT NFS VOLUME

        1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          What is the version of Debian?
          What version of FOG?

          Copied from Tom’s Posts:

          does
          /data/images/.mntcheck and /data/images/dev/.mntcheck exist?
          Are the permissions as: chmod -R 777 /data/images?

          selinux disabled?

          rpcbind running?

          What’s the boot file look like? in a browser, Replace <ipoffogserver> & <macaddressofclientintask> with appropriate data. Mac addresses include colons.
          This is the address:
          [URL=‘http://%3Cipoffogserver%3E/fog/service/boot.php?mac=%3Cmacaddressofclientintask%3E’]http://<ipoffogserver>/fog/service/boot.php?mac=<macaddressofclientintask>[/URL]

          Please post your FOG install log.

          Thanks,
          Wayne

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • E
            Eze84d
            last edited by

            [quote=“Wayne Workman, post: 42839, member: 28155”]What is the version of Debian?
            What version of FOG?

            Copied from Tom’s Posts:

            does
            /data/images/.mntcheck and /data/images/dev/.mntcheck exist?
            Are the permissions as: chmod -R 777 /data/images?

            selinux disabled?

            rpcbind running?

            What’s the boot file look like? in a browser, Replace <ipoffogserver> & <macaddressofclientintask> with appropriate data. Mac addresses include colons.
            This is the address:
            [URL=‘http://%3Cipoffogserver%3E/fog/service/boot.php?mac=%3Cmacaddressofclientintask%3E’]http://<ipoffogserver>/fog/service/boot.php?mac=<macaddressofclientintask>[/URL]

            Please post your FOG install log.

            Thanks,
            Wayne[/quote]

            DEBIAN: 7.8.0
            FOG: 1.2.0

            /data/images/.mntcheck and /data/images/dev/.mntcheck exist? --> No such file or directory.

            Are the permissions as: chmod -R 777 /data/images? --> You can not access: /data/images? No such file or directory.

            selinux disabled? In any installation guide FOG 1.2.0 I was saying that I had to turn it off … not know how to do

            rpcbind running? --> As I check this ??

            Please post your FOG install log. --> Where I find this file?

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

              [quote=“Eze84d, post: 42843, member: 28734”]DEBIAN: 7.8.0
              FOG: 1.2.0

              /data/images/.mntcheck and /data/images/dev/.mntcheck exist? --> No such file or directory.
              [/quote]

              Run [code]sudo touch /data/images/.mntcheck; sudo touch /data/images/dev/.mntcheck[/code]
              [quote=“Eze84d, post: 42843, member: 28734”]
              Are the permissions as: chmod -R 777 /data/images? --> You can not access: /data/images? No such file or directory.[/quote] Either you can’t access it because it doesn’t exist, or you can’t access it because you don’t have permissions.
              [code] sudo chmod -R 777 /data/images #to make accessible by anybody[/code]

              If it doesn’t exist, then you either need to link, or change back to /images
              [quote=“Eze84d, post: 42843, member: 28734”]
              selinux disabled? In any installation guide FOG 1.2.0 I was saying that I had to turn it off … not know how to do[/quote]
              In the guide, it should tell you how. However this is not needed for debian
              [quote=“Eze84d, post: 42843, member: 28734”]
              rpcbind running? --> As I check this ??[/quote][code]sudo service rpcbind status[/code]

              Please post your FOG install log. --> Where I find this file?[/quote]Read my signature.

              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
              • E
                Eze84d
                last edited by

                Please post your FOG install log. -->

                Script iniciado (lun 23 feb 2015 09:33:51 ART
                )+Debian

                   ..#######:.    ..,#,..     .::##::.   
                

                .:###### .:;####:…;#;…
                …##… …##;,;##::::.##…
                ,# …##…##:::## …::
                ## .::###,##. . ##.::#.:######::.
                …##:::###::…#. … .#…#. #…#:::.
                …:####:… …##…##::## … #
                # . …##:,;##;:::#: … ##…
                .# . .:;####;::::.##:::;#:…
                # …:;###…

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

                FOG

                Free Computer Imaging Solution

                [url]http://www.fogproject.org/[/url]

                Developers:

                Chuck Syperski

                Jian Zhang

                Peter Gilchrist

                Tom Elliott

                GNU GPL Version 3

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

                Version: 1.2.0 Installer/Updater

                What version of Linux would you like to run the installation for?

                      1) Redhat Based Linux (Redhat, CentOS, Mageia)
                      2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
                

                Choice: [2]

                Sorry, answer not recognized.

                What version of Linux would you like to run the installation for?

                      1) Redhat Based Linux (Redhat, CentOS, Mageia)
                      2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
                

                Choice: [2]

                Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

                FOG Server installation modes:
                * Normal Server: (Choice N)
                This is the typical installation type and
                will install all FOG components for you on this
                machine. Pick this option if you are unsure what to pick.

                  * Storage Node: (Choice S)
                      This install mode will only install the software required
                      to make this server act as a node in a storage group
                

                More information:
                [url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]

                What type of installation would you like to do? [N]

                What is the IP address to be used by this FOG Server? [10.0.2.15]10.0.0.50

                Would you like to setup a router address for the DHCP server? [Y/n] 10.0.0.2
                Invalid input, please try again.

                Would you like to setup a router address for the DHCP server? [Y/n] y
                What is the IP address to be used for the router on the DHCP server? [10.0.2.2]10.0.0.2

                Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] y
                What is the IP address to be used for DNS on the DHCP server and client boot image? [10.0.1.2] 10.0.0.2

                Would you like to change the default network interface from eth0?
                If you are not sure, select No. [y/N]

                Would you like to use the FOG server for DHCP service? [Y/n] y

                This version of FOG has internationalization support, would
                you like to install the additional language packs? [y/N]

                Would you like to donate computer resources to the FOG Project
                to mine cryptocurrency? This will only take place during active
                tasks and should NOT have any impact on performance of your
                imaging or other tasks. The currency will be used to pay for
                FOG Project expenses and to support the core developers working
                on the project. For more information see:

                [url]http://fogproject.org/?q=cryptocurrency[/url]

                Would you like to donate computer resources to the FOG Project? [y/N]

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

                FOG now has everything it needs to setup your server, but please
                understand that this script will overwrite any setting you may
                have setup for services like DHCP, apache, pxe, tftp, and NFS.

                It is not recommended that you install this on a production system
                as this script modifies many of your system settings.

                This script should be run by the root user on Redhat or with sudo on Ubuntu.

                ** Notice ** Redhat users will need to disable SELinux and iptables in
                order to use FOG
                Please see our wiki for more information at [url]http://www.fogproject.org/wiki[/url]

                Here are the settings FOG will use:
                Base Linux: Debian
                Detected Linux Distribution: Debian
                Installation Type: Normal Server
                Server IP Address: 10.0.0.50
                DHCP router Address: 10.0.0.2
                DHCP DNS Address: 10.0.0.2
                Interface: eth0
                Using FOG DHCP: 1
                Internationalization: 0
                Donate: 0

                Are you sure you wish to continue (Y/N) y

                Installation Started…

                Installing required packages, if this fails
                make sure you have an active internet connection.

                • Preparing apt-get

                • Installing package: apache2

                • Installing package: php5

                • Installing package: php5-json

                • Installing package: php5-gd

                • Installing package: php5-cli

                • Installing package: php5-mysql

                • Installing package: php5-curl

                • Installing package: mysql-server

                  We are about to install MySQL Server on
                  this server, if MySQL isn’t installed already
                  you will be prompted for a root password.

                  Press enter to acknowledge this message.

                Leyendo lista de paquetes…
                Creando árbol de dependencias…
                Leyendo la información de estado…
                mysql-server ya está en su versión más reciente.
                0 actualizados, 0 se instalarán, 0 para eliminar y 18 no actualizados.

                • Installing package: mysql-client
                • Installing package: isc-dhcp-server
                • Installing package: tftpd-hpa
                • Installing package: tftp-hpa
                • Installing package: nfs-kernel-server
                • Installing package: vsftpd
                • Installing package: net-tools
                • Installing package: wget
                • Installing package: xinetd
                • Installing package: sysv-rc-conf
                • Installing package: tar
                • Installing package: gzip
                • Installing package: build-essential
                • Installing package: cpp
                • Installing package: gcc
                • Installing package: g++
                • Installing package: m4
                • Installing package: htmldoc
                • Installing package: lftp
                • Installing package: openssh-server
                • Installing package: php-gettext
                • Installing package: clamav-freshclam

                Confirming package installation.

                • Checking package: apache2…OK
                • Checking package: php5…OK
                • Checking package: php5-json…OK
                • Checking package: php5-gd…OK
                • Checking package: php5-cli…OK
                • Checking package: php5-mysql…OK
                • Checking package: php5-curl…OK
                • Checking package: mysql-server…OK
                • Checking package: mysql-client…OK
                • Checking package: isc-dhcp-server…OK
                • Checking package: tftpd-hpa…OK
                • Checking package: tftp-hpa…OK
                • Checking package: nfs-kernel-server…OK
                • Checking package: vsftpd…OK
                • Checking package: net-tools…OK
                • Checking package: wget…OK
                • Checking package: xinetd…OK
                • Checking package: sysv-rc-conf…OK
                • Checking package: tar…OK
                • Checking package: gzip…OK
                • Checking package: build-essential…OK
                • Checking package: cpp…OK
                • Checking package: gcc…OK
                • Checking package: g++…OK
                • Checking package: m4…OK
                • Checking package: htmldoc…OK
                • Checking package: lftp…OK
                • Checking package: openssh-server…OK
                • Checking package: php-gettext…OK
                • Checking package: clamav-freshclam…OK

                Configuring services.

                • Setting up fog user…OK

                • Setting up and starting MySql…OK

                • Backing up user reports…OK

                • Did you leave the mysql password blank during install? (Y/n)

                • Setting up and starting Apache Web Server…OK
                  You still need to install/update your database schema.
                  This can be done by opening a web browser and going to:

                  [url]http://10.0.0.50/fog/management[/url]

                Press [Enter] key when database is updated/installed.

                • Configuring Fresh Clam…OK
                • Setting up storage…OK
                • Setting up and starting NFS Server…OK
                • Setting up and starting DHCP Server…OK
                • Setting up and starting TFTP and PXE Servers…OK
                • Setting up and starting VSFTP Server…OK
                • Setting up sudo settings…OK
                • Setting up FOG Snapins…OK
                • Setting up and building UDPCast…OK
                • Installing init scripts…OK
                • Setting up FOG Services…OK
                • Starting FOG Multicast Management Server…OK
                • Starting FOG Image Replicator Server…OK
                • Starting FOG Task Scheduler Server…OK
                • Setting up FOG Utils…OK

                Would you like to notify the FOG group about this installation?
                * This information is only used to help the FOG group determine
                if FOG is being used. This information helps to let us know
                if we should keep improving this product.

                Send notification? (Y/N)n
                NOT sending notification.

                Setup complete!

                You can now login to the FOG Management Portal using
                the information listed below. The login information
                is only if this is the first install.

                This can be done by opening a web browser and going to:

                  [url]http://10.0.0.50/fog/management[/url]
                
                  Default User:
                         Username: fog
                         Password: password
                

                Script terminado (lun 23 feb 2015 09:37:37 ART

                1 Reply Last reply Reply Quote 0
                • E
                  Eze84d
                  last edited by

                  [B]service rpcbind status[/B]
                  [ ok ] rpcbind is running.

                  1 Reply Last reply Reply Quote 0
                  • E
                    Eze84d
                    last edited by

                    I tell them, turned to leave the path / images in the Storage Management and I believe smoothly image …

                    To change the / images for / home / images try to mount the / home / images in / images and here is where I throw permission denied.

                    As achieve that images are stored in / home / images ???

                    Thank you very much !!!

                    1 Reply Last reply Reply Quote 0
                    • E
                      Eze84d
                      last edited by

                      Any idea how to do this ??? Some guidance or help ??? I hope your answers !!! Thank you very much !!!

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

                        I tried helping, but I don’t know the exact issue. Is FOG able to mount the NFS or not? What’s in the /etc/exports file?

                        Is the nfs service running? Is it exporting the filesystems properly? What have you done?

                        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
                        • S
                          Sebastian Roth Moderator
                          last edited by

                          If you wonder about how to test mounting NFS from another computer, see here:
                          [url]http://fogproject.org/forum/threads/problem-with-permission-denied-after-fog-server-restart.12503/#post-42999[/url]

                          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
                          • E
                            Eze84d
                            last edited by

                            Well, what I need to do is the following:

                            I need to add a new path for saving the images, it must be / home / Fog / image.

                            I add in Storage Management, but does not allow me to modify “Management username” and “Management passwords”, I understand that here I put the user and pass the TFTP not?

                            Ultimately I would need to explain how to create a new path for saving the images.

                            Thank you very much !!!

                            1 Reply Last reply Reply Quote 0
                            • S
                              scoude
                              last edited by scoude

                              Hi everybody,

                              I have a 1.5.5 Fog version on Debian 9.3. By default, my images storage directory was /images.

                              And my wish was to put images on new directory /var/images (/var is mount on LVM mapper…).

                              So here are the actions I done :
                              1/ create a /var/images directory
                              2/ set good rights and owner for this new directory (see /images rights)
                              3/ move all files from /images to /var/images (be careful to move all files : with dot, etc.; ls -la to be sure !)
                              4/ connect to database with mysql client and change path :

                              use fog;
                              update nfsGroupMembers set ngmRootPath='/var/images/';
                              update nfsGroupMembers set ngmFTPPath='/var/images/';
                              

                              5/ change path in /etc/exports :

                              /var/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)                                                                                                                                                                                
                              /var/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)   
                              

                              6/ apply nfs changes :

                              exportfs -ra 
                              

                              That’s all !

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                Cello @scoude
                                last edited by

                                @scoude said in Modify path /images to /home ???:

                                Hi everybody,
                                I have a 1.5.5 Fog version on Debian 9.3. By default, my images storage directory was /images.
                                And my wish was to put images on new directory /var/images (/var is mount on LVM mapper…).
                                So here are the actions I done :
                                1/ create a /var/images directory
                                2/ set good rights and owner for this new directory (see /images rights)
                                3/ move all files from /images to /var/images (be careful to move all files : with dot, etc.; ls -la to be sure !)
                                4/ connect to database with mysql client and change path :
                                use fog;
                                update nfsGroupMembers set ngmRootPath=‘/var/images/’;
                                update nfsGroupMembers set ngmFTPPath=‘/var/images/’;

                                5/ change path in /etc/exports :
                                /var/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                                /var/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)

                                6/ apply nfs changes :
                                exportfs -ra

                                That’s all !

                                This works fine for me.

                                Thank you.

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

                                160

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project