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

CentOS 7/RHEL 7/Fedora 20 Support

Scheduled Pinned Locked Moved
Feature Request
9
51
29.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.
  • V
    vinyard
    last edited by Dec 9, 2014, 8:05 AM

    To get multicast working on CentOS7 you’ll need to modify the following line in function getIPAddress in /var/www/html/fog/lib/fog/FOGCore.class.php

    from:
    [CODE]exec(“/sbin/ifconfig | grep ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}’| cut -d’:’ -f 2 | cut -d’ ’ -f1”, $arR, $retVal);[/CODE]

    to:
    [CODE]exec(“/sbin/ip addr | grep -o ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/[0-9]{1,2}’ | cut -d/ -f1”, $arR, $retVal);[/CODE]

    If you have multiple interfaces with IP addresses you might need to use the following in the first portion of that line

    [CODE]/sbin/ip addr list eth0[/CODE]

    Replace eth0 with the interface you use for fog.

    I haven’t tested this with Ubuntu but if the system has iproute2 package installed it should work.

    1 Reply Last reply Reply Quote 0
    • K
      krokodeilakias
      last edited by Dec 15, 2014, 9:55 PM

      [quote=“vinyard, post: 39767, member: 27465”]To get multicast working on CentOS7 you’ll need to modify the following line in function getIPAddress in /var/www/html/fog/lib/fog/FOGCore.class.php

      from:
      [CODE]exec(“/sbin/ifconfig | grep ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}’| cut -d’:’ -f 2 | cut -d’ ’ -f1”, $arR, $retVal);[/CODE]

      to:
      [CODE]exec(“/sbin/ip addr | grep -o ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/[0-9]{1,2}’ | cut -d/ -f1”, $arR, $retVal);[/CODE]

      […][/quote]

      Thanks a lot vinyard, it works smoothly now 😉

      1 Reply Last reply Reply Quote 0
      • W
        Wolfbane8653 Developer
        last edited by Dec 16, 2014, 3:54 PM

        Good work guys. Here is the info you posted. I just rehashed it into the wiki.
        [url]http://fogproject.org/wiki/index.php/Installation_on_CentOS_7#Multi-Cast_Issues[/url]

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Dec 25, 2014, 2:19 AM

          Hey all,

          Just wanted to let you know I’ve “baked” some of the found items in here into the installer and system. FOGCore will check ip’s from ifconfig, if nothing is found will attempt with ip addr. The installer should take into account the systemd inclusion on CentOS/Redhat 7 now as well.

          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
            sarge_212
            last edited by Jan 12, 2015, 6:07 PM

            On this subject, I’ve successfully installed FOG on a vm(CentOS 7) and have had some trouble throughout. I used MariaDB for the database and was able to get a registration menu. However, when I go to upload my first image, I get this error:

            *Mounting File System…mount: mounting <ip address>/images/dev on /images failed: Operation not supported
            Done
            *Preparing to send image file to server.
            *Checking mounted File System…
            #############################################

            an error has been detected!

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

            Fatal Error: Failed to mount NFS volume

            I do have .mntcheck files in each the /images and /images/dev dirs and am trying to use the FOG server as the storage server as well. Any ideas on what to check? I’ve googled and gone through forums but any direction will help greatly!

            1 Reply Last reply Reply Quote 0
            • C
              ch3i Moderator
              last edited by Jan 12, 2015, 6:15 PM

              [quote=“sarge_212, post: 40653, member: 28103”]On this subject, I’ve successfully installed FOG on a vm(CentOS 7) and have had some trouble throughout. I used MariaDB for the database and was able to get a registration menu. However, when I go to upload my first image, I get this error:

              *Mounting File System…mount: mounting <ip address>/images/dev on /images failed: Operation not supported
              Done
              *Preparing to send image file to server.
              *Checking mounted File System…
              #############################################

              an error has been detected!

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

              Fatal Error: Failed to mount NFS volume

              I do have .mntcheck files in each the /images and /images/dev dirs and am trying to use the FOG server as the storage server as well. Any ideas on what to check? I’ve googled and gone through forums but any direction will help greatly![/quote]

              Hi,

              Did you check the right of each folder ?

              Regards,
              Ch3i.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jan 12, 2015, 6:18 PM

                Also, have you ensured firewall and selinux are disabled?

                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
                  sarge_212
                  last edited by Jan 12, 2015, 7:57 PM

                  Thanks for checking in, Tom and ch3i.

                  I am using iptables and selinux because we must with our environment.

                  FOG Version: 1.2.0
                  OS version CentOS 7

                  There are no log messages in the apache error log around the time I try to upload the images from the client machine. I am going through the wiki now but I think it’s an issue with FOG trying to mount /images and /images/dev. I’m new to FOG so please be gentle. Oh, here are the perms/ownership on /images and /images/dev:

                  stat /images
                  File: ‘/images’
                  Size: 4096 Blocks: 8 IO Block: 4096 directory
                  Device: 810h/2064d Inode: 2 Links: 5
                  Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
                  Context: system_u:object_r:file_t:s0
                  Access: 2015-01-12 10:52:57.842902392 -0700
                  Modify: 2015-01-12 10:52:57.840902284 -0700
                  Change: 2015-01-12 10:52:57.840902284 -0700
                  Birth: -

                  stat /images/dev

                  File: ‘/images/dev’
                  Size: 4096 Blocks: 8 IO Block: 4096 directory
                  Device: 810h/2064d Inode: 10076161 Links: 2
                  Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
                  Context: unconfined_u:object_r:file_t:s0
                  Access: 2015-01-12 10:46:08.048070848 -0700
                  Modify: 2015-01-08 16:24:44.142052439 -0700
                  Change: 2015-01-08 16:24:44.143052472 -0700

                  I did have to run #restorecon -Rv /tftpboot to get a Fog menu. Before that, it was permission denied due to the attribute settings on tftpboot. Now the process halts as described in the previous post.

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Jan 12, 2015, 8:08 PM

                    First make sure nfs is actually running with [code]service rpcbind restart; service nfs restart[/code]

                    If iptables is blocking the ports nfs uses you may have to figure out which are in use and unblock them from iptables.

                    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
                    • V
                      vinyard
                      last edited by Jan 12, 2015, 8:09 PM

                      Is the nfs-server running? What is the output of the following?

                      [CODE]systemctl status nfs-server[/CODE]

                      If it is not running, run the following:
                      [CODE]systemctl enable nfs-server
                      systemctl start nfs-server[/CODE]

                      You should test this with iptables and selinux disabled first to make sure everything works as expected.

                      1 Reply Last reply Reply Quote 0
                      • S
                        sarge_212
                        last edited by Jan 12, 2015, 8:31 PM

                        That did work!! Hallelujah! Thanks vinyard and Tom!! I ran the following commands and now its uploading that first image:

                        systemctl status nfs-server
                        systemctl enable nfs-server
                        systemctl start nfs-server

                        Thanks guys, success at last!

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

                        189

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project