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

    Installed FOG, what now?

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    8
    3.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.
    • B
      bertalanimre
      last edited by bertalanimre

      Hey Forum,

      I would like to say thank you for the whole dev team. I love this installation mode for a PXE server. But since I’m very new to this topci, may I have some help please?
      I’ve installed Fog project on a new virtual machine. Set my own DHCP server up to serve it and now new clients are trying to boot from iPXE. Now I receive an error message saying nothing to boot: No such file or directory.

      http://imgur.com/a/tCwpa

      I assume I have to download the ISO files I want to be available for PXE boots, but how can I add them to the server? In my example I wish to use

      • Windows 10
      • Fedora 25 - Workstation
      • CentOS 7 - Everything
      • openSUSE Leap 42.2
      • Ubuntu 16.04 LTS
      • and maybe a live system available.

      How do I set these up?

      Thanks in advance!

      Bert

      JunkhackerJ 1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer @bertalanimre
        last edited by

        @bertalanimre first off, i think you may have a misunderstanding of what fog is. fog isn’t used for “installing” operating systems. it’s for deploying pre-configured images of systems. you install your system to a computer, configure it the way you want, then capture it with fog. then you can deploy that image to other systems.

        with that out of the way, have you set your DHCP 66/67 options?

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        B Wayne WorkmanW 2 Replies Last reply Reply Quote 1
        • B
          bertalanimre @Junkhacker
          last edited by

          @Junkhacker Thank you for clearing this. This was most likely a misunderstanding with my English knowledbe because when you say image, at first I though about the downloadable Linux images. So what you say is that Fog is unable to install a linux iso file downloaded from the internet?

          To your question about DHCP: Yes, I’ve added it. Currently dnsmasq looks like this:

          dhcp-range=set:enp2s10,10.0.0.2,10.0.0.254,255.255.255.0,86400
          dhcp-option=tag:enp2s10,option:router,10.0.0.1
          dhcp-option=tag:enp2s10,option:tftp-server,"10.0.0.153"
          dhcp-range=set:enp2s8,192.168.100.1,192.168.100.254,255.255.255.0,86400
          dhcp-option=tag:enp2s8,option:router,192.168.100.1
          dhcp-lease-max=534
          dhcp-option=66,67
          

          Is this correct?

          JunkhackerJ 1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer @bertalanimre
            last edited by

            @bertalanimre that doesn’t look correct. options 66 and 67 aren’t just things you have to enable, they’re configured. dnsmasq calls these options next-server and filename, i believe.
            try adding this line to your config

            dhcp-boot=undionly.kpxe,,<fog_server_IP>
            

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 1
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              @bertalanimre As Junkhacker already said FOG is not a tool for installing operating systems automatically but for capturing an already installed system and deploying it to as many other PCs as you want.

              The iPXE booting we are seeing in the screenshot is NOT iPXE which is served by FOG but iPXE included in the virtualbox.

              Where did you get those dnsmasq config lines from? This is definitely not what we would advice as simple config for beginners! Having more than one network interface card in your FOG/dnsmasq server is definitely making it more error-prone…

              Maybe play with this sample to begin with: https://wiki.fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server

              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
              • B
                bertalanimre
                last edited by

                Hey Sebastian and Junkhacker

                I’ve implemented the requested line and here are the results. (Not virtualbox, but KVM)

                http://imgur.com/9pPtbGY

                Indeed, this is a custom config, because the DHCP server is actually a NethServer 7 (Out of the box CentOS 7 server) and it has it’s own configuration. I can add TFTP server IP addresses to it by default on it’s configuration page, but to edit it manually, is not recommended, but it woun’t crash it (unless, you write garbage in the configs).

                But as you’ve stated, since FOG is not for install ing OSs automaticaly, but install captured images, I think this is not the tool I need. Itt looks very simple and I have a friend who’ll need it. I’ll pass the project to him, but I’ll look for another easy way to set up PXE server. I’m very new to this whole idea, area, methid, or whatever, so I’m very confused about almost everything. 🙂

                Thank you for your help anyhow and good luck with the project for the future!

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by

                  @bertalanimre Just in case you still want to dig into this… Is 10.0.0.153 your FOG server? Cause this is where iPXE thinks it can load the next piece via TFTP. Make sure TFTP service is running properly on this host and the requested file is available too…

                  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
                  • Wayne WorkmanW
                    Wayne Workman @Junkhacker
                    last edited by

                    @Junkhacker said in Installed FOG, what now?:

                    fog isn’t used for “installing” operating systems.

                    I would highly recommend hashicorp’s Packer for that. They need to support fog. Maybe I can help make that happen.

                    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
                    • 1 / 1
                    • First post
                      Last post

                    213

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project