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

    csa

    @csa

    2
    Reputation
    954
    Profile views
    48
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    csa Unfollow Follow

    Best posts made by csa

    • RE: Fog upgrade to 1.5 broke PXE installation

      @Sebastian-Roth and @Tom-Elliott Thank you so much for your help. Backed-up my current images and cleanly installed from the latest GIT-repo 1.5. Coping back the same hooks worked again. Not sure what happened during the upgrade but fog is back in production now.

      Thank you
      Chakri

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

      Wayne Workman
      I already had the new “boot menu entry”. Which works like a champ but I have to manually go to the console and select the option. Instead I want to add this to the task and get it assigned to host like other tasks.

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

      When booting a server/pc I have to manually go to the console and scroll down to my “trusty” menu. Which is not idle for a remote management environment.

      0_1463515770258_Screen Shot 2016-05-17 at 3.09.15 PM.png

      Thank you
      Chakri

      posted in General
      C
      csa

    Latest posts made by csa

    • RE: Fog upgrade to 1.5 broke PXE installation

      @Sebastian-Roth and @Tom-Elliott Thank you so much for your help. Backed-up my current images and cleanly installed from the latest GIT-repo 1.5. Coping back the same hooks worked again. Not sure what happened during the upgrade but fog is back in production now.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @sebastian-roth I meant to say the issue is still the same. It gets hung at the same spot. Fog task deploy or capture NO we don’t see any issues but those are images.
      Thank you

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @sebastian-roth There is no difference. It still pauses at the installation.

      Version 1.5 binaries

      # ls -la /opt/BKUP/tftpboot/*.*pxe
      -rw-r-xr-x 1 fog root    448 Sep 27 17:58 /opt/BKUP/tftpboot/default.ipxe
      -rw-r-xr-x 1 fog root  94044 Sep 27 17:58 /opt/BKUP/tftpboot/intel.kkpxe
      -rw-r-xr-x 1 fog root  94092 Sep 27 17:58 /opt/BKUP/tftpboot/intel.kpxe
      -rw-r-xr-x 1 fog root  94121 Sep 27 17:58 /opt/BKUP/tftpboot/intel.pxe
      -rw-r-xr-x 1 fog root 348364 Sep 27 17:58 /opt/BKUP/tftpboot/ipxe.kkpxe
      -rw-r-xr-x 1 fog root 348412 Sep 27 17:58 /opt/BKUP/tftpboot/ipxe.kpxe
      -rw-r-xr-x 1 fog root 348459 Sep 27 17:58 /opt/BKUP/tftpboot/ipxe.pxe
      -rw-r-xr-x 1 fog root  94880 Sep 27 17:58 /opt/BKUP/tftpboot/realtek.kkpxe
      -rw-r-xr-x 1 fog root  94928 Sep 27 17:58 /opt/BKUP/tftpboot/realtek.kpxe
      -rw-r-xr-x 1 fog root  94892 Sep 27 17:58 /opt/BKUP/tftpboot/realtek.pxe
      -rw-r-xr-x 1 fog root  93613 Sep 27 17:58 /opt/BKUP/tftpboot/undionly.kkpxe
      -rw-r-xr-x 1 fog root  93661 Sep 27 17:58 /opt/BKUP/tftpboot/undionly.kpxe
      -rw-r-xr-x 1 fog root  93645 Sep 27 17:58 /opt/BKUP/tftpboot/undionly.pxe
      

      Version 1.4 binaries

      ~# ls -la /tftpboot/*.*pxe
      -rw-r-xr-x 1 fog root    448 Sep 27 17:58 /tftpboot/default.ipxe
      -rw-r-xr-x 1 fog root  95716 Oct 18 16:11 /tftpboot/intel.kkpxe
      -rw-r-xr-x 1 fog root  95764 Oct 18 16:11 /tftpboot/intel.kpxe
      -rw-r-xr-x 1 fog root  95765 Oct 18 16:11 /tftpboot/intel.pxe
      -rw-r-xr-x 1 fog root 348865 Oct 18 16:11 /tftpboot/ipxe.kkpxe
      -rw-r-xr-x 1 fog root 348913 Oct 18 16:11 /tftpboot/ipxe.kpxe
      -rw-r-xr-x 1 fog root 348777 Oct 18 16:11 /tftpboot/ipxe.pxe
      -rw-r-xr-x 1 fog root  96536 Oct 18 16:11 /tftpboot/realtek.kkpxe
      -rw-r-xr-x 1 fog root  96584 Oct 18 16:11 /tftpboot/realtek.kpxe
      -rw-r-xr-x 1 fog root  96605 Oct 18 16:11 /tftpboot/realtek.pxe
      -rw-r-xr-x 1 fog root  95290 Oct 18 16:11 /tftpboot/undionly.kkpxe
      -rw-r-xr-x 1 fog root  95338 Oct 18 16:11 /tftpboot/undionly.kpxe
      -rw-r-xr-x 1 fog root  95380 Oct 18 16:11 /tftpboot/undionly.pxe
      
      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @tom-elliott The binaries are same size. There is no difference. Looks like they weren’t changed on the new version.

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      Morning @tom-elliott I pull the git repo and run the install program every time I upgrade. How can I safely role back to " ipxe files from 1.4"?

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @sebastian-roth please check the attached image. 0_1507759415876_6e646d8a-ddca-4171-8afc-66bc4ffeb75b.jpg

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @george1421 The same entries were working fine in version 1.3 and 1.4. Version 1.5 introduced this issues.

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @sebastian-roth also I tried passing the string acpi=off to kernel options. To solve any generic TFTP issues.

      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @tom-elliott Sorry having tough time uploading files. Pasting the file.

      file --> boottaskcentos7.hook.php

      <?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 BootTaskCentos7 extends Hook
      {
          /**
           * The name of this hook.
           *
           * @var string
           */
          public $name = 'BootTaskCentos7';
          /**
           * The description of this hook.
           *
           * @var string
           */
          public $description = 'This is for Xenial Server installation';
          /**
           * 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', 'centos7-install')
                  ->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(
                  'set path /OS_IMAGES/CENTOS-7.0-1511-DVD',
                  'set nfs_path /images/OS_IMAGES/CENTOS-7.0-1511-DVD',
      	    'kernel ${boot-url}${path}/images/pxeboot/vmlinuz ks=${boot-url}/kickstarts/centos7.cfg ip=dhcp acpi=off || read void',
                  'initrd ${boot-url}${path}/images/pxeboot/initrd.img || read void', 
                  'boot || read void',
              );
              $arguments['Host']
                  ->get('task')
                  ->set(
                      'stateID',
                      self::getCompleteState()
                  )->save();
          }
      }
      

      file --> boottaskxenialserver.hook.php

      <?php
      /**
       * Alters the boot task to make a custom entry.
       *
       * PHP version 5
       *
       * @category BootTaskxenialserver
       * @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 BootTaskxenialserver
       * @package  FOGProject
       * @author   Tom Elliott <tommygunsster@gmail.com>
       * @license  http://opensource.org/licenses/gpl-3.0 GPLv3
       * @link     https://fogproject.org
       */
      class BootTaskxenialserver extends Hook
      {
          /**
           * The name of this hook.
           *
           * @var string
           */
          public $name = 'BootTaskxenialserver';
          /**
           * 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', 'xenial-server-install')
                  ->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(
                  'set path /OS_IMAGES/ubuntu-16.04-DVD',
                  'set nfs_path /images/OS_IMAGES/ubuntu-16.04-DVD',
                  'kernel ${boot-url}${path}/install/netboot/ubuntu'
                  . '-installer/amd64/linux || read void',
                  'initrd ${boot-url}${path}/install/netboot/ubuntu-installer'
                  . '/amd64/initrd.gz || read void',
                  'imgargs linux root=/dev/nfs boot=casper live-installer'
                  . '/net-image=${boot-url}${path}/install/filesystem.squashfs '
                  . 'ks=${boot-url}/OS_IMAGES/kickstarts/xenial_server_ks.cfg '
                  . 'ip=dhcp splash quiet - || read void',
                  'boot || read void',
              );
              $arguments['Host']
                  ->get('task')
                  ->set(
                      'stateID',
                      self::getCompleteState()
                  )->save();
          }
      }
      
      
      posted in FOG Problems
      C
      csa
    • RE: Fog upgrade to 1.5 broke PXE installation

      @sebastian-roth I tried on 2 different type of physical hardware and a vmware vm.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa