Navigation

    FOG Project

    • Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. RipAU
    R
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    RipAU

    @RipAU

    17
    Reputation
    149
    Posts
    1513
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    RipAU Follow

    Best posts made by RipAU

    • Sub-Menu within Fog Advanced Menu

      I’m not sure if this has been posted before but I have found it quite useful.

      Pretty much this is the contents of Fog Configuration --> iPXE Boot Menu --> Advanced Configuration Options.

      :start
      
      ###################### Advanced FOG Main Menu ######################
      
      menu iPXE Advanced boot Menu for FOG
      item --gap --					=================  Live Operating Systems  =================
      item
      item --key f fedora22 			Boot Live Fedora 22 (F)
      item --key s sysrescue			Boot SysRescue CD (S)
      item --key i sysrescue-intel		Boot SysRescue Cd Intel (I)
      item
      item --gap --					====================  Tools & Utilities  ===================
      item
      item --key t menu-tools			Boot Live Recovery & Testing Tools (T)
      item --key d menu-diag			Diagnostics Menu (D)
      item
      item --gap --             		====================  Advanced Options  ====================
      item
      item --key c config       		Configure settings
      item shell               		Drop to iPXE shell
      item reboot               		Reboot computer
      item --key x exit         		Exit iPXE and continue BIOS boot
      item return						Return to Main FOG Menu
      choose --timeout ${menu-timeout} --default ${menu-default} selected
      set menu-timeout 0
      set submenu-timeout 0
      set menu-default return
      goto ${selected}
      
      
      :fedora22
      initrd http://${fog-ip}/${fog-webroot}/boot/fedora22/initrd0.img
      chain http://${fog-ip}/${fog-webroot}/boot/fedora22/vmlinuz0 initrd=initrd0.img root=live:http://${fog-ip}/${fog-webroot}/boot/fedora22/squashfs.img rootflags="loop" rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
      goto start
      
      :sysrescue
      echo Starting Sys RescueCD (32bit) with default options
      initrd http://${fog-ip}/${fog-webroot}/boot/sysrescue/initram.igz
      chain http://${fog-ip}/${fog-webroot}/boot/sysrescue/rescue.32 cdroot docache dodhcp setkmap=us netboot=http://${fog-ip}/${fog-webroot}/boot/sysrescue/sysrcd.dat
      prompt
      goto start
      
      :sysrescue-intel
      echo Starting Sys RescueCD (32bit) with default options
      initrd http://${fog-ip}/${fog-webroot}/boot/sysrescue/initram.igz
      chain http://${fog-ip}/${fog-webroot}/boot/sysrescue/rescue-intel.32 cdroot docache dodhcp setkmap=us netboot=http://${fog-ip}/${fog-webroot}/boot/sysrescue/sysrcd.dat
      prompt
      goto start
      
      :reboot
      reboot
      
      :shell
      echo Type 'exit' to get the back to the menu
      shell
      set menu-timeout 0
      goto start
      
      :exit
      exit
      
      :config
      config
      goto start
      
      :return
      chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac}&arch=${arch} ||
      prompt
      goto start
      
      ###################### Tools & Utilities Menu ######################
      
      :menu-tools
      menu Tools & Utilities
      item --gap --				========================  Utilities  =======================
      item
      item --key g gparted		Gparted Live
      item --key d dban	  	Darik's Boot and Nuke
      item
      item --key 0x08 back Back to top menu...
      iseq ${menu-default} menu-tools && goto menu-diag-timed ||
      choose selected && goto ${selected} || goto start
      :menu-diag-timed
      choose --timeout ${submenu-timeout} --default gparted selected && goto ${selected} || goto start
      
      :gparted
      kernel http://${fog-ip}/${fog-webroot}/boot/gparted/vmlinuz
      initrd http://${fog-ip}/${fog-webroot}/boot/gparted/initrd.img
      imgargs vmlinuz boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=http://${fog-ip}/${fog-webroot}/boot/gparted/filesystem.squashfs
      boot || goto start
      
      :dban
      initrd http://${fog-ip}/${fog-webroot}/boot/dban-2.3.0_i586.iso
      chain memdisk iso raw ||
      goto start
      
      
      
      ###################### DIAGNOSTICS MENU #############################
      
      :menu-diag
      menu Diagnostic tools
      item --gap --				===============  Diagnostics  =============
      item
      item hdt           			Hardware Detection Tool
      item breakin      			Breakin 3.71
      item seatools				Seagate Tools
      item
      item --key 0x08 back Back to top menu...
      iseq ${menu-default} menu-diag && goto menu-diag-timed ||
      choose selected && goto ${selected} || goto start
      :menu-diag-timed
      choose --timeout ${submenu-timeout} --default hdt selected && goto ${selected} || goto start
      
      :hdt
      initrd http://${fog-ip}/${fog-webroot}/boot/hdt-0.5.2.img
      chain memdisk
      goto start
      
      :breakin
      initrd http://${fog-ip}/${fog-webroot}/boot/breakin-4.26.iso
      chain memdisk iso raw ||
      goto start
      
      :seatools
      sanboot http://${fog-ip}/${fog-webroot}/boot/seatools.iso
      goto start
      
      

      This allows you to have several sub menus inside of the advanced Fog Menu, so you can break things down into sections.
      Not all of the options maybe be 100% correct but they work for me so far 🙂

      I based it from the iPXE documentation and https://gist.github.com/robinsmidsrod/2234639

      Hopefully it helps a few people out.

      posted in Tutorials
      R
      RipAU
    • RE: Storage Node installation fails

      @Wayne-Workman Yep seemed to work. Just finished installing/configuring. I’ll add this to the fog and see how it goes 🙂
      Thanks guys.

      posted in Bug Reports
      R
      RipAU
    • RE: Fog Client - 0.10.3 issues after update on host from previous version.

      Yep, looks like the problem clients have updated themselves. 🙂 All working it seems.

      Cheers.

      posted in FOG Problems
      R
      RipAU
    • RE: Sub-Menu within Fog Advanced Menu

      No worries.
      Just FYI I can’t get the sub-menu function in iPXE working in the iPXE New Menu Entry section on Fog, So far I only having it working in the Fog Advanced Menu, I am assuming this is to due to system variables that fog passes to the menu before the script is run.

      Pretty much all I did was follow on the advanced menus and examples from https://gist.github.com/robinsmidsrod/2234639
      I did simplify this on mine just so I can follow it easier as I’m no expert in iPXE.

      The easiest way to follow this is the copy and paste the iPXE script into a text document and read through it.
      My example is broken down into three menus the default menu that pops up first and two others sub menus that don’t show up until you select them. I have also included the option to hit a key and jump straight to the corresponding menu item. e.g T for tools, D for Diagnostics menu etc.

      After editing the ipxe script in notepad or metapad. Copy and paste the iPXE script into the Advanced Configuration Options (Fog Configuration --> iPXE Boot Menu). I generally have the login required to password protect the menu because of a few destructive tools, this can be done by ticking the box for Advanced Menu Login under the section --> Fog Configuration --> iPXE Boot Menu.

      I hope I am making sense as I’m not exactly the best at typing out documentation.
      Is this what you were after?

      Would be quite handy to have some other example of good Fog Menu configurations up on the Wiki as well, as I love reading through other examples on what works and what doesn’t 🙂

      Cheers,

      posted in Tutorials
      R
      RipAU
    • RE: iPXE New Menu Entry - Bug?

      Ahh my bad, the description was just blank as I was just testing the Menu.
      I copied every other field but the description from my previous server. All good now cheers.
      Sorry about that.

      posted in Bug Reports
      R
      RipAU

    Latest posts made by RipAU

    • RE: Active Tasks in Storage Group Activity shows active task

      Perfect all looking normal now 🙂
      One place I didn’t think to look was on the Wiki 😕

      Thanks!
      Cheers,

      posted in FOG Problems
      R
      RipAU
    • Active Tasks in Storage Group Activity shows active task

      Hi, everyone.

      I’ve updated to the latest FOG 1.5.9 and all in general seems to be working fine.
      I’ve noticed that in my fog storage activity on the Dashboard it lists an active task.

      cee59d87-c17b-43ee-b359-9f5e0615cdf5-image.png

      I cannot see the active task listed in ‘Tasks’ at all,
      Active Tasks, Active Multicasts, Active Snapin Tasks and Schedules Tasks are all blank.

      Just wondering if this may be a rogue entry sitting in the Database?
      I’ve had a search but can’t see anything specific in the forums.

      I did have a read through https://forums.fogproject.org/topic/11059/clearing-specific-kinds-of-task-types-using-sql

      When looking at the database (Query could be wrong) to try see active tasks,

      select * from tasks where tasktypeID ='1' and taskstateid = '0';
      

      Shows empty. The next query with taskstateid = ‘1’ returns the following:

      MariaDB [fog]> select * from tasks where tasktypeID ='1' and taskstateid = '1';
      +--------+---------------------------------+---------------------+---------------------+------------+-------------+-------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------+---------------+--------------+
      | taskID | taskName                        | taskCreateTime      | taskCheckIn         | taskHostID | taskImageID | taskStateID | taskIsDebug | taskCreateBy | taskForce | taskScheduledStartTime | taskTypeID | taskPCT    | taskBPM | taskTimeElapsed | taskTimeRemaining | taskDataCopied | taskPercentText | taskDataTotal | taskNFSGroupID | taskNFSMemberID | taskNFSFailures | taskLastMemberID | taskWOL | taskPassreset | taskShutdown |
      +--------+---------------------------------+---------------------+---------------------+------------+-------------+-------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------+---------------+--------------+
      |   3153 | Deploy Task                     | 2019-03-01 13:06:45 | 0000-00-00 00:00:00 |          0 |          10 |           1 |           0 | fog          | 0         | 0000-00-00 00:00:00    |          1 | 0000000000 |         |                 |                   |                |                 |               |              0 |               0 |                 |                0 | 1       |               |              |
      |   6455 | Deploy Task - Room_01           | 2020-07-08 12:56:39 | 0000-00-00 00:00:00 |          0 |           1 |           1 |           0 | fog          | 0         | 0000-00-00 00:00:00    |          1 | 0000000000 |         |                 |                   |                |                 |               |              0 |               1 |                 |                0 | 1       |               |              |
      +--------+---------------------------------+---------------------+---------------------+------------+-------------+-------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------+---------------+--------------+
      2 rows in set (0.00 sec)
      
      

      or if I’m not on the right track? or missing something else?

      Thanks!

      Cheers,

      posted in FOG Problems
      R
      RipAU
    • Error uploading snapin package - PHP error

      Hi, everyone.

      I’ve previously never had an issue with uploading snapins.
      I’m trying to upload a 580Mb snapinpackage as a zip.

      I get the error:

      Snapin Update Fail
      RecursiveDirectoryIterator::__constuct(//boot/grub2): failed to open dir: Permission denied

      If I upload this as a regular snapin as an exe it uploads fine.
      If I upload this with a dummy small zipfile it works fine.
      I’ve created this zip file on 2 separate computers as well as a few different zip programs, so it isn’t corrupt.

      Fog version is 1.5.8

      I can’t see anything in the httpd error, anyone have an suggestions on where to look? thanks!

      I’m unable to upload the screenshot sorry. getting a ZLIB error on the forums.

      ![0_1587703996457_2020-04-24 13_09_04-Snapin General.png](Uploading 100%)

      posted in FOG Problems
      R
      RipAU
    • RE: Possible Proxy issue with MAC Address Update

      Cheers,

      Yes that work around worked.

      Cheers!

      posted in FOG Problems
      R
      RipAU
    • Possible Proxy issue with MAC Address Update

      Hi, Guys

      I’m getting the following errors when trying to update the MAC address.

      The fog server doesn’t have direct connection to the internet so I’ve configured the proxy settings within fog, this seems to be working correctly, but when I go update the Mac address update menu it gives an error that it can not connect (See below) and throws an error on the webpage with Chrome:
      “currently unable to handle this request. HTTP ERROR 500”

      I’m assuming this is because the request to update the mac address isn’t going through the proxy hence the errors.
      Would this be a bug or something I may be doing wrong?

      I’m testing this all on FOG 1.5.0-RC10 with Centos 7

      Cheers,

      
      [Tue Dec 12 08:46:03.566215 2017] [:error] [pid 15935] [client 10.0.0.1:63841] PHP Warning: fopen(http://linuxnet.ca/ieee/oui.txt): failed to open stream: Connection refused in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php on line 1928, referer: http://fogserver/fog/management/index.php?node=about&sub=maclist
      
      [Tue Dec 12 08:46:03.566380 2017] [:error] [pid 15935] [client 10.0.0.1:63841] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not read temp file' in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php:1929\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogpagemanager.class.php(220): FOGConfigurationPage->maclistPost()\n#1 /var/www/html/fog/management/index.php(58): FOGPageManager->render()\n#2 {main}\n thrown in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php on line 1929, referer: http://fogserver/fog/management/index.php?node=about&sub=maclist
      
      posted in FOG Problems
      R
      RipAU
    • RE: iPXE New Menu Entry - Bug?

      Ahh my bad, the description was just blank as I was just testing the Menu.
      I copied every other field but the description from my previous server. All good now cheers.
      Sorry about that.

      posted in Bug Reports
      R
      RipAU
    • RE: Advanced Menu Command Missing Text Box

      Yep just seeing this issue in Chrome with Windows 10.

      posted in Bug Reports
      R
      RipAU
    • RE: iPXE New Menu Entry - Bug?

      0_1512529651666_image2 - Copy.jpeg

      0_1512529668332_image1 - Copy.jpeg

      Just snapped a screenshot of what I mean.

      Cheers,

      posted in Bug Reports
      R
      RipAU
    • iPXE New Menu Entry - Bug?

      Hi, guys.

      I’m not sure if this is a bug or something I haven’t setup correctly.
      This is with Version 1.5-RC10 installed from GIT.

      After creating a new iPXE menu entry called “fog.QuickSystemInfo”
      On the fog boot up screen the new menu entry is there and working and you can select it but the text is hidden? or maybe the same colour as the background?

      Cheers,

      posted in Bug Reports
      R
      RipAU
    • RE: Advanced Menu Command Missing Text Box

      Ahh yep, if I edit the HTML and just remove:

      id="advtext"
      

      The text box re-appears, so yes I’m assuming it is related to the CSS?

      Just FYI, I tested it with the latest Firefox and the text box is working. It only appears to be having an issue in Chrome for me.

      Cheers,
      Adam

      posted in Bug Reports
      R
      RipAU