IPXE ISO boot problems



  • Hello all first time poster here,

    Ive been trying to boot Hirens live CD(or any iso for that matter) from the advanced ipxe menu(i.e. fog admin area). When booting a client the menu & iPXE shell appear correctly but when I select Hirens boot CD it brings me immediately back to the the main pxe menu. This is the code that I am using,

    :MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}
     
    :BOOTCD
    initrd ${192.168.1.130}/var/www/fog/service/ipxe/iso/Hirens152.iso
    chain memdisk iso raw ||
    echo failed to boot
    prompt
    goto MENU
     
    :shell
    shell ||
    goto MENU
     
    autoboot
    

    Any insight would be greatly appreciated thanks!

    Server specs:

    FOG version 1.1.1
    Ubuntu 14.04 LTS



  • Hi Guys!!

    I was having this problem too, so i would like to explain about the memory needs for HIrens to open by iPXE.
    My configuration was correctly, but my VirtualMachine does not load the Hiren’s boot image because of my Memory (512mb)

    It’s important to check the computers memory before trying upload an ISO image.



  • Wahoo!!

    Shes up and running! Thank you both for the feedback, you guys deserve a beer! If your ever in Fort Collins, Colorado PM me haha.

    So for everyone else my problem was totally due to syntax and directory location,

    By changing initrd ${fog-ip}/fog/iso/Hirens152.iso to ```
    initrd http://${fog-ip}/fog/service/ipxe/iso/Hirens152.iso

     
    

    :MENU
    menu
    item --gap – ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}

    :BOOTCD
    initrd 192.168.1.130/fog/iso/Hirens152.iso ||
    echo failed to load iso if it stops here
    prompt
    chain memdisk iso raw ||
    echo failed to chain memdisk if it stops here
    prompt
    boot ||
    echo failed to boot here if it stops here
    prompt
    goto MENU

    :shell
    shell ||
    goto MENU

    autoboot

     
    Thanks again guys!!

  • Developer

    try this

    :MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}
     
    :BOOTCD
    initrd 192.168.1.130/fog/iso/Hirens152.iso ||
    echo failed to load iso if it stops here 
    prompt
    chain memdisk iso raw ||
    echo failed to chain memdisk if it stops here
    prompt
    boot ||
    echo failed to boot here if it stops here
    prompt
    goto MENU
     
    :shell
    shell ||
    goto MENU
     
    autoboot
    

  • Senior Developer

    @csurepair, post: 31243, member: 24772 said:

    I actually noticed that mistake right after I posted the code. This is what I have now,

    >:MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}
     
    :BOOTCD
    initrd 192.168.1.130/fog/iso/Hirens152.iso
    chain memdisk iso raw ||
    echo failed to boot
    prompt
    goto MENU
     
    :shell
    shell ||
    goto MENU
     
    autoboot
    >```
     
    And the link resolves fine via a browser,
     
    ![""](https://collinscustoms.info/public.php?service=files&t=179ccb1dc8da0d41cb951c602e37ea4e)
     
    But it continues to immediately return to the previous main menu. It seems strange to me that it returns to the main menu so fast without throwing any sort of error or timeout message.
     
    Is the ISO located in /var/www/fog/iso/Hirens152.iso or /var/www/fog/service/ipxe/iso/Hirens152.iso
     
    

    :MENU
    menu
    item --gap – ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}

    :BOOTCD
    initrd http://${fog-ip}/fog/service/ipxe/iso/Hirens152.iso
    chain memdisk iso raw ||
    echo failed to boot
    prompt
    goto MENU

    :shell
    shell ||
    goto MENU

    autoboot



  • I actually noticed that mistake right after I posted the code. This is what I have now,

    :MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}
     
    :BOOTCD
    initrd 192.168.1.130/fog/iso/Hirens152.iso
    chain memdisk iso raw ||
    echo failed to boot
    prompt
    goto MENU
     
    :shell
    shell ||
    goto MENU
     
    autoboot
    

    And the link resolves fine via a browser,

    ""

    But it continues to immediately return to the previous main menu. It seems strange to me that it returns to the main menu so fast without throwing any sort of error or timeout message.


  • Developer

    tom spotted something on your menu
    192.168.1.130/var/www/fog/service/ipxe/iso/Hirens152.iso
    is pretty unlikely to be a valid path
    /var/www/fog/service/ipxe/iso/Hirens152.iso
    is the file path, the web directory path is probably
    192.168.1.130/fog/service/ipxe/iso/Hirens152.iso


  • Developer

    have you verified that you get a download prompt if you put that iso link in a browser?
    everything after the IP is case sensitive



  • Hi Junkhacker,

    Thanks for the quick response! I just changed that around and unfortunately the boot menu is still acting the same way. I double checked all the permissions on the folder and everything seems fine. Does the .iso need to be mounted or is it correct to have the file just as a stand alone .iso inside that pxe “pointed” folder? Thanks again for taking the time.


  • Developer

    the ${ } marks are for variables

    :MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}
     
    :BOOTCD
    initrd 192.168.1.130/var/www/fog/service/ipxe/iso/Hirens152.iso
    chain memdisk iso raw ||
    echo failed to boot
    prompt
    goto MENU
     
    :shell
    shell ||
    goto MENU
     
    autoboot
    

    or, if that is the IP of your fog server

    :MENU
    menu
    item --gap -- ---------------- iPXE boot menu ----------------
    item BOOTCD Hirens BOOTCD
    item shell ipxe shell
    choose target && goto ${target}
     
    :BOOTCD
    initrd ${fog-ip}/var/www/fog/service/ipxe/iso/Hirens152.iso
    chain memdisk iso raw ||
    echo failed to boot
    prompt
    goto MENU
     
    :shell
    shell ||
    goto MENU
     
    autoboot
    

Log in to reply
 

892
Online

38716
Users

10544
Topics

99831
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.