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

Booting Ubuntu 16.04 ISO from FOG; /dev/sr0: No medium found

Scheduled Pinned Locked Moved
Linux Problems
iso boot ubuntu pxe
6
32
25.2k
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.
  • T
    Tom Elliott
    last edited by Jul 26, 2016, 12:59 PM

    Then I need to see the menu entry and settings you 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! 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

    F 1 Reply Last reply Jul 26, 2016, 1:14 PM Reply Quote 0
    • F
      Fitzzz @Tom Elliott
      last edited by Fitzzz Jul 26, 2016, 7:15 AM Jul 26, 2016, 1:14 PM

      @Tom-Elliott

      :MENU
      menu
      item --gap -- ---------------- iPXE boot menu ----------------
      item mint              Mint
      item ubuntu          Ubuntu 16.04 Desktop
      item ubuntu2         Ubuntu Extracted ISO Test
      item hirens            Hiren's Boot CD
      item shell          ipxe shell
      item return        Return to previous menu
      choose --default return --timeout 15000 target && goto ${target}
      
      :mint
      kernel http://$(fog-ip)/fog/service/ipxe/mint/casper/vmlinuz
      initrd http://$(fog-ip)/fog/service/ipxe/mint/casper/initrd.lz
      boot ||
      goto MENU
      
      :ubuntu
      initrd http://${fog-ip}/fog/service/ipxe/Linux/ubuntu-16.04-desktop-amd64.iso
      chain memdisk iso raw ||
      goto MENU
      
      :hirens
      initrd http://$(fog-ip)/fog/service/ipxe/hirens/hirens.iso
      chain memdisk iso raw ||
      goto MENU
      
      :ubuntu2
      kernel http://$(fog-ip)/fog/service/ipxe/Linux/iso/casper/vmlinuz.efi
      initrd http://${fog-ip}/fog/service/ipxe/Linux/iso/casper/initrd.lz
      boot ||
      goto MENU
      
      :shell
      shell ||
      goto MENU
       
      :return
      chain  http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
      prompt
      goto MENU
      
      

      Is this what you’re looking for? And how would I go about showing you the settings, exporting a backup?
      As I post this I see the apostrophe affects the code’s display, does it affect how the code is interpreted by FOG?

      T 1 Reply Last reply Jul 26, 2016, 1:15 PM Reply Quote 0
      • T
        Tom Elliott @Fitzzz
        last edited by Jul 26, 2016, 1:15 PM

        @Fitzzz For the location, you have the mint folder loaded in /var/www/html/fog/service/ipxe/mint, and the files exist?

        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

        F 1 Reply Last reply Jul 26, 2016, 1:16 PM Reply Quote 0
        • F
          Fitzzz @Tom Elliott
          last edited by Jul 26, 2016, 1:16 PM

          @Tom-Elliott Yeah, the files are all there. I extracted everything from the ISO to that location, and previously I was using just the ISO. Both return “Operating System Not Found”.

          T 1 Reply Last reply Jul 26, 2016, 1:17 PM Reply Quote 0
          • T
            Tom Elliott @Fitzzz
            last edited by Jul 26, 2016, 1:17 PM

            @Fitzzz Is this in advanced menu? If the selections are in “advanced” i’d suspect you need to choose it from that location.

            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

            F 1 Reply Last reply Jul 26, 2016, 1:30 PM Reply Quote 0
            • F
              Fitzzz @Tom Elliott
              last edited by Jul 26, 2016, 1:30 PM

              @Tom-Elliott Yeah, I go down to the advanced menu and select my options there. Seeing the menu items isn’t a problem.

              1 Reply Last reply Reply Quote 0
              • F
                Fitzzz
                last edited by Jul 26, 2016, 1:48 PM

                Okay, what I just tried was recording the error message when trying to boot into the Ubuntu extracted ISO.
                The error code is Error 0x3e11613b.
                Searching for what it specifically is right now, just thought I’d update.

                T 1 Reply Last reply Jul 26, 2016, 1:53 PM Reply Quote 0
                • T
                  Tom Elliott @Fitzzz
                  last edited by Tom Elliott Jul 26, 2016, 7:53 AM Jul 26, 2016, 1:53 PM

                  @Fitzzz http://ipxe.org/err/3e1161 Error: DNS name does not exist

                  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

                  F 1 Reply Last reply Jul 26, 2016, 1:59 PM Reply Quote 0
                  • F
                    Fitzzz @Tom Elliott
                    last edited by Jul 26, 2016, 1:59 PM

                    @Tom-Elliott

                    Do you know if this would be a configuration setting I may have screwed up in FOG itself? Or is this a system-based problem.

                    T 1 Reply Last reply Jul 26, 2016, 2:03 PM Reply Quote 0
                    • T
                      Tom Elliott @Fitzzz
                      last edited by Jul 26, 2016, 2:03 PM

                      @Fitzzz First, I think, I need to know what version of FOG you’re running. Second, I need to see what the fog-ip variable is being set to to begin with. From the sounds of things, though, it would seem your dns has no record for the domain name you have defined as your fog-server.

                      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

                      F 1 Reply Last reply Jul 26, 2016, 2:37 PM Reply Quote 0
                      • F
                        Fitzzz @Tom Elliott
                        last edited by Jul 26, 2016, 2:37 PM

                        @Tom-Elliott
                        It seems I made the disastrous decision to assume that the variable I saw online in another post was a FOG default-created and set variable, so I’ve been using it assuming it had been assigned the correct IP. I made that assumption because the first menu item I created, the original Ubuntu ISO, had worked, so I was just reusing what I had “working”.

                        I changed the code to just the IP, because of that DNS issue and your question, and now I can successfully boot the extracted ISOs. Now I have a slew of other things to deal with therein, but at least now I’m there.

                        Mint and Ubuntu (extracted) need some work to get running, but Hiren’s runs perfectly,

                        Wayne WorkmanW 1 Reply Last reply Jul 26, 2016, 10:57 PM Reply Quote 1
                        • Wayne WorkmanW
                          Wayne Workman @Fitzzz
                          last edited by Jul 26, 2016, 10:57 PM

                          @Fitzzz Post your working configuration, please?

                          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
                          • B
                            bumlard
                            last edited by Jan 18, 2017, 12:43 PM

                            Hi,

                            Did you manage to get this to go? I am in the same situation. I’ve tried both extracting and just using the ISOs. Looks like I can boot hiren but no luck with any version of Ubuntu tried 12.04 as someone said that worked differently.

                            Dan,

                            T Wayne WorkmanW 2 Replies Last reply Jan 18, 2017, 12:49 PM Reply Quote 0
                            • T
                              Tom Elliott @bumlard
                              last edited by Jan 18, 2017, 12:49 PM

                              @bumlard That does work differently.

                              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 0
                              • Wayne WorkmanW
                                Wayne Workman @bumlard
                                last edited by Jan 18, 2017, 2:17 PM

                                @bumlard Check this out: https://wiki.fogproject.org/wiki/index.php?title=Include_any_ISO_in_the_FOG_Bootmenu

                                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
                                • B
                                  bumlard
                                  last edited by Jan 18, 2017, 2:45 PM

                                  I’ve adapted this from the Fog Wiki page (which I had already TRIED to use), to what’s below… I get warning fsck not present so skipping file system. Mount, can’t find /root in /etc/fstab

                                  mounting /dev on /root/dev failed no such file or directory.

                                  My version in advanced section: (Hiren works fine but guess it doesn’t load drivers etc)

                                  :ultimate
                                  initrd http://${fog-ip}/${fog-webroot}/iso/HirenBootCD.iso
                                  chain memdisk iso raw ||
                                  goto MENU
                                  :ubuntu16.04_64
                                  set path /fog/service/ipxe/16.04_64
                                  set nfs_path /var/www/html/fog/service/16.04_64
                                  kernel http://10.60.54.224/fog/service/ipxe/16.04_64/casper/vmlinuz
                                  initrd http://10.60.54.224/fog/service/ipxe/16.04_64/casper/initrd.lz
                                  boot ||
                                  goto MENU

                                  Wayne WorkmanW 1 Reply Last reply Jan 19, 2017, 12:40 AM Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman @bumlard
                                    last edited by Jan 19, 2017, 12:40 AM

                                    @bumlard For the first menu item in your below post, using the iso file itself for initrd will not work, iPXE doesn’t know what to do with it and doesn’t speak that language. You will need to extract the contents of the ISO to a web directory and path to the correct init.

                                    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/

                                    B 1 Reply Last reply Jan 19, 2017, 7:31 AM Reply Quote 0
                                    • B
                                      bumlard @Wayne Workman
                                      last edited by Jan 19, 2017, 7:31 AM

                                      @Wayne-Workman That makes me more confused as the Hiren (Ultimate) menu actually boots and works fine.

                                      With regards to my issue with Ubuntu, what is it that the environment variables for set path and set nfs_path actually do, I’ve extracted ubuntu into the folder as shown called 16.04_64. Can you suggest how my config should look? I’m stumped! 😞

                                      Thanks in advance.

                                      Wayne WorkmanW 1 Reply Last reply Jan 19, 2017, 2:29 PM Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman @bumlard
                                        last edited by Wayne Workman Jan 19, 2017, 8:35 AM Jan 19, 2017, 2:29 PM

                                        @bumlard said in Booting Ubuntu 16.04 ISO from FOG; /dev/sr0: No medium found:

                                        what is it that the environment variables for set path and set nfs_path actually do,

                                        They are just variables that the person who wrote the tutorial wanted to use to make changes easier in the future for himself.

                                        I’d suggest un-doing the ubuntu stuff you’ve done with this, and starting over. I found a guide on the net here: http://www.howtogeek.com/61263/how-to-network-boot-pxe-the-ubuntu-livecd/

                                        That tutorial is really confusing because the guy is creating an NFS share inside of the /tftpboot directory. FOG already has an NFS share that works fine, we’ll use that.

                                        Mount the ISO to just /images/mounts/ubuntu16 using fstab.
                                        Assuming your iso is here: /images/iso/ubuntu16.iso the fstab entry would look like this:

                                        /images/iso/ubuntu16.iso /images/mounts/ubuntu16 udf,iso9660 user,loop 0 0 
                                        

                                        After doing that, run the commands to make the directory and mount the ISO:

                                        mkdir /images/mounts
                                        mount /images/mounts/ubuntu16`
                                        

                                        Then you should be able to browse through the iso inside /tftpboot/ubuntu16 and see the files.

                                        Then copy the kernel (from the mounted directory) & init to the tftpboot directory, this is because the kernel needs to be accessible to iPXE. Should be similar to this for the copy:

                                        mkdir /tftpboot/ubuntu16     #Makes a directory in tftpboot for organization
                                        cp /images/mounts/ubuntu16/casper/vmlinuz /tftpboot/ubuntu16  #copies the ubuntu kernel to the directory we just made
                                        cp /images/mounts/ubuntu16/casper/initrd.lz /tftpboot/ubuntu16  #copies the init into the /tftpboot/ubuntu16 directory.
                                        

                                        Then the FOG iPXE menu entry would look something like this:

                                        KERNEL ubuntu16/vmlinuz
                                        APPEND root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/mounts/ubuntu16 initrd=ubuntu16/initrd.lz
                                        

                                        Notice above, the little pieces I modified from the tutorial. First, when iPXE is executing this stuff/ it’s already inside of /tftpboot so we leave that part off. The kernel is pointed to ubuntu16/vmlinuz which on the fog server is actually /tftpboot/ubuntu16/vmlinuz and the root directory was appended to use NFS, netboot is NFS, and the NFS root is fog-ip/images/mounts/ubuntu16. You do not have to replace fog-ip this is a variable, it gets populated with the server’s IP on execution.

                                        Now, I didn’t test any of this at all, I’m just writing this before I head to work. there’s probably a typo or two, everything in Linux is case sensitive. Let us know how it goes.

                                        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/

                                        B 1 Reply Last reply Jan 20, 2017, 7:31 AM Reply Quote 0
                                        • B
                                          bumlard @Wayne Workman
                                          last edited by Jan 20, 2017, 7:31 AM

                                          @Wayne-Workman Thanks very much for your help.

                                          It turns out that you need to fill out this part CORRECTLY and with the ACTUAL path and not the MISTYPED wrong one as I had!! Whoops!! Check check and check again,

                                          This is the part that my ineptitude caused all the issues:

                                                            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)
                                          
                                          Wayne WorkmanW 1 Reply Last reply Jan 20, 2017, 1:55 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          241

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project