• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. rodluz
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 127
    • Best 29
    • Controversial 0
    • Groups 1

    Posts made by rodluz

    • FOS not mounting drive for post download scripts.

      Hello, I am having an issue when deploying one of my images. After Partclone is done, my post download scripts start, however it seems that the $part variable is not set correctly so the /ntfs directory only has Recovery and System Volume Information and is not mounting my ntfs partition.

      I haven’t changed anything of the mounting part from fog.postdownload.

      dots "Running post download scripts."
      
      mkdir /ntfs &>/dev/null
      ntfs-3g -o force,rw $part /ntfs
      
      echo "Mounting Device";
      
      if [ "$?" = 0 ]; then
              echo "Done"
              debugPause
              . ${postdownpath}getMachineModel
      ...
      ...
      

      I’m pretty sure it’s something with the specific image I am using, since I tried a different image and I don’t have that problem. I don’t know how my new image could be affecting this, but I didn’t do anything different for the “bad” image.

      I’m not sure what I should try to figure out what the issue is.
      I was able to mount the /dev/sda3 partition manually using ntfs-3g -o force,rw /dev/sda3 /ntfs

      posted in General
      R
      rodluz
    • RE: Passing variable from ipxe menu to FOS

      @george1421 Thanks so much! So what fixed it for me was just removing all the other iPXE commands. So now my parameters are:

      login
      kernel bzImage loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10..../fog/ consoleblank=0 nvme_core.default_ps_max_latency_us=0 rootfstype=ext4 mac=${net0/mac} ftp=10.... storage=10....:/images/ storageip=10.... irqpoll chkdsk=0 capone=1 type=down img=1909GoldenImage imgType=n imgPartitionType=all imgid=43 osid=9 imgFormat=0 auditMode=1
      imgfetch init.xz
      boot || menu
      

      This works perfectly for what I need.

      posted in General
      R
      rodluz
    • RE: Passing variable from ipxe menu to FOS

      @george1421 I did make a selection but maybe I made I mistake on the kernel command?
      Also where would I put the sanboot option?

      posted in General
      R
      rodluz
    • RE: Passing variable from ipxe menu to FOS

      @george1421 Thanks for the response. I am not super familiar with all the ipxe menu stuff so I am doing something wrong.

      My custom menu parameters are:

      login
      params
      param mac0 ${net0/mac}
      param arch ${arch}
      param username ${username}
      param password ${password}
      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
      kernel bzImage loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10..../fog/ consoleblank=0 nvme_core.default_ps_max_latency_us=0 rootfstype=ext4 mac= ftp=10.... storage=10....:/images/ storageip=10.... irqpoll chkdsk=0 capone=1 type=down img=1909GoldenImage imgType=n imgPartitionType=all imgid=43 osid=9 imgFormat=0 auditMode=1 isdebug=yes
      imgfetch init.xz
      boot
      

      I have the Menu Show with option set to All Hosts

      When I try to run it, I get this error:

      http://10..../fog/service/ipxe/boot.php... ok
      Booting from SAN device 0x80
      Boot from SAN device 0x80 failed: No such device (http://ipxe.org/2c222087)
      Could not boot: No such device (http://ipxe.org/2c222087)
      Could not boot: No such device (http://ipxe.org/2c222087)
      Chainloading failed, hit 's' for the iPXE shell: reboot in 10 seconds
      
      posted in General
      R
      rodluz
    • Passing variable from ipxe menu to FOS

      Hello, I am wondering if there is any way to pass a variable from a custom ipxe menu item that can then be read and used by FOS?
      I duplicated the fog.deployimage menu item and would want to pass a variable that would be used in my post download scripts.

      What I would want to do, is have my post download scripts only run some scripts depending if that variable is true/1 or false/0. So if I select that new menu item it would have the variable.

      posted in General
      R
      rodluz
    • RE: HostnameChanger Issue

      @Sebastian-Roth I know this thread is a bit old, but my question is exactly this thread.

      I am having the same issue as @jtappen. In my case, all of my hosts had the enforce checkbox selected on my prior FOG server. After I moved everything to a new server for some reason the checkboxes got unchecked.
      I tested with a few computers by clicking the checkbox and it works perfectly fine. My problem is that I have over 200 hosts so I would like to “checking ALL the checkboxes” by updating the database.

      Would anything break if I run UPDATE hosts SET hostEnforce='1'; to update all hosts in one blow?

      posted in FOG Problems
      R
      rodluz
    • RE: Post Download Scripts Included Variables

      @george1421 Ahh okay thank you!

      posted in General
      R
      rodluz
    • RE: Post Download Scripts Included Variables

      @george1421 Thank you so much that helps a lot! I’ll have to modify a few things and test it out.

      One question. What does the dots command do? I’ve tried to search what that command does in bash but I can’t find anything about it.

      EDIT: Also does the file have to be a .rek filetype or can it just be a txt?

      posted in General
      R
      rodluz
    • RE: Post Download Scripts Included Variables

      @george1421 I didn’t think of having a text file on the image itself, that is so simple to implement.
      I’ll try both things out next week when I am back at the office.

      Thank you so much!

      posted in General
      R
      rodluz
    • Post Download Scripts Included Variables

      Hello, I am trying to create a post download script to add drivers to my image.
      I have read many forum posts about this and have created my script. Most of those posts reference the $osid variable that can be used in these scripts.

      I have different drivers for different versions of Windows 10 (1909, 2004, 20H2, …) but I don’t see a way of figuring out what version I am imaging on a computer.
      So, I am thinking I could add the version number in the image name and add the logic to the script.
      That being said, is there a variable for the image name?
      I know that the images table in the database has and imageName field, but is there a variable for it that can be used in the post download scripts?

      Also, is there a link/file where I can see what other variables are available to the FOS at that moment?

      Thanks for the help!

      posted in General
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      @Sebastian-Roth Thank you so much for telling me about the Reset Encryption Data, that worked!

      If you could please let me know the way to do that for all the computers en mass, I would greatly appreciate it!

      posted in FOG Problems
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      @Sebastian-Roth @george1421 Thank you for your reply. I did do that from the link provided before submitting my last reply.

      This make me think that the issue I had with my old FOG server may have been a certificate issue.

      Since I copied the ssl certificate from the old FOG server and this still doesn’t work, does this mean I just have to redeploy the fog client from the new server on all the computers?

      If so, is there anything I must remove from the computer before doing that? (e.g. registry data)

      Once again, thank you so much for all your help!

      posted in FOG Problems
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      @george1421 Hello once again!
      I just finished setting up my new FOG server following the links that you provided.

      I am getting a RSA ERROR: Certificate validation failed on the computer I am using to test snapins. Also, the host’s status is unknown for all my computers. What would be the best way to fix this issue?
      My thought was to write a script to reinstall the FOG client on the computers through a GPO but maybe there is something easier to fix this?

      Once again thank you so much for all your help!

      posted in FOG Problems
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      @george1421 Hello once again.
      I have decided to just recreate my imaging server. I was able to get newer hardware so now is probably the best time.

      Would you be able to guide me in the right direction (with links) on how to setup my new server with FOG correctly and move over hosts, groups, images, and snapins?

      Thank you again for all your help!

      posted in FOG Problems
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      @george1421 Hello again. Thank you for your help.
      I tried both suggestions and sadly still no luck.

      I decided to install FOG 1.5.5 using a clean Ubuntu install on another computer just to see what happens. When changing the DHCP to use the IP of the fresh install machine, the rEFInd Initializing... screen goes away after 3 seconds (how it should work). Since that worked, I used the refind.conf and refind.efi files and copied them to my FOG server running 1.5.8 and it still didn’t work.

      Then, I installed FOG 1.5.8 to see if I get the same issue on the clean machine and I do. The rEFInd Initializing... screen doesn’t go away.

      I then replaced all the files in /var/www/fog/service/ipxe/ to use the ones from the 1.5.5 install and it still didn’t work but I saw an error saying that it was looking for a refind_x64.efi file. I renamed the refind.efi to refind_x64.efi and it now works.

      Since that worked, I did the exact same thing on my production FOG server (using the files from the clean install computer that did work) and I am still stuck on the same screen.

      Other than reinstalling the OS and FOG on my server, what else could I try to check since I guess the issue isn’t the actual refind.efi or refind.conf files?

      EDIT:
      Could it have to do with some authentication issue?

      posted in FOG Problems
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      @george1421 Hello, I just reverted it back to version 0.11.0 but sadly I’m still having the same issue.

      Any other ideas to try out?

      posted in FOG Problems
      R
      rodluz
    • RE: FOG update broke rEFInd exit

      Thank you for the reply.
      I have not been in the office until today so will try it and reply.

      posted in FOG Problems
      R
      rodluz
    • FOG update broke rEFInd exit

      Hello,
      I updated my FOG server from 1.5.4 to 1.5.8 a couple of weeks ago to be able to image some new laptops (HP Elitebook 850 G6) that were not imaging with the older version. After some google-ing all the answers pointed to the latest version supporting that laptop’s NVMe drive.

      I installed version 1.5.8 and was able to image the laptops. However, now I have an even bigger problem. All my lab computers that have the newer version of HP’s BIOS (the one that you can use the mouse on) get stuck at a rEFInd Initializing... screen. All those computers were working fine with FOG and rEFInd before upgrading to 1.5.8. The computers with the older BIOS type work fine. I am using UEFI for all my computers so my DHCP is setup to use ipxe.efi.
      Example:
      HP EliteDesk 800 G1 - Works
      HP EliteDesk 800 G2 - Doesn’t Work

      I have googled for a couple of weeks now trying different things but still no luck. I have tried everything from these links and more (I didn’t save all the links):
      https://forums.fogproject.org/topic/10773/fog-with-uefi-refind-error-failure-booting-legacy-bios-os
      https://forums.fogproject.org/topic/14189/fog-1-5-7-uefi-refind-boot-to-win-10

      I have tried downloading the newest version of refind_x64.efi and changing the Exit to Hard Drive Type(EFI) option in FOG’s iPXE Menu Settings.

      Maybe I just didn’t type the right combination of search terms and there is already a solution for this, if so, sorry for the duplicate.

      Thanks in advance!

      TL;DL:
      Updated from 1.5.4 to 1.5.8 now computers with newer BIOS getting stuck at rEFInd Initializing....

      posted in FOG Problems
      R
      rodluz
    • RE: 503 Error and stuck at "attempting to update database"

      @george1421 So I am pretty sure it is fixed now. I looked at the logs for php and found this error

      [20-Aug-2019 17:28:19] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
      

      So I changed the pm.max_children setting to 150, just to be sure, and it is now working perfectly!
      I re-imaged the same lab with 20 computers and monitored the server to see how many php-fpm services ran and I found that at one point I had 10 instances so bringing that up from 5 did help for sure.

      posted in FOG Problems
      R
      rodluz
    • RE: 503 Error and stuck at "attempting to update database"

      @Sebastian-Roth I restarted the service and the server too just to be sure.

      posted in FOG Problems
      R
      rodluz
    • 1 / 1