Boot menu and Kernel panic


  • Moderator

    Hi,

    I’ve some problems with FOG, I think it’s a mismatch in my configuration (I’m on Debian 7 and FOG 5360).

    First, I’ve not all items in PXE menu, like quick registration and full host registration :

    Below my boot menu
    0_1447671124466_upload-a0450207-5817-4cb0-b363-2a32fe88b3eb

    And my configuration
    0_1447671084845_upload-6cb8cb0d-576f-4832-8435-1e2f8b4fccd4

    The other problem is a kernel panic after select a quick image task :

    Below the error
    0_1447671405866_upload-8f4fa603-b875-4d3b-a1bd-50a272f73561

    Ipxe folder content

    -rw-r--r-- 1 fog www-data    1372 nov.  16 10:04 advanced.php
    -rw-r--r-- 1 fog www-data   21280 nov.  16 10:04 bg.png
    -rw-r--r-- 1 fog www-data     679 nov.  16 10:04 boot.php
    -rw-r--r-- 1 fog www-data 6837408 nov.  16 11:27 bzImage
    -rw-r--r-- 1 fog www-data 6609104 nov.  16 11:23 bzImage32
    -rw-r--r-- 1 fog www-data  234697 nov.  16 10:04 grub.exe
    -rw-r--r-- 1 fog www-data 9175040 nov.  16 10:06 init_32.xz
    -rw-r--r-- 1 fog www-data 7553024 nov.  16 10:06 init.xz
    -rw-r--r-- 1 fog www-data   25340 nov.  16 10:04 memdisk
    -rw-r--r-- 1 fog www-data 1839104 nov.  16 10:04 memtest.bin
    -rw-r--r-- 1 fog www-data   20933 nov.  16 10:04 refind.conf
    -rw-r--r-- 1 fog www-data  205192 nov.  16 10:04 refind.efi
    

    Please help :’(

    Thank’s in advance.


  • Moderator

    @Tom-Elliott Hi Tom, I’ve updated my old server during few month, and never seen that option. I’m on a fresh install, and I’ve not checked that :p


  • Senior Developer

    @ch3i Believe it or not, this option isn’t really new. It’s been there for a while.

    It’s what enables registering or not, so you have control over whether or not you want to allow systems to register. It’s kind of a security feature.


  • Moderator

    @Sebastian-Roth said:

    Looking at the source code I think I found the “issue”. Didn’t know that there is a new option called FOG_REGISTRATION_ENABLED in FOG Settings… Check the settings in your web interface…

    \o/ Solved ! Thx


  • Developer

    Looking at the source code I think I found the “issue”. Didn’t know that there is a new option called FOG_REGISTRATION_ENABLED in FOG Settings… Check the settings in your web interface…


  • Moderator

    @Sebastian-Roth

    No error, but can’t post the log >> Antispam xD


  • Developer

    Interesting as :fog.reginput and :fog.reg are available but not listed as an item in the menu section… Are you sure you don’t have any related messages in your apache error log??


  • Moderator

    @Sebastian-Roth said:

    http://ip.or.fog.srv/fog/service/ipxe/boot.php

    #!ipxe
    set fog-ip 172.20.0.4
    set fog-webroot fog
    set boot-url http://${fog-ip}/${fog-webroot}
    #!ipxe
    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://172.20.0.4/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.quickimage Quick Image
    item fog.multijoin Join Multicast Session
    item fog.sysinfo Client System Information (Compatibility)
    choose --default fog.local --timeout 3000 target && goto ${target}
    :fog.local
    sanboot --no-describe --drive 0x80 || goto MENU
    :fog.memtest
    kernel memdisk iso raw
    initrd memtest.bin
    boot || goto MENU
    :fog.reginput
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.20.0.4/fog/ consoleblank=0 loglevel=4 mode=manreg
    imgfetch init_32.xz
    boot || goto MENU
    :fog.reg
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.20.0.4/fog/ consoleblank=0 loglevel=4 mode=autoreg
    imgfetch init_32.xz
    boot || goto MENU
    :fog.quickimage
    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
    :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
    :fog.sysinfo
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.20.0.4/fog/ consoleblank=0 loglevel=4 mode=sysinfo
    imgfetch init_32.xz
    boot || goto MENU
    :bootme
    chain -ar http://172.20.0.4/fog/service/ipxe/boot.php##params ||
    goto MENU
    autoboot
    

  • Developer

    @ch3i Please try accessing the bootmenu URL from a browser and see what you get: http://ip.or.fog.srv/fog/service/ipxe/boot.php


  • Moderator

    @Tom-Elliott Hi Tom, I’ve nothing in error.log


  • Senior Developer

    @ch3i Do you have anything in the apache error logs when you try to load the boot menu?


  • Moderator

    @Sebastian-Roth OK it’s solved my problem for the kernel panic. Menu always bugged ;)


  • Senior Developer

    I didn’t even see that, but I have now added the init=/sbin/init to the kernel args list for kernel bootup in an attempt to hopefully ensure we always use the proper file.


  • Developer

    Not sure about the menu but I think your init.xz/init_32.xz are way to small. Mine are about 1.5 times bigger (roughly 15 MB). Incomplete download of those files would explain the error you see I reckon.

    cd /var/www/fog/service/ipxe
    rm init.xz init_32.xz
    wget -O init.xz "http://sourceforge.net/projects/freeghost/files/InitList/init.xz/download"
    wget -O init_32.xz "http://sourceforge.net/projects/freeghost/files/InitList/init_32.xz/download"
    chown www-data:www-data init*
    

Log in to reply
 

407
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

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