• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. csa
    3. Posts
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 48
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by csa

    • RE: Custom ISO (centos 6/7 ) installation issues.

      @george1421 said in Custom ISO (centos 6/7 ) installation issues.:

      at issue. FOG passes a number of kernel parameters to the FOS client engine. You can also use that method to ensure what you are entering in the webgui ends up correctly in the assembled iPXE menu.

      Thank you for the tip. I see there is no “imgargs” option too. Let me give a try.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • Custom ISO (centos 6/7 ) installation issues.

      Hi ,
      I was able to create a custom boot menu for any ubuntu distribution ( sample trusty menu )

      :fog.trusty
      set path /fog/OS_IMAGES/ubuntu-14.04.3-DVD
      set nfs_path /images/OS_IMAGES/ubuntu-14.04.3-DVD
      kernel http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/netboot/ubuntu-installer/amd64/linux || read void
      initrd http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/netboot/ubuntu-installer/amd64/initrd.gz || read void
      imgargs linux root=/dev/nfs boot=casper live-installer/net-image=http://fogsrv/fog/OS_IMAGES/ubuntu-14.04.3-DVD/install/filesystem.squashfs ks=http://fogsrv/fog/OS_IMAGES/kickstarts/precise_ks.cfg ip=dhcp splash quiet – || read void
      boot || read void
      goto start
      

      Now I am trying to create the same type for centos

      :fog.centos
      set path /fog/OS_IMAGES/CENTOS-6.8-DVD
      set nfs_path /images/OS_IMAGES/CENTOS-6.8-DVD
      kernel http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/vmlinuz || read void
      initrd http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/initrd.img || read void
      append ks=http://fogsrv/fog/kickstarts/centos6.cfg ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp url --url http://10.0.28.24/fog/OS_IMAGES/CENTOS-6.8-DVD  || read void
      boot || read void
      goto start
      

      When trying to boot the client through centos. It boots and complains on “append” option.
      “APPEND options not recognized”

      Did anyone create a centos iso installation menu with kickstart?

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Create a new boottask hook

      @Tom-Elliott

      That resolved the issue. Thank you so much for the time. Please resolve this ticket.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Create a new boottask hook

      @Tom-Elliott

      Morning Tom,
      I Also noticed one more thing.

      1. Any changes made within the “boottask.hook.php” are working. I was able to install different flavor of OS by changing the caller name.

      2. Looks like the application is only looking for file name “boottask.hook.php”.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Create a new boottask hook

      @Tom-Elliott
      Tom any updates?

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Create a new boottask hook

      Tom,
      The default boottask.hook.php works without any issues. The new one fails still. Any ideas?

      From the error logs 
      [06-03-16 3:36:04 pm]  * No tasks found!
      From the console 
      Fatal Error : Uknown request type : : Null
      

      root@fogsrv:/var/www/html/fog/lib/hooks# diff boottask.hook.php boottasktrusty.hook.php
      2,3c2,3

      <     public $name = 'BootTask';
      ---
      > class BootTasktrusty extends Hook {
      >     public $name = 'BootTasktrusty';
      9c9
      <         $TaskType = self::getClass('TaskType')->set('name','trusty-install')->load('name');
      ---
      >         $TaskType = self::getClass('TaskType')->set('name','trusty123-install')->load('name');
      

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Create a new boottask hook

      @Tom-Elliott
      Didn’t understand. What is the fix? Do you have few minutes to chat?

      posted in FOG Problems
      C
      csa
    • Create a new boottask hook

      Hi,
      This is a followup ticket
      https://forums.fogproject.org/topic/7448/adding-custom-task-to-fog-server

      Original ticket is resolved. Now I am trying to create the same boottask for multiple OS installations. As per the Tom’s instructions

      1. Created a new file “boottasktrusty.hook.php” copy of “boottask.hook.php”

      2. Updated the class name, $name and $Tastype to new name.

      root@fogsrv:/var/www/fog/lib/hooks# sdiff -s boottask.hook.php boottasktrusty.hook.php
      class BootTask extends Hook { | class BootTaskTrusty extends Hook {
      public $name = ‘BootTask’; | public $name = ‘BootTaskTrusty’;
      public $active = False; | public $active = True;

      When trying to pxe install. It complains on “Unknown reqeust type NULL” . Do I need to add the new file name anywhere else?

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott
      Fixed the password issues and upgrade to the latest revision. Switched the flag in “/var/www/fog/lib/hooks/boottask.hook.php to true”.

      Do you have couple of min to chat.

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott

      Yes that is correct. I use that entries in my custom menu that I call manually. It works like a champ. Now I need to do the same in my tasking or call the menu from tasking.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott

      Sorry I am little confused on following your instructions but here is a screen shot of “Task Type Management” of my custom task. So can you tell me which field gets the “IPXE_EDIT” and which the arguments?
      0_1464366778958_Screen Shot 2016-05-27 at 11.31.19 AM.png

      Once again thank you so much for your time and effort.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott

      Yes I installed task type plugin. Like I shared the snapshots in the initial conversation. I can create a custom task but that isn’t calling the menu. That is where I needed help on how call my custom menu. If you can’t find the snapshot in the beginning of this tickets. I will re-post it.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott
      The custom menu is doing kickstart installation ( just like the default memory test that comes with fog ). I can see the menu when I pxe boot just like any other menu. ( again same like memory test) but that is a manual process especially when I want to manage large number of hosts.
      All I wanted to do now is to create a custom task ( which calls the custom menu ). So I can assign the task to a host that is registered.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott
      All I wanted to do is to call the custom menu that I created via custom task.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott
      Just wondering if you have any updates. If not can you give me some guide lines on where and how to create the hooks.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Sebastian-Roth
      Yes kickstart works like a champ on fog. I want to use cloning and installation on one server. All I need to do is now to be able to create a task, so i can assign to a host. Tom Elliott is checking on some hooks.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott
      Thank you so much for your time. Please let me know. Again loving this product so much and its a great invention.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott

      Re-thinking about the question. When I was able to call the kickstart installation via my custom entry. Which is presented by fog menu. Not sure if that is called as a separate environment. Shouldn’t this be like any other “memtest” or diskcleanup task which already there?

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott

      Yes I think that is correct.

      Thank you
      Chakri

      posted in General
      C
      csa
    • RE: Adding custom task to Fog Server

      @Tom-Elliott

      Here is what I am trying to do.

      1. As shown in the menu path. Loaded the trusty ISO contents and created kickstart files. Verified calling via http://fogsrv/OS_IMAGES/ubuntu-14.04.3-DVD/

      2. Created a new menu entry, like below

      0_1463585147434_Screen Shot 2016-05-17 at 1.43.56 PM.png

      1. Registered a client host and pxe booted. From the boot menu, I was able to see the new menu fog entry that I created. Manually selected “Trusty”

      2. My client host got successfully got kickstart trusty installed and rebooted as per my kickstart instructions.

      Now the issue that I have is.

      a. I don’t want to scroll down and select my custom menu on every client host. I want to make this a custom task and assign to any registered host when I want to install trusty.

      b. With the help of plugins, I came to know that I can create custom tasks.

      c. Now the question is how can I call my menu or direct code of my trusty install through this custom task.

      Please let me know if you have any more questions.

      Thank you
      Chakri

      posted in General
      C
      csa
    • 1 / 1