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

    Cannot get linux to complete the pxe boot

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    13
    6.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.
    • D
      dureal99d
      last edited by

      I don’t know what exporting via nfs means, I assume it means that the folder is read write accessible.

      Can I booth this image by placing it in the images folder? or should I extract the total iso to the image folder and set 755 permissions.

      If I can get s step by step it would be nice. Inclusively I have tried to upgrade to trunk but I get a cannot access this server apache error.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @dureal99d
        last edited by

        @dureal99d I’ll see if I can do this with the instructions I already have…

        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/

        D 1 Reply Last reply Reply Quote 0
        • D
          dureal99d @Wayne Workman
          last edited by

          @Wayne-Workman THank you so much I really need it.

          1 Reply Last reply Reply Quote 0
          • D
            dureal99d
            last edited by

            I don’t understand how to mount an iso in Ubuntu as relates to fog that is

            1 Reply Last reply Reply Quote 0
            • D
              dureal99d
              last edited by

              if I must change my nfs what do I do to change it?

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

                I think you need to start reading and teaching yourself some stuff if you want to be a happy linux user. Don’t get me wrong. We are happy to help you here but it will we very frustrating for you if you always have to ask about every step and keep waiting for answers.

                Ask google for ‘ubuntu mount iso’ and it’ll take you straight to this one: http://askubuntu.com/questions/164227/how-to-mount-an-iso-file (the question is the solution already!)

                As well for exporting an NFS share there are lots infos on the net. To make it easy for you I post the short version for you here as NFS-server is already installed on your FOG server.

                • Edit /etc/exports to add a line like this: /var/www/fog/service/ipxe/ubuntu *(ro,async)
                • Make sure this is the same directory that you have loop-mounted the iso to (you should see a directory called ‘casper’ in it!)
                • Run sudo exportfs -rav to make the config change live
                • Change your iPXE menu and point your nfsroot to the correct location nfsroot=${fog-ip}:/var/www/fog/service/ipxe/ubuntu/ (I am pretty sure you need to remove the casper dir here)

                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

                D 1 Reply Last reply Reply Quote 0
                • D
                  dureal99d
                  last edited by

                  oh I see. Let me be clear I do know Linux and I use it a lot or I wold not have gotten this far trust. however, I am not to good at some more intricate things. with that said I believe I understand what you are saying. I must mount the iso using a loop method in the fog ipxe directory, in which furios iso mount will do well and being as fog already has its nfs exported I can simply piggy back off of it by doing so. so I must make sure the nfsroot point to the iso that is mounted to ensure success. I will give it a try

                  1 Reply Last reply Reply Quote 0
                  • D
                    dureal99d @Sebastian Roth
                    last edited by

                    @Sebastian-Roth ok so i made the changes but now i get a permission issue still but i get much further than i ever have. funny thing is it now reports that it is not a directory whatever that means?? any suggestions and yes i am patient enough to wait for what i desire!!!

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

                      I cannot help if I don’t know what exactly goes wrong. Please upload a screenshot of the new error. Have you tried mounting the NFS share from another linux machine just to make sure it is working?

                      sudo mkdir -p /mnt
                      sudo mount -t nfs -o nolock 192.168.1.133:/var/www/fog/service/ipxe/ubuntu /mnt
                      sudo ls -al /mnt
                      .....
                      ..
                      sudo umount /mnt
                      

                      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

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        dureal99d @Sebastian Roth
                        last edited by

                        Ok so here is the result, I got it working thanks to a person on this forum named aaoyagi.

                        When I followed his instructions my Linux distros booted without fail via my fog server over the network!!!

                        In case anybody wants the steps:

                        First in your /etc/exports add this line:
                        /var/www/fog/iso/15.04_64 *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)

                        Then restart your nfs server. If you’re running Ubuntu it’s sudo service nfs-kernel-server restart

                        Next, extract the Ubuntu iso to a direcotry named 15.04_64 in your /var/www/fog/iso directory.

                        In your Advanced menu use this:
                        :MENU
                        menu
                        item --gap – ---------------- iPXE boot menu ----------------
                        item ubuntu15.04_64 Boot Ubuntu 15.04
                        item return return to previous menu
                        :ubuntu15.04_64
                        set path /fog/iso/15.04_64
                        set nfs_path /var/www/fog/ISO/15.04_64
                        kernel http://${fog-ip}${path}/casper/vmlinuz.efi || read void
                        initrd http://${fog-ip}${path}/casper/initrd.lz || read void
                        imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp splash quiet – || read void
                        boot || read void
                        goto start

                        Hopefully it works for you too. You don’t have to set the variables. I just did it that way in case I ever have to change where the iso directory lives.

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

                        227

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project