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

    Ubuntu 17.10 Desktop PXE boot - No Internet

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    4
    11
    4.1k
    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.
    • george1421G
      george1421 Moderator @steven.attaway
      last edited by george1421

      @steven-attaway Suggestion, follow this post: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/6

      Just as a word of caution, this post worked for me properly when I wrote the tutorial. I did have one feedback stating that the stock ubuntu kernel won’t netboot, you need the ubuntu netboot kernel and initrd for that. https://forums.fogproject.org/topic/11027/problems-with-using-fog-to-pxe-boot-into-your-favorite-installer

      If you would, please follow my tutorial exactly and test it. If it doesn’t work then please use the kernel and initrd that was referenced in the second link.

      I need your help to improve the quality of the tutorial before the instructions get moved into the wiki.

      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!

      steven.attawayS 1 Reply Last reply Reply Quote 0
      • steven.attawayS
        steven.attaway @george1421
        last edited by

        @george1421 Alright, so I did everything you said on the first post and it did fail with me too. I went to http://archive.ubuntu.com and downloaded the netboot kernel (linux) and the netboot initrd (initrd.gz), but now it goes straight to the Ubuntu Installer. I’m actually wanting the live desktop.

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

          Ok give me a minute. We may need to meld the configurations.

          My docs use nfs all the way. You are mixing http and nfs. The http means that you have to put your files under /var/www/html to be able to access them.

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

            To keep your configuration in line with the totorial lets do the following:

            Move your iso content from /images/ISO/LINUX/ud1710x64 to /images/os/ubuntu/ud1710x64

            Then create the tftp directory

            mkdir /tftpboot/os
            mkdir /tftpboot/os/ubuntu
            mkdir /tftpboot/os/ubuntu/ud1710x64
            
            cp /images/os/ubuntu/ud1710x64/casper/vmlinuz.efi  /tftpboot/os/ubuntu/ud1710x64
            cp /images/os/ubuntu/ud1710x64/casper/initrd.lz  /tftpboot/os/ubuntu/ud1710x64
            

            Now in the webgui

            kernel tftp://${fog-ip}/os/ubuntu/ud1710x64/casper/vmlinuz.efi
            initrd tftp://${fog-ip}/os/ubuntu/ud1710x64/casper/initrd.lz
            imgargs vmlinuz initrd=initrd.gz root=/dev/nfs netboot=nfs nfsroot=${fog-ip}:/images/os/ubuntu/ud1710x64/ locale=en_US.UTF-8 ip=dhcp rw

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

              I am currently in the process of downloading Ubuntu 17.10 Desktop to confirm the settings. I’ll create a post in the tutorial thread with how I get it configured. Its a better way than just guessing at the settings.

              Also thank you for testing on the ubuntu installer side. I’ll get that post updated with the proper info too.

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

                This process pxe boots to the Ubuntu Desktop: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/12

                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!

                steven.attawayS 1 Reply Last reply Reply Quote 0
                • steven.attawayS
                  steven.attaway @george1421
                  last edited by

                  @george1421 OK, so I ended up using your method, but then went back to my method of using http instead of tftp. I found http loaded almost 30 secs. to a minute faster. Here’s my code for that:

                  :ubuntu
                  kernel http://${fog-ip}/${fog-webroot}/images/ISO/LINUX/ud1710x64/casper/vmlinuz.efi
                  initrd http://${fog-ip}/${fog-webroot}/images/ISO/LINUX/ud1710x64/casper/initrd.lz
                  imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/ISO/LINUX/ud1710x64 quiet splash ip=dhcp rw
                  boot || goto failed
                  goto start
                  

                  Which loaded great, but this brings me back to my original issue. No Internet, Kind of. So I technically am getting internet, but DNS doesn’t seem to be loading correctly. I can ping 8.8.8.8 all day long, but if I try to ping www.google.com, it fails.0_1510327017024_20171110_090539.jpg
                  So then I was going to go into the network settings to confirm the DNS settings and I get this:0_1510327079423_20171110_090456.jpg
                  If I load everything from a CD or USB it all loads great, if I load from PXE it does the same thing every time. Thoughts?

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @steven.attaway
                    last edited by george1421

                    @steven-attaway Yes I agree that http would be faster. We have seen issues with apache redirection breaking hosting other files on the fog http server. That is why I switched to another protocol to provide consistency. So yes http, is much faster than tftp. But you statement makes me think you are doing this activity for imaging, but for some other activity (maybe akin to LTSP )?? Or if you are making a thin client setup there are other options.

                    As for the speed issue with tftp vs http. It would be interesting to see if switching the boot protocol from http, to nfs could yield similar transfer rates. But if http is working for you, then keep moving forward with it.

                    In regards to loading from dvd vs pxe booting. The only thing you are doing with pxe booting is transferring the kernel and initrd from the fog server instead of loading them from the local dvd rom. Once the kernel is booted it connects to the dvd files via nfs. There should be no real difference between networking capabilities. In regards to not being able to resolve dns names, I would check what the /etc/resolv.conf file is setup to. That file is responsible for configuring the dns lookups.

                    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
                    • S
                      Slimzy
                      last edited by Slimzy

                      you can ping 8.8.8.8 it’s a DNS issue not your config ! because your only not able to resolve

                      1 Reply Last reply Reply Quote 1
                      • N
                        nextechinc
                        last edited by

                        I’m having the same trouble with 18.04. Was curious if you found a work around. Booting the ISO itself works fine, but PXE booting doesn’t work. My guess is that the network, obviously, has to start sooner in order to pull over the files via NFS, and this is somehow mucking up the traditional order of operations.

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

                        265

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project