• How to update Memtest86+ to 6.20

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    N

    @george1421

    Just tested it and it works correctly.
    Thank you for your effort.

    For other beginners with iPXE like me:
    This is the relevant documentation for the flow control.
    https://ipxe.org/scripting
    With examples at
    https://ipxe.org/examples

  • Time for a New FOG Tutorial

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    george1421G

    @marsface Well done finding the solution, the regex expression might need to be updated in the tutorial then. It could have been FOS linux changes since the tutorial was written, or a different way that the dell firmware is reporting the model. Either way well done.

  • UEFI

    Unsolved
    4
    0 Votes
    4 Posts
    839 Views
    george1421G

    @smazzola Well a question back to you is, what is your dhcp server? What is the manufacturer and model of the dhcp server. If its a linux or windows dhcp server then you are in luck. Here is a tutorial on how to create a dynamic dhcp server that will send the proper boot file based on the pxe booting computer. https://wiki.fogproject.org/wiki/index.php/BIOS_and_UEFI_Co-Existence

  • new version e2fsck ?

    Unsolved
    16
    0 Votes
    16 Posts
    6k Views
    W

    @dvorak said in new version e2fsck ?:

    Used answer from MarSoft found here (the last comment):
    https://github.com/NixOS/nixpkgs/issues/229450

    basically run :
    tune2fs -O ^orphan_file /dev/mydevice
    e2fsck -f /dev/mydevice

    and it is successfully capturing

    I can confirm that this works as well.
    I ran into this issue trying to take an image of an EndeavourOS virtual machine.
    On the EndeavourOS virtual machine i had to boot off a USB so that the host OS was unmounted and then ran the following commands from terminal:

    tune2fs -O ^orphan_file /dev/sda1 (Yours might be different, use lsblk to check)
    e2fsck -f /dev/sda1 (Yours might be different, use lsblk to check)

    After doing this i was able to take a system image with FOG 1.5.10.15

  • Batch-File from Snapin is just partially executed

    Unsolved
    4
    0 Votes
    4 Posts
    805 Views
    george1421G

    @Krautkopf said in Batch-File from Snapin is just partially executed:

    I think I’ll give it a try with your suggested solution of injecting the drivers with the post install script

    In my tutorial I deliver the drivers during the post deployment scripts so the drivers are already on the the computer when it boots for the first time into windows and then after oobe completes I have the pnputil command run from the setupcomplete.cmd. The setupcomplete.cmd batch file is run as part of windows oobe and is executed as SYSTEM user.

    Now in your case you have one snapin copy the files over and a second snapin install them. The fog client executes the snapins and the fog client runs as SYSTEM user. So in theory it should work.

    Here are some random thoughts on the issue

    One thing I do is use the start /wait "" <some_command> (so in this case the command would be start /wait "" pnputil.exe /add-driver “C:\Drivers\*.inf” /subdirs /install >>c:\drivers.bat hint: the 2 double quotes are needed to work around a quirk in the start program) to start a program and then wait for its execution before going on to the next step in the batch file. I’ve ran into situations where a batch file will spawn an application and then not wait before going to the next line in the batch file.

    Its strange that you are not getting “anything” from the pnputil program. If you log into this computer and run this batch file does it work?

    Is it possible that the path variable is not being used during a fog client snapin install where you need to provide the full path to the pnputil.exe program for it to be called.

    Another check you might do in this batch file is verify a key or specific file exists in the drivers directory to confirm that the drivers are installed before this batch file runs, or at least log that it found the drivers.

    Why not combine the driver copy and uncompressing with this script to install the pnputil command. By using the start /wait command you can ensure the execution is sequentially.

  • 0 Votes
    1 Posts
    237 Views
    No one has replied
  • PHP 8 Issues with LDAP account or unknown accounts

    Unsolved
    1
    0 Votes
    1 Posts
    365 Views
    No one has replied
  • Error no such file or directory

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    george1421G

    @abdel The error message indicates that no pxe boot information is making it to the target computer. Please try to pxe boot with a physical computer. For this test you don’t need to do anything other than get to the fog ipxe menu. Make sure when you pxe boot a physical computer you know if its in bios or uefi mode, because the value entered in dhcp option 67 is specific to the pxe booting computer. For bios computers you need undionly.kpxe in option 67 and for uefi computers you will need ipxe.efi in dhcp option 67.

  • Here's the picture

    Unsolved
    1
    0 Votes
    1 Posts
    245 Views
    No one has replied
  • How to rebuild the FOG Settings -> Genral Settings value

    Unsolved
    4
    0 Votes
    4 Posts
    673 Views
    F

    @Tom-Elliott Thank you for your time. I will look at that. With a backup, I may try it just to see. Current vValue in schemaVersion is 259.

    Years back, more than 10 years, ( Yes, long time user, Seems like .26 was my first but definitly by .32 ), I had something similar happen and it was obvious what field was corrupt because when it hit that point in the display of the web page we got garbage.

    For this case, I do not have my notes at home but one of the records value when displayed in mysql was about 20 pages of stuff. I recall it was one the the paths and should have been 10 to 15 characters. Most of the rows settingValue in the globalSettings table were empty. I was trying to update the FOG_MEMORY_LIMIT in the Web Gui when I had an issue with the save. After a couple of tries it saved the 384 number but the other values were missing.

    What I have done is go through each row and replace it with either the older backup value or what I thought it should be. Tonight, I was just correcting the two rows with the IP addresses because of the wrong value discovered with today’s test.

    My old backup had the values for MINIG and the new table did not 🙂

    Right now production is a concern and time is short. The web GUI is working again. I will need to test tonight’s changes for the IP address. Today’s test the screen was still red but it had the wrong IP address for the tftp and web server and may need to work on the PXE menu. I have some pxe menu options that were not fully moved over to the newer advanced options that are in settingID=74.

    As always lesson learned, consistent backups and get the box updated. This is a xen VM and I have another FOG named newFOG but I did not compare values yet or check what version. In the past I would make a copy and upgrade the copy.

  • Can't run chown -R fogproject:root /images/

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    G

    @JJ-Fullmer Okay then, i’ll go for that ! For the moment i’m trying to test my fog server without the nas but when everything will be okay i will setup like you said. Thank you for your help !

  • FOG dislikes 4-ports NIC card !!!

    Unsolved
    2
    0 Votes
    2 Posts
    365 Views
    S

    In replacing net 0 by net4 in “param mac0 ${net0/mac}” Fog is not bugging.
    But I don’t find how to inhibit the linking-up of net0, net1, net2 and net3 to directly link-up to net4…

    #!ipxe
    cpuid --ext 29 && set arch x86_64 || set arch ${buildarch}
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param platform ${platform}
    param product ${product}
    param manufacturer ${product}
    param ipxever ${version}
    param filename ${filename}
    param sysuuid ${uuid}
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :bootme
    chain

  • Need help with new FOG server installation and setup (PXE, image creation)

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    george1421G

    @oz-agoston said in Need help with new FOG server installation and setup (PXE, image creation):

    Unfortunately our bosses wouldn’t want us to use the windows DHCP server for the FOG server to avoid possible network problems.

    We have solutions you can use where you don’t or can’t update your primary dhcp server. You don’t necessarily need to setup an isolated network. Depending on your deployment your target computers may need access to AD during deployment, where an isolated network might cause a problem.

    In cases where you can’t/don’t want to update your primary dhcp server you can install dnsmasq onto your fog server to provide pxe boot information only to the target computers. It takes about 10 minutes to install dnsmasq using this configuration: https://forums.fogproject.org/topic/12796/installing-dnsmasq-on-your-fog-server

    Now just be aware that dnsmasq (as well as dhcp) only works on local vlan/subnet because dnsmaq as well as dhcp uses broadcast messaging. So right there dnsmasq pxe boot information will be localized to the current subnet where the fog server is installed. If you want to pxe boot on another subnet where the FOG server is not, you will need to update your network’s router and add the FOG server’s IP address to the list of dhcp servers in the dhcp-helper/dhcp-relay service. This will allow dnsmasq to hear pxe booting from other subnets. One of the many advantages of dnsmasq running on the FOG server is that if the fog server is off-line no pxe boot information will be sent to the network.

  • Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

    Unsolved
    4
    0 Votes
    4 Posts
    779 Views
    G

    @gabrielchun said in Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0):

    @george1421 Fiz isso e não deu certo.
    Instalei esses 2 que estão expandidos, pois são os que contém o “bzImage”.
    MicrosoftTeams-image (2).png

    Tentei com a seguinte configuração no Host, tentei também limpo sem nada na descrição para testar, sem esse “bzImage” e sem o “noapci=1”
    MicrosoftTeams-image (3).png

    Como está dentro do meu fog:
    MicrosoftTeams-image (4).png

    Agora carrega o bzImage mas ainda da o erro:
    MicrosoftTeams-image (5).png

  • Not a Fog problem, but solution ?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    george1421G

    @Cire3 said in Not a Fog problem, but solution ?:

    Carbon X1 Gen 7 just returns to boot menu after Downloading NBP file

    Check secure boot is off and if the proper boot loader is being sent to the target computer.

    You might use a witness computer on same subnet as the pxe booting computer. Use a capture mask of port 67 or port 68 or display filter of bootp Start the capture, pxe boot to error and then stop the capture. You will see the DORA process (discover, offer, request, ack/nack). Look at the offer packet this is coming from the dhcp server to the target computer. Look to see if both the ethernet header (bootp part) has next-server of IP address of fog server and boot-file as the proper boot loader name. Now confirm that dhcp options 66 and 67 are set properly. Its up to the pxe boot firmware vendor to decide to use bootp fields or dhcp option fields to locate the boot information. If you grab the pcap I can look at it for you if you get lost or not sure.

  • DHCP-PXE booting process problem with BIOS+UEFI computers simultaneously

    2
    0 Votes
    2 Posts
    679 Views
    R

    Looks like you are having issue with TFTP. With recent firewalld, you have to have some mechanism for inter-zone traffic. I’m not sure if the one on CentOS 7 is covered. Also, you missed to show the zones of your interfaces.

    I have these on my setup where the storage server has 3 interfaces serving diskless clients via iscsi:

    For my external zone:

    [root@san ~]# ip -4 addr ls xenbr0 6: xenbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.168.0.33/27 brd 192.168.0.63 scope global dynamic noprefixroute xenbr0 valid_lft 3181sec preferred_lft 3181sec [root@san ~]# [root@san ~]# firewall-cmd --get-zone-of-interface=xenbr0 external [root@san ~]# firewall-cmd --zone=external --list-services dhcp http https iscsi-target samba ssh tftp

    And this is my internal zone

    [root@san ~]# ip -4 addr ls xenbr10 7: xenbr10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 inet 192.168.10.1/24 brd 192.168.10.255 scope global noprefixroute xenbr10 valid_lft forever preferred_lft forever [root@san ~]# [root@san ~]# firewall-cmd --get-zone-of-interface=xenbr10 internal [root@san ~]# firewall-cmd --zone=internal --list-services dhcp http https iscsi-target postgresql samba ssh tftp

    I have these firewalld rule to enable the inter-zone traffic:

    [root@san ~]# cat firewalld.txt firewall-cmd --new-policy NAT_int_to_ext --permanent firewall-cmd --permanent --policy NAT_int_to_ext --add-ingress-zone internal firewall-cmd --permanent --policy NAT_int_to_ext --add-egress-zone external firewall-cmd --permanent --policy NAT_int_to_ext --set-target ACCEPT

    Finally, I test things out from one of my vms and tried to can grab a file over tftp

    user@debian:~$ ip -4 addr ls virbr0 5: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 inet 192.168.10.15/24 brd 192.168.10.255 scope global dynamic virbr0 valid_lft 2111sec preferred_lft 2111sec user@debian:~$ user@debian:~$ tftp 192.168.10.1 -vc get ipxe.d/roms/undionly.kpxe Connected to 192.168.10.1 (192.168.10.1), port 69 getting from 192.168.10.1:ipxe.d/roms/undionly.kpxe to undionly.kpxe [netascii] Received 75436 bytes in 0.6 seconds [928658 bit/s] user@debian:~$ ls -lh undionly.kpxe -rw-r--r-- 1 user user 74K Dec 12 10:25 undionly.kpxe
  • How to present different boot menu for Legacy BIOS clients and UEFI clients

    Unsolved
    3
    0 Votes
    3 Posts
    738 Views
    Y

    @george1421 Thank you for the response and the pointer to previous thread on examples of how to branch the iPXE menu with the platform option. With this info, I am thinking along the lines of customizing the default.ipxe to present different menu based on the platform field. I will explore this method and see how far I can take it on presenting separate menu for legacy vs UEFI clients.

  • Could not mount images folder (/bin/fog.download)

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    S

    @SOSF2 OK I update this exports file with the 2 new location and it’s working ! Thanks. I thinking that this file was not updated with a new ./installfog.sh but it was…

  • Accidently deleted Admin User

    Unsolved
    3
    0 Votes
    3 Posts
    441 Views
    Cire3C

    I believe a reinstall would do the same no ?

  • Unable to create host through API

    Unsolved
    2
    1 Votes
    2 Posts
    421 Views
    JJ FullmerJ

    @cornycopia Hi!
    Are you familiar with powershell at all? If not, it’s too hard to learn,
    I have made a powershell module to help with managing these things (see my signature for more links)

    For example there’s a command to make a new fog host https://fogapi.readthedocs.io/en/latest/commands/New-FogHost/
    I would recommend giving that a go.

    That said, let’s take a look at why this isn’t working

    The first issue I see with your body is the macs need to be an array
    You might also have to have the modules param defined in the body.
    In my PowerShell function I have a function to get all the modules and I filter it to the default ones so that the behavior is the same as when you add a host in the gui instead of creating a host with nothing in it.
    https://fogapi.readthedocs.io/en/latest/commands/Get-FogModules/

    Here’s a simplified table of that output, I think the ids are always the same in all installs, but they could be unique to your install

    id name -- ---- 1 Directory Cleaner 2 User Cleanup 3 Display Manager 4 Auto Log Out 5 Green FOG 6 Snapins 7 Client Updater 8 Host Registration 9 Hostname Changer 10 Printer Manager 11 Task Reboot 12 User Tracker 13 Power Management

    Anyway, here’s an example of a json body for creating a host with the default service modules enabled (these are my defaults, you may have different ones configured)

    { "macs": [ "A4:BF:01:6E:E4:F2" ], "name": "demo", "modules": [ "7", "9", "13", "6", "11", "2", "12" ] }

209

Online

12.4k

Users

17.4k

Topics

155.9k

Posts