• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. george1421
    3. Best
    • Profile
    • Following 1
    • Followers 64
    • Topics 113
    • Posts 15,301
    • Best 2,771
    • Controversial 0
    • Groups 2

    Best posts made by george1421

    • RE: Deploy Image

      @maximefog said in Deploy Image:

      it is mandatory to register the workstation

      This is not a requirement under certain conditions. There is a method I call “load and go”. It is a process that system builders use where once they load the OS on the target computer they never see the computer again. In this method you can not use the FOG Client for any of its function. The install process must be self contained or use a FOG post install script to make the install time adjustments to the target computer. Using this method you do not need to register the computer with FOG. Once the image is deployed to the target computer FOG forgets it ever saw this target computer. Once you have the master image setup as needed you deploy the image from the FOG iPXE menu “Deploy Image” menu. You never have to touch the FOG web ui for image deployment.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Fog stops at init.xz...18% and other percentages

      @bmick10 said in Fog stops at init.xz...18% and other percentages:

      So it will load to Fog stops at init.xz…and different % each time.

      This sounds like an iPXE issue, where its not loading FOS Linux’s virtual hard drive completely for some reason. Lets start out by having you rebuild/compile the latest version if iPXE using these instructions: https://forums.fogproject.org/topic/15826/updating-compiling-the-latest-version-of-ipxe Lets see if there is an update to iPXE that solves this issue.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Deploy image right after registration without a reboot

      @Tom-Elliott Thank you for the update. I should have looked at the code.

      So the OP needs to update the current curl call with this ?

          base64mac=$(echo $mac | base64)
          token=$(curl -Lks --data "mac=$base64mac" "${web}status/hostgetkey.php")
          curl -Lks -o /tmp/hinfo.txt --data "sysuuid=${sysuuid}&mac=$mac&hosttoken=${token}" "${web}service/hostinfo.php" -A ''
      

      To make it work now?

      posted in FOG Problems
      george1421G
      george1421
    • RE: Having main server automatically task storage node for imaging based off client IP/SUBNET

      @JamiesonCA092 I can’t really give you a solid solution because fog isn’t designed to work the way you want it with unregistered target computers.

      But I know how FOG works. There are 2 “hook” scripts. One is before imaging starts and one after the image push is complete. The bash script that is called before imaging starts is the postinit script. When this script runs all of the kernel parameters have been expanded to variables, including storageip value. This value as well as most others could be reset by this postinit script.

      I have a tutorial on a postinstall script that uses the IP address of the target computer to decide what OU the target computer will connect to. That mechanics of the bash script could be the basis to update the storage IP variable. I don’t know if it works, but if you are that deep into modifying the ipxe script, creating your own bash script shouldn’t be to complicated.

      Edit: Post on point. https://forums.fogproject.org/post/69725

      posted in FOG Problems
      george1421G
      george1421
    • RE: Having main server automatically task storage node for imaging based off client IP/SUBNET

      @JamiesonCA092 ok it shows you have some debugging skills, so I’ll add a few new tools into your toolbox.

      1. on the fos linux (target computer) when you schedule a task and tick the debug checkbox, when you pxe boot the target computer you will be dropped to the fos linux command prompt.
      2. You can start the imaging process in single step mode by simply keying in fog at the command prompt.
      3. The script will run until it hits a debugPause; command in the script. You can add that command in your custom script with echo statements to understand how your script is running. Pressing the enter key will cause the script to run again until the next debugPause command.
      4. At the fos linux command prompt if you get the ip address of the fos linux (target computer) with ip a s and then give root a password with the passwd command (make it simple like hello, it will be reset at the next reboot). Once you have those 2 bits of into you can use putty or ssh from a second computer to the fos linux computer for debugging. Using this method you don’t have to sit in front of the target computer plus you can copy and paste using the putty/ssh session.
      5. If you need to stop the fog script during hit ctrl-c to skip out of the script. At this point you can verify the environment, check the available variables, etc. When you are done looking around, then you can enter fog again to begin the imaging process once again. No reboot needed.
      6. In the fog script the kernel parameters sent to fos linux are converted to bash script variables in the functs.sh script between lines 9 and 13 https://github.com/FOGProject/fos/blob/0efdd68f1783a06f3214607fc313db50747fbc43/Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/funcs.sh#L9

      I’m pretty sure Wayne is right that the varialbles in the postinit script are local and will be erased when the script terminates. But I would test to be sure.

      One last hack I can think of is that you can hack the fog.mount script https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.mount Put the logic to decide the target’s IP address into that script. The concept of dynamically patching the fog.mount script can be found in this tutorial (which addressing the fog.man.reg script) https://forums.fogproject.org/topic/14278/creating-custom-hostname-default-for-fog-man-reg but the concept and actions are the same.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Track activity for unregistered hosts

      @DBCountMan In the post init or post install scripts the $mac variable contains the mac address of the target computer

      To get the ip address this script will work

      myip=`ip route get 8.8.8.8 | awk 'NR==1 {print $NF}' | cut -d "." -f1-2`;
      

      Getting the user id of who did it will be a bit harder since they never log into the web ui. The user ID and password they key in during the deploy image stays in ipxe and is not sent onto FOS Linux. I’d like to say that the username field can be trapped from iPXE and then pass that variable as a kernel parameter onto fos linux. Once that is done then the $username variable should exist in your fog scripts. Getting that info into the fog database is another challenge. In the post install script the /ntfs directory is mapped over to the fog servers /images/dev where you could append an echo statement into a text file.

      Understand I’m taking in programming pseudo code. But I see an path here and it should work.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Linux live bootable

      @cros I’m kind of spit balling here but your imgargs line especially around nfsroot doesn’t really follow what I expect.

      FWIW here is what I have in my guide for debian 11. (I really don’t keep up with current distros anymore)

      kernel tftp://${fog-ip}/os/debian/Server11.3/linux
      initrd tftp://${fog-ip}/os/debian/Server11.3/initrd.gz
      imgargs linux initrd=initrd.gz root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/os/debian/Server11.3/ locale=en_US.UTF-8 keyboard-configuration/layoutcode=us quiet splash ip=dhcp rw
      boot || goto MENU
      

      For me your imgargs line stands out as is your 192.168.7.5 server your fog server or a different server? If its your fog server you can make the line a bit more portable by using ${fog-ip} which will be replaced by the IP address of the fog server by iPXE. Secondly did you create an /nfs share on your fog server because that is not one of FOGs standard nfs shares. On the fog server you should be able to run the command showmount -e 127.0.0.1 to see the list of nfs shares on the fog server. In my imgarg command you can see I’m using /images/os which is in the path of /images on the fog server and /images is an NFS share.

      ref: https://forums.fogproject.org/post/150256

      posted in FOG Problems
      george1421G
      george1421
    • RE: FOG Very Slow to Deploy Image - Lenovo Neo 50Q Gen 4

      @Quintin-Giesbrecht said in FOG Very Slow to Deploy Image - Lenovo Neo 50Q Gen 4:

      Lenovo Neo 50Q Gen 4

      I’m with Tom here, I would go with the latest FOS Linux kernel with this new hardware. You didn’t happen to mention what version of the FOS Linux kernel you are using (FOG UI -> FOG Configuration -> Kernel Update). I would go with the latest 6.6.x or later kernel. This is the easiest and quickest way to see if it solves the problem. It would be useful to know what version is your current kernel too so if we see this issue again we can help the next guy.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Error PXE-E18 - Lenovo ThinkPad E16

      @jmeyer said in Error PXE-E18 - Lenovo ThinkPad E16:

      It’s now loading but terribly slow (average 6 Mb/s on a Gb link).

      What is loading slow iPXE or the image via partclone? I haven’t been following closely the issue but I think I saw that someone tried an earlier version of the FOS kernel, like in the 6.1 range and imaging on these current lenovos went at normal speeds. I don’t know what the linux developers did between 6.1 and 6.6 to cause this slowness. Have we identified what nic adapter is installed in these computers? We would need the hardware ID of the nic to research it.

      posted in FOG Problems
      george1421G
      george1421
    • RE: what USB can support iPXE boot

      @robertkwild Yes right now pxe booting issue is between uefi firmware and network adapter. Typically the hardware vendor will have a recommended usb adapter (typically hardware vendor branded $$) that supports pxe booting, where the driver for the usb adapter is built into uefi.

      I the imaging process once bzImage is loaded (FOS kernel) and you have a network issue then the issue with with the “FOG kernel”. You are not there yet in the booting process.

      posted in FOG Problems
      george1421G
      george1421
    • RE: iPXE fog boot menu error Could not boot: Results too large

      @Jias94 Where I’ve seen this before is in a custom fog menu. The menu id has a minus sign in it and ipxe is thinking its a command not an id. Somewhere around the choose command its getting hung up.

      So how do you find this? Using a web browser and access the ipxe menu at http://<fog_server_ip>/fog/service/boot.php You need to replace <fog_server_ip> with the correct ip address. Since you are messing with https, you may need to change that so. You should end up with a screen full of text that makes up the ipxe menu. Looks for things you have entered that have a minus sign. If you can’t find it post the entire content of the ipxe menu here and we will take a look for you. But I would focus your attention around the choose command, one of its entries as a dash where it thinks is an internal command to the menu

      posted in FOG Problems
      george1421G
      george1421
    • 1
    • 2
    • 135
    • 136
    • 137
    • 138
    • 139
    • 139 / 139