• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. mrowand
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 19
    • Groups 0

    mrowand

    @mrowand

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

    mrowand Unfollow Follow

    Latest posts made by mrowand

    • FOG 1.5.10.1698 - UI bugs

      Re: rocky linux 9.6 quirks & php 8

      new topic - porting images and metadata from 1.5.9 to 1.5.10

      @Tom-Elliott

      So I finally started needing to use this install as our old server is failing. Anyway, what I am running into a problem now deleting and using images which I transferred over from our 1.5.9 fog set up. I get errors on imaging these undefined property. I earlier had errors in the list all images directory - which updated each image manually - attemping to check in fails. - the exact line is in /var/www/html/fog/lib/fog/task.class.php

      I think there is something still missing in the images I ported over from out 1.5.9 set up. my colleague who uses this server loaded the metadata from the 1.5.9 set up and is where these errors started, When I try to delete a host or image - I get a ‘invalid’ login error. I have the firewall and SElinux disabled on this server as it is not on the internet.

      I am using bzimage version 6.12.35 I can add a host and PXE boot so that is not the issue. here. I tried to scrap all these images and just manually add all these reusing the image files I have but I can’t delete anything,

      Sure I can go full nuclear and reinstall everything from scratch but kinda want to avoid that.

      I spent some time with mysql trying to get around the 'invaild login" error issue I am running into.

      I can try to run the installer again so see if I can wipe this database and schema.

      Matt

      posted in Bug Reports
      M
      mrowand
    • RE: Dell Pro Slim

      @dimoura

      Hello!

      Do you have Secure Boot enabled?

      I worked with this Dell Machine about 6 months ago and don’t have it with me now.

      So here it goes.

      1. Ensure secure boot is disabled. You will need to re-enable it for Windows 11 to work.,
      2. You need to ensure your SATA mode setting is set to “AHCI”. - If you have “RAID” selected (which was the default from the Dell Machines I tried) it will not work.
      3. If you have legacy IPv4 PXE booting that would work best, newer computers no longer have a legacy PXE boot, but use UFEI IPv4 PXE booting. Check if that is enabled.

      Otherwise, check what bzImage files you are using. The bzImage files have the linux kernel drivers which I think I used the latest stable ones I could find. These are placed in /var./www/html/fog/service/ipxe

      There are 4 files in there which need to be there
      bzImage
      bzImage32
      init.zx
      init_32.zx

      Or others depending on what CPU architecture your machines use. These are available on the following URL
      https://github.com/FOGProject/fos/releases

      I found that some work better than others as the FOG project is maintaining their FOS releases and adding computers. It is possible that one you are using simply does not have the drivers for the PC you are using. I would back up these files before updating these to ensure your older machines can PXE when updating your FOS (fog OS).

      Matt

      posted in Hardware Compatibility
      M
      mrowand
    • RE: rocky linux 9.6 quirks & php 8

      @Tom-Elliott

      Thank you for getting back to me so fast.

      Definitely an issue with external firewalls or selinux. I had the install script bug on things mainly with any of the “remi” repos so is why I installed manually. any of these packages were installed with “appstream” and not “remi”

      in any event I am not using this server on the internet so have disabled the firewall service.

      For example the PHP I installed was 8.0.30 on the “appstream” repo and the remi repo has a 8.4.13. I think the version of PHP was giving me this problem. In order to get the default member FOG version button to work I had to comment out the line FOGCore::checkAuthAndCSRF in /var/www/html/fog/status/kernelvers.php - If I put the uncomment it out, the button then does not show the versions. So I can recreate it with my set up. when it doesn’t work, I checked pressing F12 in my browser in developer mode and can see that the “/var/www/html/fog/status/kernelvers.php” has a 403 forbidden error.

      I’ve attached a picture here:

      Screenshot From 2025-10-05 12-09-06.png

      Maybe a security setting (selinux and firewalld are both disabled) but since this is rocky possibly I need to do commands to permit these?

      Before I did this temp fix with the commenting out, I tested a new “/var/www/html/fog/status/kernelvers.php” file (after making a backup of the original to see if this could be fixed) and that broke the FOG Version information script (I get a “Failed to get latest info” - which as the server is not on the internet is fine, other than I would get in bold red letters “This is not the latest version of FOG before” - which is the only bug I seemed to have. Since I did this it is not a “FOG” issue per se, but could the version of php have something to do with it?

      I saved the file created for “/var/www/html/fog/status/kernelvers.php” (I saved it as a text file) which broke this function (i revered to the original as this was a test)

      kernelvers.txt

      This is the original file (saved as a text file) with the comment out the line FOGCore::checkAuthAndCSRF:

      kernelvers_orginal.txt

      As to my pxe problem. I removed the change in /etc/systemd/system/tftp.socket.d/override.conf and pxe is working fine now which is strange but I did do a lot of other steps in troubleshooting which I forget now which probably is what actually fixed it.

      I can provide the logs but in a nutshell I think the issues I have is that I installed different versions of the software than the installer does or selinux is still somehow blocking this.

      Matt

      posted in Bug Reports
      M
      mrowand
    • rocky linux 9.6 quirks & php 8

      @ rodluz @Tom-Elliott

      After some effort on the install script I got FOG working on my rocky 9.6 set up with a few caveats.

      1. I had to install many of the packages manually, like php, mysql, tftp due to selinux and firewalls (including hardware firewalls) so ended up with PHP 8.0.30-3 on this system. This version of PHP does not have a seperate JSON package.

      2. I installed 1.5.10.1698 from the stable branch. I plan on trying from the dev branch later to see if that will resolve my issues.

      3. I had to do some work to get tftp and pxe to work correctly. I’ll lay this out here.

      • created a symlink from /var/lib/tftpboot > /tftpboot

      • enabled and started the tftp service manually - systemctl enable tftp & systemctl start tftp

      • then created a file in /etc/systemd/system/tftp.socket.d/override.conf (after making a directory “/tftp.socket.d” and giving that directory proper ownership & permissions) with the following code:

      [Socket]
      ListenDatagram=69

      [Service]
      ExecStart=
      ExecStart=/usr/sbn/in.tftpf --foreground --secure /tftpboot

      • reloading the systemd service daemon - “systemctl daemon-reload” & “systemctl restart tftp.socket”
        The server would then pxeboot at least BIOS at this point.

      Now what doesn’t work is that:

      The Web UI currently seems to have php conflicts. I installed php-8.0.30-3 and the modules connected to this when installing the server. The web UI has a quirk on the FOG configuration page when you have a button for DefaultMember FOG Version: () it is not printing the version of FOG or the versions of bzimage or init.xz files and in checking using curl http://ip-address-of-server/fog/service/getversion.php - i ony see - 1.5.10.1698

      here is a picture of the error

      error.png

      This isn’t a big deal for me at the moment a I can capture and deploy an image. but I think there should be a way to fix it. I wanted to check if the php version is the issue or if I should use a dev branch (I kind of don’t want to)

      posted in Bug Reports
      M
      mrowand
    • RE: Installing fog on Rocky Linux 9.6

      @ rodluz

      Okay - So I got FOG working on my rocky 9.6 set up with a few caveats.

      1. I had to do some work to get tftp and pxe to work correctly.
      • created a symlink from /var/lib/tftpboot > /tftpboot

      • enabled and started the tftp service manually - systemctl enable tftp & systemctl start tftp

      • then created a file in /etc/systemd/system/tftp.socket.d/override.conf (after making a director /tftp.socket.d and giving that file permissions) with the following code:

      [Socket]
      ListenDatagram=69

      [Service]
      ExecStart=
      ExecStart=/usr/sbn/in.tftpf --foreground --secure /tftpboot

      • reloading the systemd service daemon - “systemctl daemon-reload” & “systemctl restart tftp.socket”

      The server would then pxeboot at least BIOS at this point.

      The Web UI currently seems to have php conflicts. I installed php-8.0.30-3 and the modules connected to this when installing the server. The web UI has a quirk on the FOG configuration page when you have a button for DefaultMember FOG Version: () it is not printing the version of FOG or the versions of bzimage or init.xz files and in checking using curl http://ip-address-of-server/fog/service/getversion.php - i ony see - 1.5.10.1698

      here is a picture of the error

      error.png

      posted in FOG Problems
      M
      mrowand
    • RE: Installing fog on Rocky Linux 9.6

      @ rodluz,

      Sorry I missed your newer post.

      Yeah I checked and it is enabled . I will disable it once I have this in production and off of the web as yes selinux will block aspects of FOG

      Just as a datum, I found FOG to work very well with redhat distros. I am not a fan of debian based distros due to package management and stablility - debian I can get working, ubuntu though…

      You can set this as resolved.

      Matt

      posted in FOG Problems
      M
      mrowand
    • RE: Installing fog on Rocky Linux 9.6

      @rodluz,

      Thank you for your time and answer.

      This is a fresh install of rocky on a bare metal server - I did have to install it first on a SATA drive, then copy everything and then install with chroot to manually add a raid controller driver for the ancient 3ware 9750 RAID controller on it. In any event I am up to the point where I downloaded everything now and just need to let the FOG installer set it all up. Unfortunately I don’t have a photo - but I can tell you the error was in the log file I sent you in my last post, which I am adding here.

      foginstall2.log

      There is an post I did about a year ago on downloading the FOS binaries. I tried using curl and would time out. I ended up downloading more current FOS binaries (bzimage, init.xz, etc) from github that I have running on a current production server as this works for the newish computers we have. I figured this is not the issue this time but I also solved that by running the installed with a --nofail Exit flag which would keep going if it failed to download it with the installer (as I manually put them in the location anyway)

      The server is on a connection that is firewalled and some things work and some things not, which remi is one of them although I can browse the site, I think the caching on that repo is the issue -maybe they should add a few mirrors. I can download the rpms manually from that repo - but that is a very painful and troublesome way to install things on linux.

      On the apptream question, this is installed off of the web, not the iso - i ran "sudo dnf php --disable-repo=remi --disable-repo=remi-safe --disable-repo=remi-modular and it would install php and the repo shown was “appstream” - maybe from centOS stream sources? IDK but php and the various modular files and so one installed in this fashion as did tftp-server, mysql and mysql-server, and several others I forgot now.

      yeah I have used FOG for about 10 years now and we love this project here as once we have it working it’s stable as a rock. The first install I did was on a fedora box back wheN it was version 20, then CentOS 7, recently about a year ago we set it up with rocky linux 8.9 (as CentOS died) to include newer features and bzimage files in order to use the newer model computers we need to image.

      Once I have this base install working, which at this point i

      Matt

      posted in FOG Problems
      M
      mrowand
    • RE: Installing fog on Rocky Linux 9.6

      mrowand
      5 minutes ago

      @rodluz

      Thank you for your return on my post. I don’t have a photo of this when it happened as I did a work around and manually installed these packages since. The logs from that attempt don’t seem to be in the /fogproject/bin directory anymore. When looking at ti, It looks like mainly an issue with the “remi-modular” repo. Which is probably my end actually. even when I had to install these manually with dnf, I had to disable that repo. so TFTP-SERVER, PHP and MYSQL and are from appstream repos from base rocky repos.

      I am giving the logs of my past two attempts. I deleted IP addresses from it for security.
      fog_error_1.5.10.1698.log foginstall2.log

      Anyway, since it skips it as not needed and still works I can ignore it. which is what I thought anyway. I did end up modifying a different script and deleted out “php-json” which you can see with the foglinstall2log. The first log also seems truncated sorry.

      I am getting a bug with the init.zx, bzimage files downloading, which happened to me the last time I installed fog. the last time I manually downloaded these files and placed them where they go and re-ran the script I think with a --skip-broken flag, or something like this… Not sure why that’s happening - I think it is firewall related.

      I usually update these anyway for newer computers.

      I am able to do work-arounds and get it to work, I just thought it odd.

      Sorry if not helpful.

      Regards, Matt

      posted in FOG Problems
      M
      mrowand
    • Installing fog on Rocky Linux 9.6

      Dear Developers,

      So I am installing FOG 1.5.10 on a server with Rocky Linux 9, from stable using git. This uses php8 by default, with a caveat that the package php-json is now included as a module in php-common. I checked and there is a module named json listed in php, just not a package. The installer is checking for this package and it seems to fail.

      I can’t seem to find any rpm for “php-json” in any repo or rpm search and the core installer called “common” has a module for json. what is the correct work around for this? I can find it for php7 (which I used the last time I installed FOG, on a rocky linux 8 system), or php5 (on an old centOS 7 system).

      in any event - the remi repo also seems to have cache issues at the moment going through firewalls so I can manually go to a rpmfind and download the rpms. I don’t see one for php-json.

      Anyway. I also had to manually install mysql, tftp, tftp-server, lftp, gcc, genisoimage and about 7 other packages “not found” by the installer, which are available in the bae repos… anyway. am I using a untested OS?

      Regards,

      Matt

      posted in FOG Problems
      M
      mrowand
    • RE: Having issues registering a new pc with Virtualbox vm running Fedora server.

      Dear Fannarino,

      First, what version of FOG are you using? I assume you are using this FOG server for DHCP?

      with your VM is the networking set to NAT for the VM or Bridged?

      First - Did the install script finish without any errors? I would check that as the script handles all the database stuff FOG needs. Check the Docs on installing FOG to ensure you did all the steps on the database.

      Since you are using a different network than that one you use for the internet, then you need to ensure all IP addresses for the interface you are using match. If you set these up with a script using a network for the internet and then changed it, then you will need to ensure all IP addresses match.

      Second - On your Fog Settings in the Web UI, check your various IP Address settings particularly
      Fog Configuration: TFTP Server
      Fog Configuration: Web Server
      Storage Management > DefaultMember

      Next, check in your Fedora VM, check the following.
      /etc/dhcp/dhcpd.conf
      /tftpboot/default.ipxe

      Then check your FOS, which is the bzimage files FOG uses to load the OS your computer is pxebooting. this might effect proper booting or execution of any task in FOG. You can check this in Fog Configuration, then click on the blue button that says "DefaultMember FOG Version: ( ) it will list two files.
      bzimage Version
      bzimage32 Version

      If this is too old you can replace these, which are located in redhat OSes (I use rocky linux myself) under /var/www/html/fog/service/ipxe. You would need to replace about 4 files which you can download from github, under fog project.

      These are the points I can think of.

      posted in FOG Problems
      M
      mrowand