Using 0.32 with Fedora 20



  • Hi…

    I’ve been trying to hack my way through installing FOG on Fedora 20. I’ve been able to follow some of the other threads to successfully complete the installation and change some PHP files. I’m able to successfully view the site in a browser, as well as add new hosts and migrate some images from an older installation.

    I’m at the point where I’m trying to deploy an image in Task Scheduler, but I’m receiving the dreaded “None of the machines were able to be queued! Unable to connect to tftp server.” error message.

    I’ve gone through the process of resetting the fog user password is reset to the default “password”, as well as checking to make sure in the FOG_TFTP_FTP_USERNAME and FOG_TFTP_FTP_PASSWORD in the GUI and also TFTP_FTP_USERNAME, TFTP_FTP_PASSWORD, STORAGE_FTP_USERNAME, and STORAGE_FTP_PASSWORD are all set to the same.

    I’ve disabled SELinux and the firewall for the time being. All of this and no luck with getting a task started. Has anyone else come across this? Or am I just being a little too aggressive trying to get it up and running on such a new OS?

    Thanks for any advice…


  • Moderator

    This should probably get Wiki’d.



  • Part 2:

    http://fogproject.org/forum/threads/setting-up-and-building-udpcast-failed.4548/)
    https://svn.code.sf.net/p/freeghost/code/trunk/packages/udpcast-20120424.tar.gz

    • rm -f udpcast-20071228.tar.gz

    • sed -i ‘s/udpcastout=“udpcast-20071228”/udpcastout=“udpcast-20120424”/’ …/lib/common/config.sh

    • sed -i ‘s/udpcastsrc="…/packages/udpcast-20071228.tar.gz"/udpcastsrc="…/packages/udpcast-20120424.tar.gz"/’ …/lib/common/config.sh

    • Go to /opt/fog_0.32/lib/redhat

    • vi functions.sh

    • On lines 473-475 change mysqld to mariadb

    • cd …/…/bin

    • ./installfog.sh

    • Go to /var/www/html/fog/management/includes and edit the tasks.confirm.include.php file

    • Search the entire file for [B]&$tmp[/B] and replace with [B]$tmp[/B]

    • Install and update clamav

    • yum install clamav clamav-update

    • cd /var/lib/clamav

    • touch clamd.sock

    • cd /opt/fog_0.32/bin

    • ./installfog.sh

    • Fill out the installation options according to your needs

    • Since this server is only accessible inside my office, I made the following changes to the fog folder in /var/www/html

    • chmod –R 755 fog

    • chown –R apache:apache fog

    • cd /etc/httpd/conf/

    • vi httpd.conf

    • Locate the ServerName line and enter your server name or IP

    • In my office we just used the IP address so it would look something like:
      ServerName 192.168.100.14:80

    • Make sure you enable the following services so that if the server is rebooted, they start back up automatically

    • systemctl enable <service name>.service

    • Httpd

    • Mariadb

    • Nfs-server

    • Vsftpd

    • Firewalld

    • If turning on firewall, allow public access on http, https, ftp, tftp, nfs

    • Make sure to also start these same services

    • Systemctl start <service name.service>

    • Disable SELinux

    • There is a chance that you may need to reset the fog account that’s created from the install.

    • Passwd fog

    • Go to your FOG webpage > Other Info > FOG settings and enter

    • TFTP Server username – fog

    • TFTP Server password - <your password>

    • Then go to Storage Management > All Storage Nodes >Default member

    • Enter your fog username and password

    • vi /var/www/html/fog/commons/config.php

    • line 24 – define( “FTFP_FTP_USERNAME”, “<enter your fog username here>”);

    • line 25 – define( “FTFP_FTP_PASSWORD”, “<enter your fog password here>”);

    That’s all I have. Hopefully, it’s enough for you to get your server up. Unfortunately, if you have any other questions, I’m not sure I’ll be much help, but following these steps I was able to access my FOG server in any browser using its IP address (we didn’t set up a DNS entry). Also, if you’re using a DHCP server make sure to set up the appropriate entries there so that you can properly PXE boot to your FOG server.
    Good luck!



  • http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
    http://rpms.famillecollet.com/RPM-GPG-KEY-remi

    • Go to /opt/fog-0.32/lib/redhat/ and edit the config.sh file (create a backup of it first)

    • On line 22, change the following packages

    • php-gettext -> php-common

    • php-mysql -> php-mysqlnd

    • mysql -> mariadb

    • mysql-server -> mariadb-server

    • clamav-update -> clamav

    • On line 23, make the following changes to storageNotePackages

    • delete php-gettext

    • delete mysql

    • delete mysql-server

    • change php-mysql to php-mysqlnd

    • On line 62, edit the freschclam config file section to:

    • #where is freshclam’s config file
      #freshdb="/var/lib/clamav/";
      freshdb="/var/clamav/";
      freshwebroot="${webdirdest}/av/";
      freshconf="/etc/freshclam.conf";
      #freshcron="/etc/sysconfig/freshclam"
      freshcron="/usr/bin/freshclam"

    • Save the file

    • restart NFS -> systemctl restart nfs-server.service

    • restart xinetd -> systemctl restart xinetd.service

    • restart rpcbind -> systemctl restart rpcbind



  • @a1adam12, post: 24115, member: 22878 said:

    I 've gotten somewhere. I thought the firewall was disabled because I was using the old iptables rather than firewalld. So I believe I never had it set up correctly. After a few tweaks, Task Scheduler seems to have successfully connected to TFTP and started the job.

    After that it was double checking to make sure some other services, like nfs-server, were properly enabled and started and I’m good to go.

    Could you elaborate on the other tweaks you performed to make it work. I’m currently having problems were I’m able to access the web interface from the fog server but not from another machine.

    Fedora 20
    Fog 1.2.0



  • @a1adam12, post: 24086, member: 22878 said:

    Hi…

    I’ve been trying to hack my way through installing FOG on Fedora 20. I’ve been able to follow some of the other threads to successfully complete the installation and change some PHP files. I’m able to successfully view the site in a browser, as well as add new hosts and migrate some images from an older installation.

    I’m at the point where I’m trying to deploy an image in Task Scheduler, but I’m receiving the dreaded “None of the machines were able to be queued! Unable to connect to tftp server.” error message.

    I’ve gone through the process of resetting the fog user password is reset to the default “password”, as well as checking to make sure in the FOG_TFTP_FTP_USERNAME and FOG_TFTP_FTP_PASSWORD in the GUI and also TFTP_FTP_USERNAME, TFTP_FTP_PASSWORD, STORAGE_FTP_USERNAME, and STORAGE_FTP_PASSWORD are all set to the same.

    I’ve disabled SELinux and the firewall for the time being. All of this and no luck with getting a task started. Has anyone else come across this? Or am I just being a little too aggressive trying to get it up and running on such a new OS?

    Thanks for any advice…

    I 've gotten somewhere. I thought the firewall was disabled because I was using the old iptables rather than firewalld. So I believe I never had it set up correctly. After a few tweaks, Task Scheduler seems to have successfully connected to TFTP and started the job.

    After that it was double checking to make sure some other services, like nfs-server, were properly enabled and started and I’m good to go.


Log in to reply
 

444
Online

38716
Users

10544
Topics

99831
Posts

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