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

    move to Fog Pxe menu

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    5
    410
    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.
    • C
      chris_unit
      last edited by

      I’m looking to migrate all my pxelinux menu items over to Frog and have frog become my primay pxe menu on boot

      i have items like this

      LABEL Flame2020 CentOS7.6
      MENU LABEL ^Flame2020 CentOS 7.6
      MENU PASSWD a0F1BvFIT2asdfasoKPX/I1e20
      KERNEL /flame2020_centos7.6/vmlinuz
      APPEND initrd=/flame2020_centos7.6/initrd.img inst.repo=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6 ks=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6/ks_820.cfg

      how would i add this to the menu. ideally using the web gui as the php looks a little complicated

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @chris_unit
        last edited by george1421

        @chris_unit Well to get started look at this tutorial on pxe booting your custom images: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images

        I just looked through my tutorial and I can’t believe I don’t have a Centos example. That was my goto OS (rhel/centos) for 15 years before IBM destroyed it. Taking an example from the Fedora post in the above tutorial.

        Menu Item: os.FedoraW27
        Description: Fedora Workstation v27
        Parameters:
        kernel tftp://${fog-ip}/os/fedora/W27/vmlinuz
        initrd tftp://${fog-ip}/os/fedora/W27/initrd.img
        imgargs vmlinuz initrd=initrd.img root=live:nfs://${fog-ip}/images/os/fedora/W27/LiveOS/squashfs.img ip=dhcp repo=nfs://${fog-ip}/images/os/fedora/W27 splash quiet
        boot || goto MENU
        Menu Show with: All Hosts

        Now using your example
        Menu Item: os.Flame2020.CentOS7.6
        Description: Flame2020 CentOS7.6
        Parameters:
        kernel tftp://${fog-ip}/flame2020_centos7.6/vmlinuz
        initrd tftp://${fog-ip}/flame2020_centos7.6/initrd.img
        imgargs vmlinuz initrd=/flame2020_centos7.6/initrd.img inst.repo=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6 ks=nfs://pixit-v60-10g.ldn.unit.tv/mmfs1/data/anubis/.install/isos/flame2020_centos7.6/ks_820.cfg
        boot || goto MENU
        Menu Show with: All Hosts

        You can do the password bit too with iPXE, I just don’t have an example of that for an iPXE menu.

        One hint I can give you is stay away from using the dash ( - ), well actually space dash any letter ( -x) within your menu item or description. iPXE will see this as a parameter option.

        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!

        C 1 Reply Last reply Reply Quote 0
        • C
          chris_unit @george1421
          last edited by

          @george1421 Thanks so much for this

          i’m trying to get Ubuntu 20.04 Desktop working

          here’s my menu item

          kernel tftp://${fog-ip}/os/ubuntu/Desk20.04/vmlinuz
          initrd tftp://${fog-ip}/os/ubuntu/Desk20.04/initrd
          imgargs vmlinuz initrd=initrd ip=dhcp url=http://${fog-ip}/os/ubuntu/Desk20.04/ubuntu-20.04.2.0-desktop-amd64.iso locale=en_US.UTF-8 quiet splash ip=dhcp rw
          boot || goto MENU

          vmlinuz and initrd load fine, but it can’t locate the iso.

          Is the directory /images/ shared out over http ?

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

            @chris_unit Does the ISO exist in the location you specified. Should be in /var/www/html/fog/os/ubuntu/Desk20.04/ubuntu-20.04.2.0-desktop-amd64.iso according to the stuff you posted.

            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
            • george1421G
              george1421 Moderator @chris_unit
              last edited by

              @chris_unit said in move to Fog Pxe menu:

              Is the directory /images/ shared out over http ?

              No its not the docbase for http on ubuntu is /var/www/ I believe. So your os/ubuntu/Desk... path should start form there.

              I would also confirm with a browser that you can reference the url to get the iso. That will tell you its working before you attempt to pxe boot.

              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!

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

              259

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project