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

    Booting Linux and Windows ISO over PXE Post #1245

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    18
    14.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.
    • steven.attawayS
      steven.attaway
      last edited by

      Ok, So I know that this question has been asked a thousand different ways by a thousand different people. I know this because I am sure I have read all of them, However; I still am having issues and I don’t know what I am doing wrong. Here is what I want:

      1. I want to be able to create submenus. Example: On the main Fog PXE menu I want a Windows menu and a Linux menu and a Tools menu. In my windows menu I want to be able to put different versions of Windows so that I can boot to them, the same thing with the Linux menu and the same thing with Tools menu.
      2. I want to be able to keep my .iso files on my server without having to extract them, if possible, and be able to boot into them as if I burned them to a disc and inserted into a computer.
      3. I need to be able to do Windows .iso, Linux .iso and pretty much anything else I may be able to get my hands on. I know that all .iso files act differently depending on what the .iso file is.

      Here is my Advance configuration Options:

      
      :MENU
      menu
      item --gap -- ----------blah blah blah----------
      item hostinfo Computer Information
      item Hirens Hirens Boot Disc 15.2
      item Ubuntu Ubuntu Dekstop 15.04 x64
      item Sophos Sophos Antivirus scan
      item Parted Parted Magic 03/06/2015
      item winVHP64bit Windows Vista Home Premium SP2 64 bit
      item winVHP32bit Windows Vista Home Premium SP2 32 bit
      item return return to previous menu
      choose --default return --timeout 15000 target && goto ${target}
      
      :hostinfo
      echo This Computer: ||
      echo MAC Address: ${net0/mac} ||
      echo IP Address: ${ip} ||
      echo Netmask: ${netmask} ||
      echo Serial: ${serial} ||
      echo Asset Number: ${asset} ||
      echo Manufacturer: ${manufacturer} ||
      echo Product: ${product} ||
      echo BIOS Platform: ${platform} ||
      echo ||
      echo Press Any Key To Return To Menu ||
      prompt
      goto MENU
      
      
      :Hirens
      sanboot http://${fog-ip}/${fog-webroot}/images/ISO/TOOLS/Hirens15.2.iso
      chain memdisk iso raw ||
      goto MENU
      
      :Ubuntu
      kernel http://${fog-ip}/${fog-webroot}/images/ISO/LINUX/memdisk iso
      initrd http://${fog-ip}/${fog-webroot}/images/ISO/LINUX/UbuntuDesktop15.04x64.iso
      chain memdisk ||
      goto MENU
      
      :Sophos
      sanboot http://${fog-ip}/${fog-webroot}/images/ISO/TOOLS/SophosAV.iso
      chain iso raw ||
      
      :Parted
      kernel http://${fog-ip}/${fog-webroot}/images/ISO/TOOLS/memdisk iso
      initrd http://${fog-ip}/${fog-webroot}/images/ISO/TOOLS/PartedMagic2015_03_06.iso
      chain memdisk iso raw||
      Goto MENU
      
      :winVHP64bit
      sanboot http://${fog-ip}/${fog-webroot}/images/ISO/WINDOWS/WinVHPSP264bit.iso
      chain memdisk iso raw||
      goto MENU
      
      :winVHP32bit
      initrd http://${fog-ip}/${fog-webroot}/images/ISO/WINDOWS/WinVHPSP232bit.iso
      chain memdisk iso raw ||
      goto MENU
      
      :return
      chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php? mac=${net0/mac} ||
      prompt
      goto MENU
      
      autoboot
      

      I am new to fog server, I am not a programmer, so I am not familiar with any programming languages. So I am sure I butchered my commands up above. I have just been piecing together things I have found online.

      Basically what I am asking is can someone tell me what I am doing wrong. I can see the PXE server, it will boot to the FOG menu, and I can load Hirens, Ubuntu, Sophos, & Parted. Windows just loads to a cursor; However, nothing on the Hirens menu boots correctly, I get some kind of error on every selection, Ubuntu ends up saying it can’t find initramfs file, Sophos fails to completely load and comes up with command prompt, Parted says in can’t mount .sqfs file. I feel like I am missing something simple, but I don’t know what it is. I have seen some people include commands with nfs information in them. I can’t find a /nfs folder, but when I run apt-get install <nfs software> it tells me I already have it installed.

      I am running Ubuntu server 15.04 and FOG 4469 v.1.2.0.

      HELP!!!

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

        I have an idea… I don’t know if it will work or not…

        So there is this piece of software called YUMI that allows several ISOs on a single USB drive and allows that one USB drive to boot to them. Here is the link: http://www.pendrivelinux.com/yumi-multiboot-usb-creator/

        IF (and that’s a very large if) you can figure out how to get YUMI to work via PXE boot with all it’s files in a web directory - then you can probably use the YUMI software to then add whatever bootable ISO you want.

        I’ll play with this over the weekend if I can - no guarantees…

        But to be quite honest with you and everyone else here, I’m really burnt out today… Work has been crazy busy and I just don’t feel like doing anything that requires technical abilities… 😕

        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
        • steven.attawayS
          steven.attaway
          last edited by

          Thanks Wayne. Don’t feel pressure to work on it.
          I understand where you are coming from. I worked on this all day.
          What is the proper way to make this work though, or can it work? Do I have to extract the .iso to folders? I really don’t want to do that, but if that is what I have to do to make it work then I am willing to do it.
          I am the systems admin for over 100 computers and a fog server would make life so much easier. Being able to install windows over PXE, test hardware over PXE, or run AV over PXE would cut down on so much time.
          Again don’t feel pressure to work over the weekend. This can wait. Thanks for the response though.

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            @steven-attaway The problem with booting Linux ISO’s depends on the Distro you’re trying to boot.

            For example, if you’re trying to run an ISO that install’s a linux distribution, the way they’re usually setup is to be booted from a CD. During the Load up of the OS, the OS will actually expect the CD in the drive, and if it’s not found it will not boot because it cannot be found. This is why you need to extract the ISO’s as the files in use on how the OS operates, are not forcibly looking for the CD, but the ISO options to boot are defining a look for the CD.

            YUMI or unetbootin are not required to perform the same things and this is because what they do. Essentially, the extract the ISO FOR you and place the files on the USB or Drive you choose.

            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

            Wayne WorkmanW 1 Reply Last reply Reply Quote 1
            • Wayne WorkmanW
              Wayne Workman @Tom Elliott
              last edited by

              @Tom-Elliott Was just trying to figure out a more simple way for folks. 😕

              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
              • Wayne WorkmanW
                Wayne Workman @steven.attaway
                last edited by

                @steven.attaway Here is an example for adding DBAN to FOG: https://wiki.fogproject.org/wiki/index.php/DBAN_(Darik's_Boot_and_Nuke)

                This method will work with most Linux distributions - it uses the built in Memtest kernel that the FOG boot environment already has. You don’t always have to extract but if you don’t extract, you absolutely have to mount.

                For stuff that is non-Linux based, you will have to do some extracting to get the kernels and inits and such where they need to be for it to work.

                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
                • steven.attawayS
                  steven.attaway
                  last edited by

                  @Wayne Workman @Tom-Elliot OK so it makes total sense now why extracting is the way to go. I’m not a big fan, but it does seem that it will be the most stable and proven method. So with that being said,

                  1. What would be the correct command line for what I showed you earlier? Assuming all folders are the same and the .iso file will be extracted into some basic folder name, one folder deeper.
                  2. Is this the same method for Microsoft?
                  3. Is there a page that I can reference with all the commands that are being used in the fog advance configuration options? I like trying new things, but I can’t try new things if I can’t speak the language.
                  4. I like the speed of Sanboot, but I notice a lot of initrd being used. Is one better than the other?

                  Seriously, thanks for all the help.

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @steven.attaway
                    last edited by

                    @steven.attaway Actually, I believe Windows ISO’s can just be loaded directly. They’re not implicitly looking for a CD/DVD Drive. The ONLY requirement is that you have enough RAM. For example, if it’s a 4GB DVD, you need AT LEAST 4GB of ram, but most likely far more.

                    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

                    Tom ElliottT 1 Reply Last reply Reply Quote 1
                    • Tom ElliottT
                      Tom Elliott @Tom Elliott
                      last edited by

                      @Tom-Elliott As there isn’t much that we can do to “solve” the question, is it safe to at least solve the thread so people don’t think we’re trying to come up with a fix for the problem ourselves?

                      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

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

                        @Tom-Elliott I added windows ISO booting to the WiKi to-do - so now I won’t forget.

                        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/

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

                          @Wayne-Workman I am fine with you guys marking it as solved, but I would still like some direction on the coding side and maybe a reference to where I can find a list of what commands I can use, so that I am not just following what other people are doing and I can learn it for my self. Thanks.

                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @steven.attaway
                            last edited by

                            @steven.attaway for the record - I’ve been messing with adding win7 to FOG as an ISO… no luck so far - I’m working on it tonight 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!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

                            1 Reply Last reply Reply Quote 0
                            • N
                              need2 Moderator
                              last edited by

                              Booting a Windows image over the network will work best with a WDS server that you chain into FOG. I do not have the how-to handy though.

                              As for using YUMI, good idea. I’ll take a look at my YUMI flash drive and see how it makes the boot file.

                              1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott
                                last edited by

                                I’m only solving because, as far as I’m concerned, the thread question is solved. That said, of course I don’t mind, and I’m sure others won’t either, helping with the learning of the code.

                                One of the best resources for learning how ipxe does coding, outside of the FOG stuff, is directly from http://ipxe.org/scripting

                                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

                                Wayne WorkmanW 2 Replies Last reply Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman @Tom Elliott
                                  last edited by

                                  @Tom-Elliott said:

                                  http://ipxe.org/scripting

                                  Holy cow!

                                  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/

                                  steven.attawayS 1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman @Tom Elliott
                                    last edited by

                                    @Tom-Elliott Thank you!

                                    With the help of this site http://ipxe.org/howto/winpe I will eliminate “copying the iso to ram” that we have tragically been dealing with for so long.

                                    We will be able to boot a 200mb windows PE environment and auto-launch win7 installation from a network location on the fog server via Samba.

                                    Give me time - but expect a WiKi article on this in the near future 🙂

                                    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/

                                    N 1 Reply Last reply Reply Quote 1
                                    • steven.attawayS
                                      steven.attaway @Wayne Workman
                                      last edited by

                                      @Wayne-Workman Thanks guys for all your help.

                                      1 Reply Last reply Reply Quote 0
                                      • N
                                        need2 Moderator @Wayne Workman
                                        last edited by

                                        @Wayne-Workman That is much more elegant than either of my solutions. I doubt you will need my help, but give me a poke if you want me to look at anything with you.

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

                                        169

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project