• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. kaywokke
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 1
    • Controversial 0
    • Groups 0

    kaywokke

    @kaywokke

    1
    Reputation
    1
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    kaywokke Unfollow Follow

    Best posts made by kaywokke

    • RE: Fog Version 1.5.7 to 1.5.9-RC2 - Tasktype Management dissapeared

      It is already solved forgot to turn on the plugin.

      posted in FOG Problems
      K
      kaywokke

    Latest posts made by kaywokke

    • RE: Clonezilla intergrate in FOG

      @george1421 Thank you George it is working now! also it is booting. Thank you.

      posted in General
      K
      kaywokke
    • RE: Clonezilla intergrate in FOG

      @george1421 Hi george thanks for the information, i am new at fog so it is not easy for me to understand. Where can i set this parameter in the Hook? where do i need to put the type parameter?

      Because if i do it from the task editor page and i save it and check again the task it is dissapeared.

      posted in General
      K
      kaywokke
    • RE: Clonezilla intergrate in FOG

      @Sebastian-Roth Sebastian what you mean with possibly is there a place where i can find documentatio about the type?

      @george1421 i want to boot the device in Clonezilla where it automatically set back the right image of the device.

      posted in General
      K
      kaywokke
    • RE: Clonezilla intergrate in FOG

      @george1421 this is the screenshot that i have strange is we had another Fog Projects server that has the same error now.

      posted in General
      K
      kaywokke
    • RE: Clonezilla intergrate in FOG

      We have multiple clonezilla images i want to deploy a task where it automatically image the device.
      91a6b722-abf0-48cf-bc66-5189814385e6-image.png

      posted in General
      K
      kaywokke
    • Clonezilla intergrate in FOG

      Goodafternoon,

      I tried to make a Hook and make my own task. But if i run this task below:

      <?php
      /**
       * Alters the boot task to make a custom entry.
       *
       * PHP version 5
       *
       * @category BootTask
       * @package  FOGProject
       * @author   Tom Elliott <tommygunsster@gmail.com>
       * @license  http://opensource.org/licenses/gpl-3.0 GPLv3
       * @link     https://fogproject.org
       */
      /**
       * Alters the boot task to make a custom entry.
       *
       * @category BootTask
       * @package  FOGProject
       * @author   Tom Elliott <tommygunsster@gmail.com>
       * @license  http://opensource.org/licenses/gpl-3.0 GPLv3
       * @link     https://fogproject.org
       */
      class BootTask23 extends Hook
      {
          /**
           * The name of this hook.
           *
           * @var string
           */
          public $name = 'BootTask23';
          /**
           * The description of this hook.
           *
           * @var string
           */
          public $description = 'Alter the boot task to make a custom task hook';
          /**
           * Is this hook active or not.
           *
           * @var bool
           */
          public $active = true;
          /**
           * Initializes object.
           *
           * @return void
           */
          public function __construct()
          {
              parent::__construct();
              self::$HookManager
                  ->register(
                      'IPXE_EDIT',
                      array(
                          $this,
                          'changeTask'
                      )
                  );
          }
          /**
           * Change the task.
           *
           * @param mixed $arguments The items to alter.
           *
           * @return void
           */
          public function changeTask($arguments)
          {
              if (!isset($arguments['ipxe']['task'])) {
                  return;
              }
              $TaskType = self::getClass('TaskType')
                  ->set('name', 'BootTask23')
                  ->load('name');
              if (!$TaskType->isValid()) {
                  return;
              }
              $keys = array_keys($arguments['ipxe']['task']);
              if (!in_array($TaskType->get('id'), $keys)) {
                  return;
              }
              $arguments['ipxe']['task'][$TaskType->get('id')] = array(
                  'kernel http://IP of fogserver/fog/service/ipxe/vmlinuz',
                  'initrd http://IP of fogserver/fog/service/ipxe/initrd.img',
                  'imgargs vmlinuz initrd=initrd.img fetch=http://IP of fogserver/fog/service/ipxe/filesystem.squashfs boot=live hostname=oneiric config quiet noswap nolocales edd=on nomodeset ocs_prerun="dhclient -v enp1s0" ocs_prerun1="sleep 2" ocs_prerun2="mount -t cifs -o user=,domain=,password= ***location*** /home/partimag/" ocs_prerun3="sleep 2"ocs_live_run="ocs-sr -g auto -e1 auto -e2 -batch -r -scr -k1 -p poweroff restoredisk ***name of file*** sda" ocs_live_extra_param="" keyboard-layouts=NONE ocs_live_batch="yes" ocs_lang="en_US.UTF-8" noprompt vga=791',
                  'boot',
              );
              $arguments['Host']
                  ->get('task')
                  ->set(
                      'stateID',
                      self::getCompleteState()
                  )->save();
          }
      }
      

      Why if i run the task above ill get the following error:

      Init Version 20200517
      Fatal error: Unknown request type :: Null
      Kernel variables and settings:
      Bzimage loglevel =4

      and it said computer will reboot in 1 minute.

      Does someone can help me out with this?

      Thank you,

      posted in General
      K
      kaywokke
    • RE: Fog Version 1.5.7 to 1.5.9-RC2 - Tasktype Management dissapeared

      It is already solved forgot to turn on the plugin.

      posted in FOG Problems
      K
      kaywokke
    • Fog Version 1.5.7 to 1.5.9-RC2 - Tasktype Management dissapeared

      Goodafternoon,

      In version 1.5.7 i had a option tasktypes to fill in new tasks. At the newest version 1.5.9-RC2 it is dissapeard is that correct?

      If so how can i fill in the custom tasktypes again? It is at section task type management in version 1.5.7.

      Thank you,

      posted in FOG Problems
      K
      kaywokke