• Hello,

    I’m new with FOG server and ask myself if I can boot a kind of own Rescue ISO file?

    So far as I understood FOG is for cloning images … but can I boot without changes also a live Rescue ISO?

    Thank you!


  • @george1421 Hello,

    yes, but not working. I guess because I use the files from the Hiren`s Image?:
    fccb0bdc-aad7-4c48-a8f9-890faa8ec390-image.png
    He load the 1.3GB boot.wim … and after the error displayed.

    I set this in the menu:
    set tftp-path tftp://${fog-ip}
    set pe-path ${tftp-path}/os/hirens
    kernel ${tftp-path}/wimboot gui
    imgfetch --name BCD ${pe-path}/BCD BCD
    imgfetch --name boot.sdi ${pe-path}/boot.sdi boot.sdi
    imgfetch --name boot.wim ${pe-path}/boot.wim boot.wim
    boot || goto MENU

    Files in folder:
    4a6f041b-a928-4796-958e-83b5f1f7b128-image.png

  • Moderator

    @seppim The last link you provided would be my instructions.


  • @george1421 Hello,

    thank you … I´m booting via Virtualbox … but now it seems the Hiren´s Boot CD is a better choice for rescue systems:
    https://www.hirensbootcd.org/

    I download the latest ISO and mount it:
    e501e560-f7f3-491e-8506-187775db7d48-image.png

    I read different posts:
    https://forums.fogproject.org/topic/12939/adding-hiren-s-bootcd-pe-to-advanced-menu
    https://wiki.fogproject.org/wiki/index.php/Include_any_ISO_in_the_FOG_Bootmenu#Hirens_15.04 (seems it is Ubuntu 15.04)
    https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/19?_=1609149532133

    But not sure how do.

    Maybe you have a instruction for the current Hiren´s Boot CD?

    Thank you!


  • This post is deleted!
  • Moderator

    @seppim So the question would be if you were to boot this iso image which menu item would you pick? The answer you need IS in the config file, I just need to know the question.

    Translating between syslinux and iPXE is pretty straight forward.

    Using your example in syslinux format

    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701
    

    that would translate to in iPXE

    kernel boot/x86_64/vmlinuz
    initrd boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    imgargs vmlinuz archisobasedir=sysresccd archisolabel=RESCUE701
    

    Then to normalize this with the others from my tutorial

    kernel tftp://${fog-ip}/os/RescueCd/7.1/vmlinuz
    initrd tftp://${fog-ip}/os/RescueCd/7.1/sysresccd.img
    imgargs vmlinuz archisobasedir=sysresccd archisolabel=RESCUE701
    

    Menu Item: os.SystemRescueCd.7.1
    Description: SystemRescueCd 7.1
    Parameters:
    kernel tftp://${fog-ip}/os/RescueCd/7.1/vmlinuz
    initrd tftp://${fog-ip}/os/RescueCd/7.1/sysresccd.img
    imgargs vmlinuz archisobasedir=sysresccd archisolabel=RESCUE701
    boot || goto MENU
    Menu Show with: All Hosts


  • @george1421 Hello,

    the content of the file is:

    PATH /sysresccd/boot/syslinux/
    DEFAULT loadconfig
    
    LABEL loadconfig
      CONFIG /sysresccd/boot/syslinux/sysresccd.cfg
      APPEND /sysresccd/
    

    Content /sysresccd/boot/syslinux/sysresccd.cfg:

    DEFAULT select
    
    LABEL select
    COM32 boot/syslinux/whichsys.c32
    APPEND -pxe- pxe -sys- sys -iso- sys
    
    LABEL pxe
    CONFIG boot/syslinux/sysresccd_pxe.cfg
    
    LABEL sys
    CONFIG boot/syslinux/sysresccd_sys.cfg
    

    Content sysresccd_pxe.cfg:

    DEFAULT select
    
    LABEL select
    COM32 boot/syslinux/whichsys.c32
    APPEND -pxe- pxe -sys- sys -iso- sys
    
    LABEL pxe
    CONFIG boot/syslinux/sysresccd_pxe.cfg
    
    LABEL sys
    CONFIG boot/syslinux/sysresccd_sys.cfg
    root@fog:/mnt/loop# cat sysresccd/boot/syslinux/sysresccd_pxe.cfg 
    INCLUDE boot/syslinux/sysresccd_head.cfg
    
    LABEL sysresccd_nbd
    TEXT HELP
    Boot the SystemRescue live medium (Using NBD).
    It allows you to install Arch Linux or perform system maintenance.
    ENDTEXT
    MENU LABEL Boot SystemRescue (NBD)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701 archiso_nbd_srv=${pxeserver}
    SYSAPPEND 3
    
    LABEL sysresccd_nfs
    TEXT HELP
    Boot the SystemRescue live medium (Using NFS).
    It allows you to install Arch Linux or perform system maintenance.
    ENDTEXT
    MENU LABEL Boot SystemRescue (NFS)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archiso_nfs_srv=${pxeserver}:/run/sysresccd/bootmnt
    SYSAPPEND 3
    
    LABEL sysresccd_http
    TEXT HELP
    Boot the SystemRescue live medium (Using HTTP).
    It allows you to install Arch Linux or perform system maintenance.
    ENDTEXT
    MENU LABEL Boot SystemRescue (HTTP)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archiso_http_srv=http://${pxeserver}/
    SYSAPPEND 3
    
    INCLUDE boot/syslinux/sysresccd_tail.cfg
    

    Content sysresccd_sys.cfg:

    INCLUDE boot/syslinux/sysresccd_head.cfg
    
    LABEL sysresccd
    TEXT HELP
    Boot the SystemRescue live medium.
    ENDTEXT
    MENU LABEL Boot SystemRescue using default options
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701
    
    LABEL sysresccd_copytoram
    TEXT HELP
    Boot the SystemRescue live medium and copy system to RAM
    ENDTEXT
    MENU LABEL Boot SystemRescue and copy system to RAM (copytoram)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701 copytoram
    
    LABEL sysresccd_checksum
    TEXT HELP
    Boot SystemRescue and verify the integrity of the live medium
    ENDTEXT
    MENU LABEL Boot SystemRescue and verify integrity of the medium (checksum)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701 checksum
    
    LABEL sysresccd_nomodeset
    TEXT HELP
    Boot using basic display drivers to avoid display issues
    ENDTEXT
    MENU LABEL Boot SystemRescue using basic display drivers (nomodeset)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701 nomodeset
    
    LABEL sysresccd_findroot
    TEXT HELP
    Boot from a Linux operating system installed on the disk
    ENDTEXT
    MENU LABEL Boot a Linux operating system installed on the disk (findroot)
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701 findroot
    
    LABEL sysresccd_break
    TEXT HELP
    Stop during the boot process before mounting the root filesystem
    ENDTEXT
    MENU LABEL Stop during the boot process before mounting the root filesystem
    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701 break
    
    INCLUDE boot/syslinux/sysresccd_tail.cfg
    
    

    Did you know which settings I need in FOG?

    Maybe?:

    LINUX boot/x86_64/vmlinuz
    INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/sysresccd.img
    APPEND archisobasedir=sysresccd archisolabel=RESCUE701
    

    Thank you!

  • Moderator

    @seppim said in Booting Rescue ISO:

    isolinux.cfg

    Your kernel parameters will most likely be found in this file.


  • @sebastian-roth I see now, that the 5.5.2 ist very out dating.

    Current is 7.01

    Did you know which file and arguments I need for this?
    cp /mnt/loop/isolinux/{rescue64,initram.igz} /tftpboot/os/RescueCd/5.2.2/

    Both are in the 7.02 iso not available. Content of the isolinux:
    -r–r--r-- 1 root root 2048 Dez 20 13:10 boot.cat
    -rw-r–r-- 1 root root 432 Dez 20 13:10 isohdpfx.bin
    -rw-r–r-- 1 root root 38912 Dez 20 13:10 isolinux.bin
    -rw-r–r-- 1 root root 137 Dez 20 13:10 isolinux.cfg
    -rw-r–r-- 1 root root 119668 Dez 20 13:10 ldlinux.c32

    Thank you!


  • @sebastian-roth wow, great. Thank you!

  • Senior Developer

330
Online

7.8k
Users

14.8k
Topics

139.6k
Posts