• 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: 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
    • RE: Fog upgrade to 1.5 broke PXE installation

      @tom-elliott Thank you for the quick response. Please check the 2 attached hooks for centos(RHEL variant) and xenial(Ubuntu variant).

      Thank you
      Chakri
      [1_1507737322049_boottaskxenialserver.hook.php](Uploading 100%) [0_1507737322042_boottaskcentos7.hook.php](Uploading 100%)

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

      Hi,
      We use FOG for both imaging and pxe installation. The hooks that were created with Tom’s (author) help in version 1.3 & 1.4 worked like a champ. Upgraded to the latest 1.5-RC9. Where I noticed the
      /var/www/fog/lib/hooks/boottask.hook.php file format was changed. Re-created all our hooks in new format.
      Now the PXE install is starting. The install freezes right after fetching the initrd image. Tried with different flavors of linux ( ubuntu & centos ). Tried adding “acpi=off” to the kernel arguments. Looks like this more on the fog services. Can’t see any debugging logs. Now I am tempted to role back to old version. Before that wanted to try for support.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Fog custom installation options.

      @Tom-Elliott
      Thank you for details.

      Chakri

      posted in Linux Problems
      C
      csa
    • Fog custom installation options.
      Server
      • FOG Version: Tue Dec 27, 2016 21:36 pm
        Running Version 1.3.0-RC-26
        SVN Revision: 6021
      • OS: Ubuntu 14.04
      Description

      Is there anyway you can add the following flags to disable apache and mysql during installation or upgrade
      /opt/fogproject_git/bin# ./installfog.sh

      • No Apache ( we want to install and configure our own apache )
      • No mysql ( we want to install and configure our own mysql )

      Also
      Can I have CLI notes for

      • Creating a task for host installation or imaging.

      Thank you
      Chakri

      posted in Linux Problems
      C
      csa
    • RE: Upgrade to RC-19 failed on "Setting up fog password"

      @Tom-Elliott
      No I still don’t have luck.

      Chakri

      posted in FOG Problems
      C
      csa
    • RE: Upgrade to RC-19 failed on "Setting up fog password"

      Tom,
      I had the same issue. Last 2 lines from the error log.

      passwd: Authentication token manipulation error
      passwd: password unchanged

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

      With my special thanks to Tom Elliott and team. Please resolve this ticket.

      Thank you
      Chakri

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

      @Tom-Elliott said in Custom ISO (centos 6/7 ) installation issues.:

      @csa I believe you need to move it to the “kernel” section, not the initrd

      Tom,
      You are simply awesome. Yes moving all the options to kernel worked like a champ. So for RHEL / Centos the following ipxe configuration menu works

      :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 ks=http://fogsrv/fog/kickstarts/centos6.cfg  ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp splash quiet – || read void
      initrd http://fogsrv/fog/OS_IMAGES/CENTOS-6.8-DVD/images/pxeboot/initrd.img || read void
      goto start
      
      

      Thank you so much
      Chakri

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

      Team,
      I tried all the following options but didn’t have any success. This is happening with any centos or RHEL distribution. With ubuntu “kernel, initrd and imgargs” are working like champ.
      The issue seems to be unable to pass the following option through ipxe.
      ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp
      using imgargs or moving to initrd.

      Option 1.

      Error --> boots and complains on “ks=… No such file or directory”
      Moved “ramdisk” before ks=. Errors out saying "ramdisk=100000… no such file or directory

      :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
      imgargs 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
      

      Option II
      Removed imgargs section and moved everything to “initrd” section. Boots further but errors out saying " Cannot open root device "(null) … Please append a correct “root=” boot option ". Which means its the options in initrd section are getting ignored.

      :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 ks=http://fogsrv/fog/kickstarts/centos6.cfg ramdisk_size=100000 ksdevice=eth0 root=/dev/rd/0 ip=dhcp || read void
      boot || read void
      goto start
      

      Thank you
      Chakri

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

      @Quazz
      Thank you the “imgargs” also didn’t work. Trying without it.

      Thank you
      Chakri

      posted in FOG Problems
      C
      csa
    • 1
    • 2
    • 3
    • 1 / 3