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

    Version 1.5.9 default directory for iso

    Scheduled Pinned Locked Moved Solved
    General Problems
    3
    18
    1.4k
    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.
    • P
      petec @george1421
      last edited by

      @george1421 said in Version 1.5.9 default directory for iso:

      /fog/filesystem.squashfs

      so here is the current config, with all the paths checked.

      kernel /fog/gparted/live/vmlinuz
      initrd /fog/gparted/live/initrd.img
      imgargs vmlinuz initrd=initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=http://10.0.0.2/fog/filesystem.squashfs

      Error

      Could not select: Exec format error

      im kinda lost. Most of the info online are for the older versions.

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @petec
        last edited by george1421

        @petec That message “Exec format error” is because something is wrong with vmlinuz. Either its not in the right path, the file is corrupt, or something else was keeping it from starting up.

        Confirm that your kernel is in
        /tftpbboot/fog/gparted/live on the fog server

        you can also use the linux command file /tftpbboot/fog/gparted/live/vmlinuz to read the kernel header.

        Remember for the different protocols, they have different doc roots on the FOG server.

        tftp: /tftoboot
        nfs: /images
        http: /var/www (for debian variants) /var/www/html (for rhel variants)

        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!

        P 1 Reply Last reply Reply Quote 0
        • P
          petec @george1421
          last edited by

          @george1421 said in Version 1.5.9 default directory for iso:

          file /tftpbboot/fog/gparted/live/vmlinuz

          Its the right path,

          [root@bootserver html]# file /tftpboot/fog/gparted/live/vmlinuz

          /tftpboot/fog/gparted/live/vmlinuz: Linux kernel x86 boot executable bzImage, version 5.10.0-8-amd64 (debian-kernel@lists.debian.org) #1 SMP Debian 5, RO-rootFS, swap_dev 0x6, Normal VGA

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @petec
            last edited by

            @petec You are seeing it transfer the kernel and the init? Do you have a screenshot of the error (clear picture taken with mobile phone)? If the path is right and the kernel is right, ipxe should at least try to boot it.

            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!

            P 1 Reply Last reply Reply Quote 0
            • P
              petec @george1421
              last edited by

              @george1421 ![alt text]

              Im confused too. i attach an image!
              20220222_151923.jpg

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @petec
                last edited by

                @petec Your screen shot doesn’t show its downloading the initrd image before it tries to boot the kernel. That is strange. The kernel should boot without the initrd only so far, but it should boot.

                So the next bit is to help a bit more with debugging. In the web ui ->FOG Configuraiton -> FOG Settings menu. There should be a value for logging level. It may be 1 or 4, turn it up to 7. This will inform the linux kernel booting to send all log messages to the console. This should give us a bit more detail.

                The next bit is to use a windows web browser and browse to http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00 This will print out a bunch of text, copy and paste that text into a new post. That is the iPXE menu commands that builds the FOG iPXE menu. I want to look at the configuration for your menu. There has to be something off here.

                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!

                P 2 Replies Last reply Reply Quote 0
                • P
                  petec @george1421
                  last edited by george1421

                  @george1421 Thanks for helping man

                  Here is the file output:

                  #!ipxe
                  set fog-ip 10.0.0.2
                  set fog-webroot fog
                  set boot-url http://${fog-ip}/${fog-webroot}
                  cpuid --ext 29 && set arch x86_64 || set arch i386
                  goto get_console
                  :console_set
                  colour --rgb 0x00567a 1 ||
                  colour --rgb 0x00567a 2 ||
                  colour --rgb 0x00567a 4 ||
                  cpair --foreground 7 --background 2 2 ||
                  goto MENU
                  :alt_console
                  cpair --background 0 1 ||
                  cpair --background 1 2 ||
                  goto MENU
                  :get_console
                  console --picture http://10.0.0.2/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
                  :MENU
                  menu
                  colour --rgb 0xff0000 0 ||
                  cpair --foreground 1 1 ||
                  cpair --foreground 0 3 ||
                  cpair --foreground 4 4 ||
                  item --gap Host is NOT registered!
                  item --gap -- -------------------------------------
                  item fog.local Boot from hard disk
                  item fog.memtest Run Memtest86+
                  item fog.reginput Perform Full Host Registration and Inventory
                  item fog.reg Quick Registration and Inventory
                  item fog.deployimage Deploy Image
                  item fog.multijoin Join Multicast Session
                  item fog.sysinfo Client System Information (Compatibility)
                  item g.parted Gparted
                  item os.hiren Hiren
                  item os.hiren2 Hiren2
                  item bd.hiren Hiren
                  item os.laze Lazesoft
                  choose --default fog.local --timeout 3000 target && goto ${target}
                  :fog.local
                  sanboot --no-describe --drive 0x80 || goto MENU
                  :fog.memtest
                  kernel memdisk initrd=memtest.bin iso raw
                  initrd memtest.bin
                  boot || goto MENU
                  :fog.reginput
                  kernel bzImage32 loglevel=7 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.2/fog/ consoleblank=0 rootfstype=ext4 storage=10.0.0.2:/images/ storageip=10.0.0.2 nvme_core.default_ps_max_latency_us=0 loglevel=7 mode=manreg
                  imgfetch init_32.xz
                  boot || goto MENU
                  :fog.reg
                  kernel bzImage32 loglevel=7 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.2/fog/ consoleblank=0 rootfstype=ext4 storage=10.0.0.2:/images/ storageip=10.0.0.2 nvme_core.default_ps_max_latency_us=0 loglevel=7 mode=autoreg
                  imgfetch init_32.xz
                  boot || goto MENU
                  :fog.deployimage
                  login
                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  param username ${username}
                  param password ${password}
                  param qihost 1
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                  param sysuuid ${uuid}
                  :fog.multijoin
                  login
                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  param username ${username}
                  param password ${password}
                  param sessionJoin 1
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                  param sysuuid ${uuid}
                  :fog.sysinfo
                  kernel bzImage32 loglevel=7 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.0.0.2/fog/ consoleblank=0 rootfstype=ext4 storage=10.0.0.2:/images/ storageip=10.0.0.2 nvme_core.default_ps_max_latency_us=0 loglevel=7 mode=sysinfo
                  imgfetch init_32.xz
                  boot || goto MENU
                  :g.parted
                  kernel /fog/gparted/live/vmlinuz
                  initrd /fog/gparted/live/initrd.img
                  imgargs vmlinuz initrd=initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=http://10.0.0.2/fog/filesystem.squashfs
                  param sysuuid ${uuid}
                  :os.hiren
                  initrd http://${fog-ip}/fog/iso/hbcd/hbcd.iso
                  kernel http://${fog-ip}${path}/casper/vmlinuz.efi || read void
                  initrd http://${fog-ip}${path}/casper/initrd.lz || read void
                  imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp splash quiet – || read void
                  boot || goto MENU
                  param sysuuid ${uuid}
                  :os.hiren2
                  kernel /fog/hbcd/live/vmlinuz
                  initrd /fog/hbcd/live/initrd.img
                  imgargs vmlinuz initrd=initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=http://10.0.0.2/fog/filesystem.squashfs
                  param sysuuid ${uuid}
                  :bd.hiren
                  initrd http://${fog-ip}/images/tools/hbcd/HBCD_PE_x64.iso
                  chain memdisk iso raw ||
                  boot || goto start
                  param sysuuid ${uuid}
                  :os.laze
                  initrd http://${fog-ip}/fog/iso/laze/lsboot.iso
                  chain memdisk iso raw
                  param sysuuid ${uuid}
                  :bootme
                  chain -ar http://10.0.0.2/fog/service/ipxe/boot.php##params ||
                  goto MENU
                  autoboot
                  
                  1 Reply Last reply Reply Quote 0
                  • P
                    petec @george1421
                    last edited by

                    @george1421

                    Keep in mind that the photo is EFI, if i do Legacy is downloads it and then comes to the same error

                    george1421G 1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator @petec
                      last edited by george1421

                      @petec OK here is the part of the menu that seems to be causing the problem.

                      kernel /fog/gparted/live/vmlinuz
                      initrd /fog/gparted/live/initrd.img
                      imgargs vmlinuz initrd=initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=http://10.0.0.2/fog/filesystem.squashfs
                      

                      Lets change the parameter block to look like this

                      kernel tftp://${fog-ip}/fog/gparted/live/vmlinuz
                      initrd tftp://${fog-ip}/fog/gparted/live/initrd.img
                      imgargs vmlinuz initrd=initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=http://10.0.0.2/fog/filesystem.squashfs
                      boot || 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!

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        petec @george1421
                        last edited by

                        @george1421 You helped a bunch my friend

                        i did some tweaking and now is works, here is the menu parameters for latest gparted:

                        kernel tftp://${fog-ip}/fog/gparted/live/vmlinuz
                        initrd tftp://${fog-ip}/fog/gparted/live/initrd.img
                        imgargs vmlinuz initrd=initrd.img boot=live config components union=overlay username=user noswap noeject vga=788 fetch=http://10.0.0.2/fog/filesystem.squashfs
                        boot || goto MENU

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

                        143

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project