Pfsense 2.4.0 & FOG 1.4.4 no file found



  • firstly, Hello!
    Im very new to fog and imaging computers at all, but hey gotta start from somewhere.
    All of this is on VirtualBox environment
    So i have pfsense router running with dhcp on it.
    Network boot is enabled
    and the correct IP to the FOG machine is set.
    Default bios file name is set aswell as told in the guide :
    https://wiki.fogproject.org/wiki/index.php?title=Other_DHCP_Configurations

    0_1508671217468_dhcp.PNG

    The TFTP server is running aswell
    0_1508671293328_tftp.PNG

    And these are my FOG TFTP server settings
    0_1508671357600_fogtftp.PNG

    Yet the network booting device, still gives error.
    0_1508671414469_netboot.PNG


  • Moderator

    @degaro While this response may be a bit snarky; my response would be, what would you have learned if it worked perfectly right out of the box? What do you now know that you didn’t just a few hours ago? You DO learn more and remember it longer when you have failures than success.
    The FOG developers can only protect the IT admin so much. I agree that the question needs to be worded better. Maybe something like:

    Would you like to have the FOG server act as the DHCP server for your network? [y/N] Y
    

    The default is no, but the IT admin can still pick yes. The developers really can’t stop that.



  • Woohoo got it working.
    The error was in

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

    It needs to be No, else there would be double DHCP servers running on the network. The Pfsense and the FOG
    Which at the end of installation would lead to

    * Setting up and starting DHCP Server.........................Failed!
    

    For future reference, there should be an warning inside the install if that occurs.
    "Multiple DHCP servers detected on network, reinstall and choose No on that question or disable other DHCP server"
    Or something like that.
    Anyways, thanks for help
    0_1508680812232_win10 working.PNG



  • root@ubuntu:~/fog_1.4.4/bin# sudo ./installfog.sh
    Installing LSB_Release as needed
     * Attempting to get release information.......................Done
    systemd
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 1.4.4 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)
              3) Arch Linux
    
      Choice: [2] 2
    
    
    
      Starting Debian based Installation
    
    
     *** Detected a potential need to reinstall apache and php files.
     *** This will remove the /etc/php* and /etc/apache2* directories
     ***  and remove/purge the apache and php files from this system.
     *** If you're okay with this please type Y, anything else will
     ***  continue the installation, but may mean you will need to
     ***  remove the files later and make proper changes as
     ***  necessary. (Y/N):
    Y
     * Removing apache and php files...............................Done
     * Stopping web services.......................................Done
     * Removing the apache and php packages........................Done
     * Resetting our variables to specify php version 7.1..........Done
      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:
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? [N/s (Normal/Storage)] N
    
      What is the IP address to be used by this FOG Server? [172.16.0.12]
    
      Would you like to change the default network interface from enp0s3?
      If you are not sure, select No. [y/N] N
    
      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? [172.16.0.1]
    
      Would you like DHCP to handle DNS? [Y/n] Y
      What DNS address should DHCP allow? [172.16.0.1]
    
      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] N
    
       ######################################################################
       #     FOG now has everything it needs for this setup, 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.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #           ** Notice ** FOG is difficult to setup securely          #
       #        SELinux and IPTables are usually asked to be disabled       #
       #           There have been strides in adding capabilities           #
       #          The recommendations would now be more appropriate         #
       #    to set SELinux to permissive and to disable firewall for now.   #
       #  You can find some methods to enable SELinux and maintain firewall #
       #   settings and ports. If you feel comfortable doing so please do   #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Server IP Address: 172.16.0.12
     * Server Subnet Mask: 255.0.0.0
     * Interface: enp0s3
     * Installation Type: Normal Server
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: Yes
     * DHCP router Address: 172.16.0.1
    
    
     * 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.
    
     * Adding needed repository....................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
            apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc isc-dhcp-s   erver lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net   -tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-c   url php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt p   hp7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip    vsftpd wget xinetd zlib1g
    
    
     * Installing package: apache2.................................OK
     * Skipping package:   bc......................................(Already Installed)
     * Skipping package:   build-essential.........................(Already Installed)
     * Skipping package:   cpp.....................................(Already Installed)
     * Skipping package:   curl....................................(Already Installed)
     * Skipping package:   g++.....................................(Already Installed)
     * Skipping package:   gawk....................................(Already Installed)
     * Skipping package:   gcc.....................................(Already Installed)
     * Skipping package:   gzip....................................(Already Installed)
     * Skipping package:   htmldoc.................................(Already Installed)
     * Skipping package:   isc-dhcp-server.........................(Already Installed)
     * Skipping package:   lftp....................................(Already Installed)
     * Installing package: libapache2-mod-php7.1...................OK
     * Skipping package:   libc6...................................(Already Installed)
     * Skipping package:   libcurl3................................(Already Installed)
     * Skipping package:   m4......................................(Already Installed)
     * Skipping package:   mysql-client............................(Already Installed)
     * Skipping package:   mysql-server............................(Already Installed)
     * Skipping package:   net-tools...............................(Already Installed)
     * Skipping package:   nfs-kernel-server.......................(Already Installed)
     * Skipping package:   openssh-server..........................(Already Installed)
     * Installing package: php7.1..................................OK
     * Installing package: php7.1-bcmath...........................OK
     * Skipping package:   php7.1-cli..............................(Already Installed)
     * Installing package: php7.1-curl.............................OK
     * Installing package: php7.1-fpm..............................OK
     * Installing package: php7.1-gd...............................OK
     * Skipping package:   php7.1-json.............................(Already Installed)
     * Installing package: php7.1-ldap.............................OK
     * Installing package: php7.1-mbstring.........................OK
     * Installing package: php7.1-mcrypt...........................OK
     * Installing package: php7.1-mysql............................OK
     * Skipping package:   php7.1-mysql............................(Already Installed)
     * Installing package: php-gettext.............................OK
     * Skipping package:   sysv-rc-conf............................(Already Installed)
     * Skipping package:   tar.....................................(Already Installed)
     * Skipping package:   tftpd-hpa...............................(Already Installed)
     * Skipping package:   tftp-hpa................................(Already Installed)
     * Skipping package:   unzip...................................(Already Installed)
     * Skipping package:   vsftpd..................................(Already Installed)
     * Skipping package:   wget....................................(Already Installed)
     * Skipping package:   xinetd..................................(Already Installed)
     * Skipping package:   zlib1g..................................(Already Installed)
     * Updating packages as needed.................................OK
    
     * Confirming package installation
    
     * Checking package: apache2...................................OK
     * Checking package: bc........................................OK
     * Checking package: build-essential...........................OK
     * Checking package: cpp.......................................OK
     * Checking package: curl......................................OK
     * Checking package: g++.......................................OK
     * Checking package: gawk......................................OK
     * Checking package: gcc.......................................OK
     * Checking package: gzip......................................OK
     * Checking package: htmldoc...................................OK
     * Checking package: isc-dhcp-server...........................OK
     * Checking package: lftp......................................OK
     * Checking package: libapache2-mod-php7.1.....................OK
     * Checking package: libc6.....................................OK
     * Checking package: libcurl3..................................OK
     * Checking package: m4........................................OK
     * Checking package: mysql-client..............................OK
     * Checking package: mysql-server..............................OK
     * Checking package: net-tools.................................OK
     * Checking package: nfs-kernel-server.........................OK
     * Checking package: openssh-server............................OK
     * Checking package: php7.1....................................OK
     * Checking package: php7.1-bcmath.............................OK
     * Checking package: php7.1-cli................................OK
     * Checking package: php7.1-curl...............................OK
     * Checking package: php7.1-fpm................................OK
     * Checking package: php7.1-gd.................................OK
     * Checking package: php7.1-json...............................OK
     * Checking package: php7.1-ldap...............................OK
     * Checking package: php7.1-mbstring...........................OK
     * Checking package: php7.1-mcrypt.............................OK
     * Checking package: php7.1-mysql..............................OK
     * Checking package: php-gettext...............................OK
     * Checking package: sysv-rc-conf..............................OK
     * Checking package: tar.......................................OK
     * Checking package: tftpd-hpa.................................OK
     * Checking package: tftp-hpa..................................OK
     * Checking package: unzip.....................................OK
     * Checking package: vsftpd....................................OK
     * Checking package: wget......................................OK
     * Checking package: xinetd....................................OK
     * Checking package: zlib1g....................................OK
    
     * Configuring services
    
     * Setting up fog user.........................................Already setup
     * Setting up fog password.....................................OK
     * Stopping FOGMulticastManager.service Service................OK
     * Stopping FOGImageReplicator.service Service.................OK
     * Stopping FOGSnapinReplicator.service Service................OK
     * Stopping FOGScheduler.service Service.......................OK
     * Stopping FOGPingHosts.service Service.......................OK
     * Stopping FOGSnapinHash.service Service......................OK
     * Stopping FOGImageSize.service Service.......................OK
     * Setting up and starting MySQL...............................OK
     * Backing up user reports.....................................Done
     * Stopping web service........................................OK
     * Is the MySQL password blank? (Y/n) Y
     * Stopping FOGMulticastManager.service Service................OK
     * Stopping FOGImageReplicator.service Service.................OK
     * Stopping FOGSnapinReplicator.service Service................OK
     * Stopping FOGScheduler.service Service.......................OK
     * Stopping FOGPingHosts.service Service.......................OK
     * Stopping FOGSnapinHash.service Service......................OK
     * Stopping FOGImageSize.service Service.......................OK
     * Setting up and starting MySQL...............................OK
     * Setting up Apache and PHP files.............................OK
     * Testing and removing symbolic links if found................OK
     * Backing up old data.........................................OK
     * Copying new files to web folder.............................OK
     * Creating config file........................................OK
     * Unzipping the binaries......................................Done
     * Copying binaries where needed...............................Done
     * Enabling apache and fpm services on boot....................OK
     * Creating SSL CA.............................................OK
     * Creating SSL Private Key....................................OK
     * Creating SSL Certificate....................................OK
     * Creating auth pub key and cert..............................OK
     * Resetting SSL Permissions...................................OK
     * Setting up SSL FOG Server...................................OK
     * Starting and checking status of web services................OK
     * Changing permissions on apache log files....................OK
     * Backing up database.........................................OK
    
     * You still need to install/update your database schema.
     * This can be done by opening a web browser and going to:
    
       http://172.16.0.12/fog/management
    
     * Press [Enter] key when database is updated/installed.
    
     * Setting up storage..........................................OK
     * Setting up and starting DHCP Server.........................Failed!
    root@ubuntu:~/fog_1.4.4/bin#
    

  • Moderator

    @degaro It sounds like you have an incomplete install of FOG. The fog installer will create that directory and populate it with files. Please ensure that your fog server has internet access and then rerun the installer (installfog.sh)



  • Thanks for reply’s

    sudo ufw status
    Status: inactive
    
     ls -al /tftpboot/undionly.kpxe
    ls: cannot access '/tftpboot/undionly.kpxe': No such file or directory
    

    0_1508676576282_notfound.PNG

    Yes it’s Ubuntu server 16.04.3
    Reason why i use class A mask but class B range is because, just in case the ISP router should access the Pfsense internal network, it doesnt mess with class A range.
    Whole system goes like this :
    ISP Router > My computer > Bridged connection for eth1 inside VirtualBox (Pfsense wan) and Eth2 as intranet (For pfsense lan)
    The Fog and windows device that im trying to clone are all attached to that intranet, so they get their dhcp address from Pfsense and not from the ISP router which also has some IPTV box running on class A route.

    But anyways it seems there are missing files from tftpboot folder and actually the folder itself.


  • Developer

    @degaro Definitely check things like firewall as posted by George first. If you can’t make it work, please double check the filename you have set in your pfSense. We have seen e.g. spaces at the end of the filename that would cause trouble. So if you copy&pasted that filename, please make sure there are not “hidden” characters in that field in the beginning or end of that filename.

    The other thing that comes to my mind is that possibly something went wrong when those iPXE boot files were installed. We haven’t seen something like that in a very long time but hey, you never know. Please run ls -al /tftpboot/undionly.kpxe on your FOG server just to make sure it exists and is readable. Post a picture of the output so we can check as well.

    Though this looks like a Ubuntu or Debian system I am not exactly sure. In case you use CentOS make sure you have SElinux set to permissive!!


  • Moderator

    All of your settings appear correct.

    I have a couple of observations and then a question.

    1. I see you have a class A address mask (255.0.0.0) but you are using a class B address range 172.16.x.x this is a bit abnormal. With classless routing that really doesn’t matter, I just find it a bit odd.
    2. In your pfsense setup you probably should enter the values for uefi systems too. For uefi32 you should enter i386-efi/ipxe.efi and for uefi64 ipxe.efi.

    Did you disable the ubuntu firewall? You can check to see if its on or off with sudo ufw status. If you load the tftp client (feature) on your windows computer can you do a tftp get and download undionly.kpxe?

    Since you are using virtual box, is everything bridged to your physical adapter? This may not be important now since everything is running on the same physical host. But when you start connecting things outside of your virtual host then you need to ensure you are using a bridged network adapter.

    If you can’t figure it out still, you can use your fog server to listen in on the dhcp booting process to record a pcap file. The instructions are here: https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue You can review the pcap using wireshark or upload it to a google drive and post the link here, or IM me the link and I can look at it for you to see why its not pxe booting.


Log in to reply
 

399
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

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