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

add Ventoy to boot menu

Scheduled Pinned Locked Moved
Feature Request
5
23
5.5k
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.
  • Y
    youzersef
    last edited by Apr 19, 2024, 12:15 PM

    Hello every body,

    is there anyway to add ventoy to the boot menu?
    my plan is that i want to add this feature to create master images over ventoy.

    best regards

    T G 2 Replies Last reply Apr 19, 2024, 12:58 PM Reply Quote 0
    • T
      Tom Elliott @youzersef
      last edited by Tom Elliott Apr 19, 2024, 6:58 AM Apr 19, 2024, 12:58 PM

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

      There’s not one specifically for Ventoy, but this should provide enough context/information that you should be able to figure it out.

      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
      • G
        george1421 Moderator @youzersef
        last edited by Apr 19, 2024, 8:21 PM

        @youzersef The iso image appears to give you what you need. Looking in the grub.cfg file this menu entry really gives you the clues to what files you need from the iso.

        menuentry 'Ventoy 1.0.97 LiveCD GUI' --id=LiveCD {
            echo downloading kernel ...
            linux  /EFI/boot/vmlinuz quiet first_run rdinit=/VTOY/init
            
            echo downloading initrd ...
            initrd /EFI/boot/initrd
            
            echo booting LiveCD ...
            boot
        }
        
        

        Using the link that Tom provided and the above info it looks like you have what you need. Specifically you need vmlinuz and initrd from the iso image.

        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!

        Y 1 Reply Last reply Apr 22, 2024, 7:42 AM Reply Quote 0
        • Y
          youzersef @george1421
          last edited by youzersef Apr 22, 2024, 1:45 AM Apr 22, 2024, 7:42 AM

          @george1421 Thank you for ur advice. The LiveCD version is to create USB-Boot devices over LiveCD. That does not help me.

          Update: I found another Version from iVentoy. This version is for network pxe boot.
          is it possible to create new boot entry and set the IVentoy as next Server?

          Notes:
          My DHCP Server is Windows Server 2019
          My Fog Server is the next server
          iVentoy: is on another host in the network.
          iVentoy uses the file iventoy_loader_16000 as boot file. The bootfile name is actually a virtual file name. iVentoy will provide the real bootfile to the client according to its BIOS mode.

          best regards

          G 1 Reply Last reply Apr 22, 2024, 9:45 AM Reply Quote 0
          • G
            george1421 Moderator @youzersef
            last edited by Apr 22, 2024, 9:45 AM

            @youzersef Here is from another recent thread. I have not tested this code, but it is for chain loading to another pxe boot loader. There are two methods. I also have doubt with the second method because I find references to both ways to set the new boot file. If the code below doesn’t work for setting the file name try this. But the way I set it in the below section seems right. Its iPXE that is responsible for chain loading a new boot loader.

            set filename ${newbootfile}
            

            The simples form is to add this to the fog ipxe menu builder parameter block.

            chain tftp://192.168.1.12/nextboot.xyz || goto Menu

            If nextboot.xyz uses dhcp information (which will point to the fog server unless we alter it.

            set newserver:ipv4 192.168.1.12
            set newbootfile nextboot.xyz

            set net0.dhcp/next-server ${newserver}
            set net0.dhcp/filename ${newbootfile}
            set proxydhcp/filename ${newbootfile}

            chain tftp://${newserver}/${newbootfile} || goto Menu

            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!

            Y 2 Replies Last reply Apr 22, 2024, 12:01 PM Reply Quote 0
            • Y
              youzersef @george1421
              last edited by youzersef Apr 22, 2024, 6:03 AM Apr 22, 2024, 12:01 PM

              @george1421 Thank you again, both ways took me back to the pxe boot interface and the client tries to boot with the DHCP Server IP-Adresse. Which is not the Fog Server…

              i used the config :

              set newserver:ipv4 10.xy.xy.113 #IP Adresse
              set newbootfile iventoy_loader_16000 # my boot file
              
              set net0.dhcp/next-server ${newserver}
              set net0.dhcp/filename ${newbootfile}
              set proxydhcp/filename ${newbootfile}
              
              chain tftp://${newserver}/${newbootfile} || goto Menu
              

              this is what i see on client. Note: the default boot file is the ipxe.efi

              23f5cf89-e9a8-4c17-84d0-d140bb16e13b-grafik.png

              i do not know why the client will try with ipxe.efi file
              best regards

              G 1 Reply Last reply Apr 22, 2024, 4:40 PM Reply Quote 0
              • G
                george1421 Moderator @youzersef
                last edited by george1421 Apr 22, 2024, 10:44 AM Apr 22, 2024, 4:40 PM

                @youzersef I can explain why its doing what its doing. It has to do with the boot file name, its still picking up the ipxe.efi from dhcp. So the filename bit we are stuffing into dhcp is not being passed on to the target boot loader or its querying dhcp and still seeing fog stuff.

                Its also not helpful to blank out the private ip addresses. I can’t tell where you are in the world from 10.x.x.x that is a non-internet routable IP address. Masking it just makes things a little harder.

                What I did find interesting from the error message is how did 10.x.x.1 get into the conversation? The error message surely said iVentoy so some bits of it has to be loading.

                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!

                Y 1 Reply Last reply Apr 22, 2024, 5:02 PM Reply Quote 0
                • Y
                  youzersef @george1421
                  last edited by youzersef Apr 22, 2024, 11:03 AM Apr 22, 2024, 5:02 PM

                  @george1421 you are right sorry:

                  the fog ip-adresse: 10.132.1.62
                  the dhcp server: 10.132.1.1
                  the oventoy adresse: 10.132.1.113

                  what do you see in the boot gui is the ip adresse of the dhcp server.

                  G 1 Reply Last reply Apr 22, 2024, 5:10 PM Reply Quote 0
                  • G
                    george1421 Moderator @youzersef
                    last edited by george1421 Apr 22, 2024, 11:11 AM Apr 22, 2024, 5:10 PM

                    @youzersef said in add Ventoy to boot menu:

                    what do you see in the boot gui is the ip adresse of the dhcp server.

                    What my confusion is if .1 is the dhcp server, why is iVentoy using that server to download ipxe.efi from? The .1 server should be referenced. If I saw .62 or .113 that might be understandable, but not .1.

                    Is your dhcp server a soho router? And for FOG are you using dnsmasq to make FOG boot correctly?

                    Also is this iVentoy app open source where I can see the ISO contents?

                    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!

                    Y 1 Reply Last reply Apr 22, 2024, 6:55 PM Reply Quote 0
                    • Y
                      youzersef @george1421
                      last edited by Apr 22, 2024, 6:55 PM

                      @george1421 my DHCP Server is on Windows Server. I did not use dnsmasq. You can correct me.

                      Unfortunately is not an opensource but it is free to use till 20 devices. You can buy the pro version it will be cost 50$. https://www.iventoy.com/en/index.html
                      It will be useful if fog server can forward to the iventoy.

                      G 1 Reply Last reply Apr 22, 2024, 8:58 PM Reply Quote 0
                      • G
                        george1421 Moderator @youzersef
                        last edited by george1421 Apr 22, 2024, 2:59 PM Apr 22, 2024, 8:58 PM

                        @youzersef OK I find a few things. I still think we can make it work.

                        ref: https://ipxe.org/settings
                        To call microsoft wds server

                          set netX/next-server 192.168.1.2
                          set netX/filename boot\x86\wdsnbp.com
                          chain tftp://192.168.1.2/boot/x86/wdsnbp.com
                        

                        translated

                          set newserver:ipv4 10.xy.xy.113
                          set newbootfile iventoy_loader_16000_uefi # I will explain later
                          
                          set net0/next-server ${newserver}
                          set net0/filename ${newbootfile}
                          chain tftp://${newserver}/${newbootfile}
                        

                        Now to the ${newbootfile} , why did I pick that file name? From this document: https://www.iventoy.com/en/doc_ext_dhcp.html It appears that they can use dnsmasq for auto boot file identification, based on they say how external mode works. What we want is to use “ExternalNet Mode” in this case we will let iPXE decide what boot file to use. And then instruct the client to boot the proper file. So when you use the code from above, you must test with a uefi based computer. Right now I want to see if you can boot into iVentoy. We can work on the next steps after we can verity we can chain into their app.

                        I think its possible to use this software we just need to find the right path.

                        There is another ref site that I’m just logging here but I think the above is right since it from the ipxe developers directly.
                        https://www.rcannings.com/pxe-chain-loading-from-pxelinux-to-ipxe-and-back-again/

                        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
                        • Y
                          youzersef @george1421
                          last edited by Apr 23, 2024, 6:08 AM

                          @george1421 no thing changed. the PC will ask the DHCP Server 10.132.1.1 again about the the pxe.efi file.

                          6b354d80-7473-46ab-8708-5bb529597715-grafik.png

                          in the boot menu entry looks like

                          set newserver:ipv4 10.132.7.113
                          set newbootfile iventoy_loader_16000_uefi
                          set net0/next-server ${newserver}
                          set net0/filename ${newbootfile}
                          chain tftp://${newserver}/${newbootfile}
                          
                          G 1 Reply Last reply Apr 23, 2024, 10:02 AM Reply Quote 0
                          • G
                            george1421 Moderator @youzersef
                            last edited by Apr 23, 2024, 10:02 AM

                            @youzersef Understand I’m just making some guesses here because I don’t know ventoy. But if you look at the ventoy document link I provided. There is a section that talks about a drop down list on the configuration page where you need to change the dhcp server mode to ExternalNet.

                            The second thing is it looks like they are running a customized version of iPXE (same thing fog uses as boot loader) but its qualifying the name and it doesn’t like ipxe.efi as the file name because its not its own app. I think this is why the error is being thrown.

                            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!

                            Y 1 Reply Last reply Apr 23, 2024, 10:23 AM Reply Quote 0
                            • Y
                              youzersef @george1421
                              last edited by youzersef Apr 23, 2024, 4:23 AM Apr 23, 2024, 10:23 AM

                              @george1421 i changed to ExternalNet. but nothing has been changed. I found something in the community of ventoy which could help me.

                              maybe you can tell me what the post means. because am not good enough in pxe.

                              https://forums.ventoy.net/showthread.php?tid=2743

                              someone posted:

                              
                              I managed to chainload from my main iPXE to iVentoy, basically you need to do following things:
                              1. In your main iPXE boot.ipxe file, set user-class to a specific value, such as MyCustomClass
                              2. In your dhcp server, match this user-class and send next-server as your iVentoy IP
                              3. In your main iPXE boot.ipxe, run 'dhcp' command, after 'set user-class MyCustomClass' command, then 'chain tftp://${next-server}/iventoy_loader_16000'
                              Done 
                              
                              1 Reply Last reply Reply Quote 0
                              • B
                                baovipboy156
                                last edited by Apr 25, 2024, 4:35 AM

                                fog > ipxe menu > add option:

                                set net0/next-server 192.168.1.254
                                chain --replace --autofree ipxe.x64.snponly.efi.0
                                

                                on ubuntu fog server: edit file /etc/dhcp/dhcpd.conf

                                class "UEFI-64-1" {
                                    match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007";
                                    if exists user-class and option user-class = "iVentoy"{
                                    filename "iventoy_loader_16000_uefi";
                                    next-server 192.168.152.254;
                                } else {
                                    filename "ipxe.efi";
                                }
                                }
                                

                                i manged to chain ventoy but the graphic is bugged

                                Y M 2 Replies Last reply Apr 25, 2024, 9:56 AM Reply Quote 2
                                • Y
                                  youzersef @baovipboy156
                                  last edited by Apr 25, 2024, 9:56 AM

                                  @baovipboy156

                                  i tried on test server it is pfsense as DHCP-Server it works… Thank you.

                                  i will try it on my main Server next week 🙂 … it is windows server.

                                  @george1421 if you want i can post the configuration that i used to configure iventoy as next server after fog server… live photos:

                                  b9614ee7-11e4-4d6c-afb6-d9eb0a4b5100-grafik.png

                                  after i chose iVentoy…

                                  6671773f-2caa-44e6-a6a6-2d5b00b7a035-grafik.png

                                  thank you guys you made my day… 🙂

                                  G B 2 Replies Last reply Apr 25, 2024, 2:24 PM Reply Quote 1
                                  • G
                                    george1421 Moderator @youzersef
                                    last edited by Apr 25, 2024, 2:24 PM

                                    @youzersef said in add Ventoy to boot menu:

                                    if you want i can post the configuration that i used to configure iventoy as next server after fog server

                                    If this info would help the next guy, I would say yes. That way we can all learn from someone that has already walked the bloody path to victory. That’s what makes opensource and a community lead project 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!

                                    1 Reply Last reply Reply Quote 1
                                    • B
                                      baovipboy156 @youzersef
                                      last edited by Apr 26, 2024, 2:34 AM

                                      @youzersef
                                      Did you got the booting ISO working normally?, seem the graphic is bugged with some modern mainboard

                                      Y 1 Reply Last reply Apr 26, 2024, 2:58 AM Reply Quote 0
                                      • Y
                                        youzersef @baovipboy156
                                        last edited by Apr 26, 2024, 2:58 AM

                                        @baovipboy156 i tested on vm and i did not get problems. I will test it on dell Laptops next week.

                                        B 1 Reply Last reply Apr 26, 2024, 3:02 AM Reply Quote 0
                                        • B
                                          baovipboy156 @youzersef
                                          last edited by Apr 26, 2024, 3:02 AM

                                          @youzersef
                                          I found it, root cause: screen resolution 39d260a7-cf2c-4fc3-b0eb-6d59310dae7c-image.png
                                          some monitor can’t display 1024x768…wtf, then i set it to 1280x720 it work perfectly!

                                          1 Reply Last reply Reply Quote 1
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            17/23
                                            Last post

                                          229

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project