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

Problems with using-fog-to-pxe-boot-into-your-favorite-installer

Scheduled Pinned Locked Moved
General
13
31
7.9k
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.
  • Z
    Zer0Cool @george1421
    last edited by May 14, 2018, 4:48 PM

    @george1421 I symlinked my /tftpboot to var/www/html/fog/ so that everything i do under tftpboot in the os folder is available via http.

    Turns out this works…

    kernel http://${fog-ip}/fog/os/win/wimboot pause gui
    initrd --name segmono_boot.ttf http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/Fonts/segmono_boot.ttf segmono_boot.ttf
    initrd --name segoe_slboot.ttf http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/Fonts/segoe_slboot.ttf segoe_slboot.ttf
    initrd --name segoen_slboot.ttf http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/Fonts/segoen_slboot.ttf segoen_slboot.ttf
    initrd --name wgl4_boot.ttf http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/Fonts/wgl4_boot.ttf wgl4_boot.ttf
    initrd --name BCD http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/BCD BCD
    initrd --name boot.sdi http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/boot.sdi boot.sdi
    initrd --name boot.wim http://${fog-ip}/fog/os/win/winpe/amd64/media/sources/boot.wim boot.wim
    boot || goto MENU
    

    Had to add the 4 lines for fonts and now it boots in UEFI. I am amazed this was the issue and only on this machine. The fonts btw where in the locations, so its not like moving them into tftpboot was a problem. It was explicitly placing the initrd lines for the fonts in the ipxe entry that made it work…go figure.

    1 Reply Last reply Reply Quote 0
    • G
      Gamienator
      last edited by Gamienator Jan 22, 2019, 9:20 AM Jan 22, 2019, 3:18 PM

      Hi there,

      @george1421
      I just noticed that on Linux Mint 19 and newer it’s not possible to boot anymore before you change the Boot Parameter! I got it going on after setting this:

      imgargs vmlinuz root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/var/www/html/iso/mint/ locale=de_DE.UTF-8 keyboard-configuration/layoutcode=de ip=dhcp toram -- || read void
      

      Keep in mind, I got a different folder! But the parameter toram is damn important, otherwise it’s not able to mount /tmp and goes into emergency mode!

      Maybe you want to update the wiki?

      G 1 Reply Last reply Jan 22, 2019, 3:26 PM Reply Quote 2
      • G
        george1421 Moderator @Gamienator
        last edited by Jan 22, 2019, 3:26 PM

        @Gamienator Thank you for the feedback and info, I will get the tutoral updated right away.

        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 1
        • J
          jam1987
          last edited by Feb 20, 2019, 9:30 PM

          Hey peeps,

          I’ve managed to get the installer portion running using a plethora of info out there but what really worked for me is this:

          Downloaded vmlinuz and initrd.gz from the netboot version of Ubuntu and placed them into the tftp root folder:

          Ubuntu Netboot

          Created a folder in /images/os called ubuntu and used 7z to extract Ubuntu 18.04 iso into this folder.

          My menu entry now looks like this:

          kernel tftp://${fog-ip}/ubuntu/vmlinuz
          initrd tftp://${fog-ip}/ubuntu/initrd.gz
          imgargs vmlinuz initrd=initrd.gz root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/os/ubuntu splash ip=dhcp rw
          boot
          

          It now boots on any machine into an Ubuntu Installer BUT!

          This is great but not my final wish.

          Is there a way to avoid the straight to install process and at least load a Live CD so that I could use Ubuntu to say scan the PC’s drive with clamav?

          Any help would be great!

          Thanks.

          G 1 Reply Last reply Feb 21, 2019, 12:55 PM Reply Quote 0
          • U
            URfog
            last edited by Feb 21, 2019, 12:48 PM

            What about this?
            https://forums.fogproject.org/topic/12365/booting-ubuntu-18-04-live-cd/10

            SERVER

            OS: Debian 9.6
            Fog version: FOG 1.5.5

            1 Reply Last reply Reply Quote 0
            • G
              george1421 Moderator @jam1987
              last edited by Feb 21, 2019, 12:55 PM

              @jam1987 FWIW: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/12

              The linux mint 19 maybe a bit closer to the kernel used in 18.04: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/17

              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!

              J 1 Reply Last reply Feb 21, 2019, 1:44 PM Reply Quote 0
              • J
                jam1987 @george1421
                last edited by Feb 21, 2019, 1:44 PM

                @george1421 Fantastic!!! I got Mint running and booting live over the network. Thank you so much for the info.

                For everyone’s use I created:

                /images/os/mint where I used 7z to extract the entirety of the mint.iso
                /tftpboot/mint where I placed the vimlinuz and initrd.lz from the casper folder in the previously mentioned extracted iso.

                My menu item in PXE is now this:

                kernel tftp://${fog-ip}/mint/vmlinuz
                initrd tftp://${fog-ip}/mint/initrd.lz
                imgargs vmlinuz initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/os/mint systemd.mask=tmp.mount ip=dhcp rw
                boot
                

                Boots great!! ClamAV scanning of Windows drives here I come!

                1 Reply Last reply Reply Quote 1
                • B
                  brianblaze
                  last edited by Jul 12, 2019, 4:54 PM

                  I hate to beat a dead horse, but I just wanted to say thank you for this in depth tutorial. It is amazing. Thank you!

                  1 Reply Last reply Reply Quote 1
                  • E
                    erusun
                    last edited by Jan 11, 2020, 5:49 AM

                    I just wanted to add to this -
                    If you have an antique server that totally and completely lacks UEFI support (such as my ML350 Gen8) then you can just follow the instructions that @george1421 posted for Windows ISO’s to boot any (most) ISO’s in legacy mode. I just tested it with VMWare 6.7U2 on the HP ML350 Gen8, worked flawlessly.

                    1 Reply Last reply Reply Quote 1
                    • B
                      beardedfool
                      last edited by May 2, 2020, 8:40 AM

                      @george1421

                      Can I just check that https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/19 is still the latest information please.

                      Also, if I wanted to script the changes to the fog menu (ansible or bash) do you know where I’d start looking for the boot menu options please?

                      G 1 Reply Last reply May 2, 2020, 11:24 AM Reply Quote 0
                      • G
                        george1421 Moderator @beardedfool
                        last edited by May 2, 2020, 11:24 AM

                        @beardedfool AFAIK nothing has changed for ubuntu 16.04 in years. Are you having a specific issue? I can tell you later versions of ubuntu also boot using this method. In general if I add something to the that netbooting thread I’ve personally set it up and tested.

                        I’m not sure I understand about scripting changes to the fog menu. The fog menu is powered by the FOG server. The fog server has built in management to add or remove entries in the iPXE menu. The language that powers the FOG iPXE menu is ipxe’s own programming language. You can see this programming language in action by opening up a web browser and pointing to this URL. http://<fog_server_ip>/fog/service/ipxe/boot/php?mac=00:00:00:00:00:00 The fog iPXE menu is specifically crafted by the fog script boot.php on the fog server.

                        If you could could provide a bit more details on what you want to change I might be able to give you a direction to look in.

                        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!

                        B 1 Reply Last reply May 2, 2020, 11:54 AM Reply Quote 0
                        • B
                          beardedfool @george1421
                          last edited by May 2, 2020, 11:54 AM

                          @george1421 Thanks for the speedy reply George and apologies for not being clear

                          Two topics I guess…

                          1. Instructions - I’m just starting to look at ubuntu 20.04 and, as fog is fairly new to me, I was going to start by getting the
                            Note to self: I need to see how kickstart files work with 20.04 now as different and whether this is just server vs desktop
                            https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls
                            Also whether fog can hand out different kickstart files

                          2. I’m working with a couple of major tools for network setups. Hoping fog will become one of them and looking promising but I’m getting more and more into ansible and proxmox as host. The reasoning behind this question was “how do I deploy a fog server automatically/ through scripts”
                            I can build the VM with ansible and deploy fog but was wondering whether there was a way to make config changes through command line e.g. insert this boot menu option.

                          G 1 Reply Last reply May 2, 2020, 12:03 PM Reply Quote 0
                          • G
                            george1421 Moderator @beardedfool
                            last edited by May 2, 2020, 12:03 PM

                            @beardedfool

                            1. I have not tested 20.04 yet. When I last looked at it, it was just released and I wanted to let the image bake a bit before attempting to setup to netboot it. I personally don’t install images this way (via netbooting) so I’ll typically setup a new entry when someone comes across a need for it. Netbooting in this method means mounting an nfs share and loading the OS from that share. With FOG you could pass different kernel parameters to the target system and then pickup those kernel parameters within the netbooted client via a custom script.

                            2. You may find that FOG will compliment other tools such as ansible. I have not personally worked with it but know its function. Most of the fog settings (done outside of the fog installer with its command line switches) are done via the mysql database. I have not thought about it this way, but it should be possible to create new fog ipxe menu entries by just adding a record to the fog ipxemenu (may not be the exact table name) table in mysql. So a simple bash script that creates or deletes a bunch of standard rows in that table would be enough.

                            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
                            • B
                              beardedfool
                              last edited by May 2, 2020, 12:41 PM

                              1. Agreed, won’t be my main method but will be useful for other people and, to be fair, the odd quick install to test something over the network rather than breaking out usb sticks is always welcome

                              2. Thanks, that’s good, suspected that it would be in sql and I should be able to follow those changes.
                                Even for me I can see a useful script like “redeploy.sh hostname” which creates the deploy task from outside of the fog gui, reboots the machine then performs tasks afterwards (though I also need to look at the snapins). I’ve just noticed the API so suspect there may be something there and appreciate I’ve verging off topic with that one.

                              Lots for me to follow up on so will leave you in peace for now but thanks for coming back to me so quickly.

                              1 Reply Last reply Reply Quote 0
                              • R
                                razercortex
                                last edited by Jul 30, 2020, 4:10 PM

                                you need to use a WinPE image instead of Windows installer iso, I had the same issue while trying to use the installer iso. Make a WinPE image and redo the steps.

                                O 2 Replies Last reply Oct 15, 2024, 8:24 PM Reply Quote 0
                                • O
                                  okafor-abc @razercortex
                                  last edited by Oct 15, 2024, 8:24 PM

                                  @razercortex I’m looking to set this up with winpe but the [link](wget http://git.ipxe.org/releases/wimboot/wimboot-latest.zip) is no longer valid. Do you know if there is an updated link?

                                  1 Reply Last reply Reply Quote 0
                                  • O
                                    okafor-abc @razercortex
                                    last edited by Oct 15, 2024, 8:30 PM

                                    @razercortex pls disregard. internal network issue.

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

                                    247

                                    Online

                                    12.1k

                                    Users

                                    17.3k

                                    Topics

                                    155.3k

                                    Posts
                                    Copyright © 2012-2024 FOG Project