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

How to pxe boot cent os 7

Scheduled Pinned Locked Moved Solved
General
5
63
30.6k
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 @george1421
    last edited by Sep 7, 2016, 1:20 AM

    @george1421 said in How to pxe boot cent os 7:

    /var/www/fog/service/ipxe *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)

    that one liner is pretty nice

    1 Reply Last reply Reply Quote 0
    • D
      dureal99d @Wayne Workman
      last edited by dureal99d Sep 6, 2016, 7:47 PM Sep 7, 2016, 1:46 AM

      @Wayne-Workman @george1421
      I am getting no such file or directory exist , how do i fix this?

      “bash: 192.168.1.109: No such file or directory”

      W 1 Reply Last reply Sep 7, 2016, 1:50 AM Reply Quote 0
      • W
        Wayne Workman @dureal99d
        last edited by Wayne Workman Sep 6, 2016, 7:51 PM Sep 7, 2016, 1:50 AM

        @dureal99d I’m not sure how much you know, but it doesn’t hurt you or future readers to just re-iterate what I know.

        The /etc/exports file is for Network File System exports. This is how Linux natively shares files across a network.

        http file distribution is done via Apache or nginx or some other http service, and is NOT nfs. these paths you have in your original post, they are web paths. Such as: http://${fog-ip}/fog/service/ipxe/Centos/images/pxeboot/initrd.img This is a web path. This would be accessible if you plugged the fully expanded URL into a web browser. This is not via NFS, but via HTTP using apache to serve it.

        Please post a picture of the error you’re getting, it’ll help us figure out what’s going on.

        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 2 Replies Last reply Sep 7, 2016, 1:54 AM Reply Quote 0
        • D
          dureal99d @Wayne Workman
          last edited by Sep 7, 2016, 1:54 AM

          @Wayne-Workman 0_1473213279986_Screenshot from 2016-09-06 20-52-35.png

          1 Reply Last reply Reply Quote 0
          • D
            dureal99d @Wayne Workman
            last edited by Sep 7, 2016, 1:57 AM

            @Wayne-Workman I see, well clearly i have a lot to learn about nfs. and i am at another station trying to “linux” of course trying to mount the share.

            W 1 Reply Last reply Sep 7, 2016, 2:00 AM Reply Quote 0
            • W
              Wayne Workman @dureal99d
              last edited by Wayne Workman Sep 6, 2016, 8:00 PM Sep 7, 2016, 2:00 AM

              @dureal99d I’d suggest you move all that stuff to somewhere else besides a web directory. This is a rather very nasty setup IMO - and as it is this is absolutely going to fill some partition somewhere eventually as FOG makes a complete copy of the web directory each time you re-run the installer (to update or to troubleshoot). You need to put this stuff elsewhere.

              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 Sep 7, 2016, 2:03 AM Reply Quote 0
              • T
                Tom Elliott
                last edited by Sep 7, 2016, 2:03 AM

                Where are you seeing no such? Is it in ipxe or just in cli? It appears, to me, your cli is wrong as you have <> in the cli around the IP. This is incorrect, or so I thought. It should be ip:/path/to/mount

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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 2 Replies Last reply Sep 7, 2016, 2:04 AM Reply Quote 0
                • D
                  dureal99d @Wayne Workman
                  last edited by Sep 7, 2016, 2:03 AM

                  @Wayne-Workman said in How to pxe boot cent os 7:

                  directory. This is a rather very nasty setup IMO - and

                  Ok I’m in the middle of moving it all to the suggested location as we speak.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dureal99d @Tom Elliott
                    last edited by dureal99d Sep 6, 2016, 8:07 PM Sep 7, 2016, 2:04 AM

                    @Tom-Elliott said in How to pxe boot cent os 7:

                    Is it in ipxe or just in cli

                    my cli is clearly wrong then as I just copied and pasted what @george1421 put a command I should use to mount and now that I look at it I probably read it wrong

                    T 1 Reply Last reply Sep 7, 2016, 2:06 AM Reply Quote 0
                    • T
                      Tom Elliott @dureal99d
                      last edited by Sep 7, 2016, 2:06 AM

                      @dureal99d it was right. In Linux when describing and line it’s quite common to use <> as a means to say: replace with… Just remove the <> and change the string for your setup

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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 1
                      • D
                        dureal99d @Tom Elliott
                        last edited by dureal99d Sep 6, 2016, 8:12 PM Sep 7, 2016, 2:10 AM

                        @Tom-Elliott ok so i did as suggested and now i get this

                        mount: wrong fs type, bad option, bad superblock on 192.168.1.109:/opt/bootimgs/fedora,
                        missing codepage or helper program, or other error
                        (for several filesystems (e.g. nfs, cifs) you might
                        need a /sbin/mount.<type> helper program)

                           In some cases useful info is found in syslog - try
                           dmesg | tail or so.
                        
                        W T 2 Replies Last reply Sep 7, 2016, 2:18 AM Reply Quote 0
                        • W
                          Wayne Workman @dureal99d
                          last edited by Wayne Workman Sep 6, 2016, 8:19 PM Sep 7, 2016, 2:18 AM

                          @dureal99d our Troubleshoot NFS article linked below explains troubleshooting NFS as it relates to FOG, might help you with understanding.

                          But let’s take a basic example?

                          The images directory. It’s exported as such:

                          /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)

                          Say that server’s IP address is 10.0.0.4. From a remote Linux box, I’d mount this NFS shared directory to a local directory called /mnt as such:

                          mount 10.0.0.4:/images /mnt

                          Now, if I were to try to describe to you how to do this but try to also say “replace this field”, I might say:

                          mount <your IP here>:/images /mnt all this means is completely remove the left & right carrots and put an IP there instead.

                          But, to the root of the issue, it looks like your boot menu is using http which has absolutely nothing to do with NFS at all. Completely nothing to do with it.

                          If you were to put your ISOs somewhere else, and create a soft symbolic link to them somewhere in the web directory, and then set permissions properly and path your menu properly, you can get these things working again. We would need to know where you’re putting stuff to help out.

                          https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_NFS

                          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 Sep 7, 2016, 2:27 AM Reply Quote 0
                          • T
                            Tom Elliott @dureal99d
                            last edited by Sep 7, 2016, 2:19 AM

                            @dureal99d lose the -t nfs?

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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 Sep 7, 2016, 2:28 AM Reply Quote 0
                            • D
                              dureal99d @Wayne Workman
                              last edited by Sep 7, 2016, 2:27 AM

                              @Wayne-Workman as suggested by @george1421 I am moving all my files to a folder called /opt/bootimgs on my Linux box

                              W 1 Reply Last reply Sep 7, 2016, 2:29 AM Reply Quote 0
                              • D
                                dureal99d @Tom Elliott
                                last edited by dureal99d Sep 6, 2016, 8:29 PM Sep 7, 2016, 2:28 AM

                                @Tom-Elliott removed the suggested lines from the command same result

                                1 Reply Last reply Reply Quote 0
                                • W
                                  Wayne Workman @dureal99d
                                  last edited by Sep 7, 2016, 2:29 AM

                                  @dureal99d said in How to pxe boot cent os 7:

                                  @Wayne-Workman as suggested by @george1421 I am moving all my files to a folder called /opt/bootimgs on my Linux box

                                  Because your boot menu is using http, you would still need to create a soft symbolic link from this new directory to somewhere in the web directory.

                                  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 Sep 7, 2016, 2:30 AM Reply Quote 0
                                  • D
                                    dureal99d @Wayne Workman
                                    last edited by Sep 7, 2016, 2:30 AM

                                    @Wayne-Workman said in How to pxe boot cent os 7:

                                    you would still need to create a soft symbolic link from this new directory to somewhere in the web directory.

                                    Ok how do i create this soft link?

                                    W 1 Reply Last reply Sep 7, 2016, 2:38 AM Reply Quote 0
                                    • W
                                      Wayne Workman @dureal99d
                                      last edited by Wayne Workman Sep 6, 2016, 8:40 PM Sep 7, 2016, 2:38 AM

                                      @dureal99d The syntax is:

                                      ln -s <source> <destination>

                                      You should remove the left/right carrots when running the command.
                                      If all the ISOs are in /opt/bootimgs the command would be:
                                      ln -s /opt/bootimgs /var/www/html

                                      Of course, apache needs access to this new directory also. It’s fine to set ownership of /opt/bootimgs to apache:root or 777 or something.

                                      And your resultant web path to these files would then be:
                                      http://<IP>/bootimgs/whatever

                                      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 2 Replies Last reply Sep 7, 2016, 2:42 AM Reply Quote 0
                                      • D
                                        dureal99d @Wayne Workman
                                        last edited by Sep 7, 2016, 2:42 AM

                                        @Wayne-Workman ok ima get on it and post the results shortly

                                        T 1 Reply Last reply Sep 7, 2016, 2:43 AM Reply Quote 0
                                        • T
                                          Tom Elliott @dureal99d
                                          last edited by Sep 7, 2016, 2:43 AM

                                          @dureal99d after setting the new nfs paths, did you run exportfs -a

                                          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                          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 2 Replies Last reply Sep 7, 2016, 2:47 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 2 / 4
                                          2 / 4
                                          • First post
                                            22/63
                                            Last post

                                          140

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project