• RE: add Ventoy to boot menu

    @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.

    posted in Feature Request
  • RE: add Ventoy to boot menu

    @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.

    posted in Feature Request
  • RE: add Ventoy to boot menu

    @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/

    posted in Feature Request
  • RE: add Ventoy to boot menu

    @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?

    posted in Feature Request
  • RE: Keyboard on Dell 3440 does not work at registration prompt

    @abolajioriola Well this makes no sense at all. Same model and same firmware and same FOS linux kernel they should act the same.

    If you have one laptop you know that works and one you know not work we can try to figure out the differences.

    It will take some work on your side to get me the info I need. Its not hard but has a few steps.

    First start with one or the other, for this discussion lets use the no working keyboard. Take that computer and schedule a deployment task to it, but before you hit the schedule task button, tick the debug checkbox. Now schedule the task (no worries we will not deploy anything at this time). Now pxe boot the computer, you should see several screens of text you need to clear with the enter key. Eventually you will be dropped to the fos linux command prompt.

    This next part will make your debugging a bit easier. We will enable you to connect to the FOS Linux (target) computer over the network.

    1. Give root a password. Make it simple because it will be reset at next reboot. Use the following command from the FOS Linux (target) computer. passwd give it a simple password like hello. Since we are discussing the not working keyboard, you may need to use an external keyboard here. It will be interesting to know if you can type on the not working keyboard at this point.
    2. Now get the ip address of the target computer with this command ip a s
    3. With that information ssh to the target computer using ssh or putty. Login as root and the password you just set it to.
      Putty or ssh from a windowed environment will allow you to copy and paste commands to the target computer from these instructions.

    From the ssh/putty shell to the target computer key in and copy out the following.

    uname -a
    lspci -knn
    

    Copy those results out and post in this thread. Next use WinSCP/scp program to remote into the target computer and download the file /var/log/syslog to your computer and rename it to not_working.txt Post the results in this thread.

    Now do the same with the other computer (working one) and post the results here. I will review the information and see if I can identify what is or isn’t working between the two.

    Now finally you will need to go into the fog server and tasks and purge the two tasks related to these computers.

    posted in FOG Problems
  • RE: add Ventoy to boot menu

    @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.

    posted in Feature Request
  • RE: Error generating image

    @inconnu Ok if you can move the files via ftp then you have the permissions right. Now the login information you used for FTP, go into the web ui and look at the storage node (probably master or default) make sure the ftp settings there are correct. If not correct them.

    Make sure the /opt/fog/.fogsettings password match what you used for logging into ftp. If yes then rerun the installer.

    I have not seen issues with the database, but its always possible. In the same .fogsettings file there should be a user name and password for mysql.

    From the fog server’s linux command line key in mysql -u <fog_use_name_from_settings_file> -p <password_from_file> fog

    Make sure you can login with the mysql passwords from the config file.

    If you want to make sure it works you can key in the following from the mysql console.

    use fog;
    show tables;
    exit;
    

    It should show you more than just an error message. Especially the show tables command.

    posted in FOG Problems
  • RE: add Ventoy to boot menu

    @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

    posted in Feature Request
  • RE: add Ventoy to boot menu

    @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.

    posted in Feature Request
  • RE: Chainloading Simple Next Server ?

    @Cire3 said in Chainloading Simple Next Server ?:

    server:ipv4 10.22.24.8
    set newbootfile netboot.xyz.efi
    set net0.dhcp/next-server ${newserver}

    You are missing the word set in the first line.

    So I looked at the autoexec.ipxe file and this is what is in it :

    OK then it looks like netboot.xyz uses ipxe (because of your autoexec.ipxe script)

    So you might not need all of those set commands. Because FOG used iPXE as its boot loader AND netboot.xyz also uses iPXE, AND iPXE is already running in memory, all you should need to do is call that autoexec.ipxe script.

    This is all that should be needed in the parameter block of the fog menu.

    chain tftp://192.168.1.1/autoexec.ipxe || goto Menu
    

    Where 192.168.1.1 is the ip address of your netboot.xyz boot server. There is a 50/50% chance of this not working because if they compiled custom stuff in iPXE that might be dependent.

    posted in FOG Problems