• Limiting the number of hosts registered

    8
    0 Votes
    8 Posts
    991 Views
    Tom ElliottT

    @sopinv I don’t understand the why.

    You can do a trigger in your database like this:

    DELIMITER // CREATE TRIGGER limit_rows_trigger AFTER INSERT ON your_table FOR EACH ROW BEGIN DECLARE row_count INT; SELECT COUNT(*) INTO row_count FROM your_table; IF row_count >= 1000 THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Row limit reached (1000 rows)'; END IF; END; // DELIMITER ;
  • API wake on lan

    10
    0 Votes
    10 Posts
    1k Views
    JJ FullmerJ

    @Lenain Just a little FYI.
    I don’t know when I’ll have time to test it out fully before putting it into production, but the idea of adding this to the module was not forgotten and I started a branch for it while I was working on some other bug fixes
    https://github.com/darksidemilk/FogApi/commit/03c0342cff759ef272a64bbb91cbb1b5999bab9c

  • Uninstall Fog Client

    6
    0 Votes
    6 Posts
    1k Views
    Tom ElliottT

    @Florent For removal of the FOG Client, a connection to the server is not needed.

    The only reason it’s needed during install is because it’s communicating to the fog server to get the certificates needed from the server. These certificates are not necessary to remove the software.

  • LDAP plugin

    7
    0 Votes
    7 Posts
    1k Views
    EazisE

    @Tom-Elliott Yes this resolves the issue.

  • Static IP adress for Wi-Fi interface using CSV

    Moved
    2
    0 Votes
    2 Posts
    282 Views
    george1421G

    @Numa09 First this looks like a DOS Batch file not a VBS file. That is maybe why its giving you an error with line 2.

    Second make sure that csv file is part of your snapin pack.

  • Snap-in: Run a powershell script prior to capture

    2
    0 Votes
    2 Posts
    701 Views
    J

    @DBCountMan said in Snap-in: Run a powershell script prior to capture:

    I have no experience with snapins and was wondering how can I use them to run a powershell script before rebooting to capture. I have a script that clears the Windows logs and in that script (right now) at the very end shuts the computer down, preparing it for manual capture. I have the FOG client installed on my test system.

    :EDIT: Sorry I think I figured it out.

    Might as well think out loud in case anyone else can use this info. I got the snapin to run my clearalllogs.ps1 script, now the next challenge is to have the script run then immediately after it reboots, start the capture.

    Run a PowerShell script prior to capture is a handy feature that allows you to automate tasks and streamline your workflow. Great addition to the toolset

  • Windows 10 capture trouble

    2
    0 Votes
    2 Posts
    435 Views
    S

    @Rizingknight72 Make sure you have fast boot disabled in Windows and so a clean shutdown before you start capturing.

  • FOG with TrueNAS on Proxmox Setup

    7
    0 Votes
    7 Posts
    3k Views
    O

    @george1421 Oh that makes sense I did guess that TrueNAS scale supports that too

  • systemrescuecd 5.1.2 not boot correctly from LAN

    3
    0 Votes
    3 Posts
    855 Views
    george1421G

    @tadziuuu Are you referring to booting bios based computers? If yes then use memdisk to load the cd iso image into memory. The one caveat here is that the iso disk must be less than 2GB in size since memdisk is a 32 bit application and there needs to be room in ram for the OS to boot from the iso image. In the same tutorial you found the parameters in your first post, search for memdisk to see what parameters you need.

  • Booting a host after deploying image

    2
    0 Votes
    2 Posts
    498 Views
    george1421G

    @joseheitor I can think of 2 possible conditions to cause this.

    The reboot process leaves the hardware in a strange state where iPXE can’t get an IP address on a warm start. Your network switch and spanning tree (if standard spanning tree) is enabled would cause this. Explanation Default Spanning tree takes 27 seconds to start forwarding network data after a network wink (as if the computer is rebooting). A warm start boots faster than a cold start so by the time iPXE gives up STP has not started forwarding data yet. Where at cold start the computer tests memory and checks hardware that isn’t needed on a warm start. But again this is only a guess as to the reason.

    One quick check for spanning tree is to put a dumb (cheap) un managed network switch between the building switch and pxe booting computer, see if that resolves the post imaging reboot. If it does then look into your network switch settings to enable fast-stp, port-fast, or RSTP (whatever your switch vendor calls it).

  • How to pass host-specific settings into host after deploying image

    5
    0 Votes
    5 Posts
    917 Views
    J

    @george1421 Fantastic! Many thanks.

  • API Auth and Specs

    4
    0 Votes
    4 Posts
    849 Views
    J

    Thanks for the information.

  • How to stop active tasks via terminal

    7
    0 Votes
    7 Posts
    1k Views
    I

    depending on the task if i recall correctly there is a folder in the TFTP or near by that has a file created with the MAC address as the tile name for that job.

    (Just saying 🙂 )

    Correct me if I’m wrong please.

  • Hard Drive not recognized after image is deployed

    3
    0 Votes
    3 Posts
    707 Views
    B

    @jnelly17 said in Hard Drive not recognized after image is deployed:

    HP Elite SFF 800 G9

    Turn off the Raid option in storage section, your PC will boot up!

  • Configure FOG Server with two NICs

    7
    0 Votes
    7 Posts
    1k Views
    D

    @george1421 I see the set fog-ip variable and set storage-ip variable. Could I set those two variables with IPs of different interfaces? So for example, the interface IP server ipxe will be the “set fog-ip” and the interface IP serving NFS will be the “set storage-ip” var. Would that work?

  • Hosts/Images buttons link to a blank page

    Locked
    3
    0 Votes
    3 Posts
    423 Views
    No one has replied
  • Limit disk space that FOG can use

    4
    0 Votes
    4 Posts
    764 Views
    S

    since you mentioned that you do not want to partition the volume, an alternative approach could involve creating a disk quota at the operating system level. Disk quotas are a feature provided by the operating system (in this case, the Hyper-V host) that allows you to set limits on the amount of disk space a specific user or group can consume.
    Set up the network share on the Hyper-V host where you will store the FOG images. Ensure the share is accessible from the FOG VM. Inside the FOG VM, mount the network share to the /images directory, which is where FOG stores the images. You can do this using the mount command or by adding an entry in /etc/fstab for persistent mounting. Configure disk quotas on the Hyper-V host for the user or group associated with the FOG VM. Set the quota limit to the desired amount of disk space you want FOG to use for images.
    Keep in mind that disk quotas are managed at the operating system level and are not specific to FOG. Therefore, this method will not provide real-time monitoring of disk usage within the FOG web interface. You will need to monitor the disk space usage separately on the Hyper-V host.

  • Multiple disk support

    4
    0 Votes
    4 Posts
    765 Views
    S

    @Evelyn09 said:

    Can I use Linux device file name, disk size, and disk serial number?

    Yes to all three if you use FOG 1.5.10.

  • NFS error

    6
    0 Votes
    6 Posts
    1k Views
    B

    Make sure your Proxmox server is set up with a static IP address on the physical network interface. For the virtual network, ensure that it is set up correctly, and all VMs and LXC containers are attached to this network. Assign static IP addresses to all your servers and clients to avoid conflicts with DHCP. Reserve these IP addresses in your DHCP server configuration (pfSense) to prevent accidental IP allocation conflicts. Ensure that your LXC container (running Ubuntu Server) has the correct network configuration. Use a bridged network interface so that the container can get its IP address directly from the physical network. Double-check that the LXC container’s network settings are consistent with your Proxmox virtual network setup.

  • Fog Imaging reports

    2
    0 Votes
    2 Posts
    557 Views
    Tom ElliottT

    @zaboxmaster The history of the report should still show the fact that it was imaged, though the links to the “host” element are done based on the existing of the physical host in the database.

    I believe this is known and could be relatively easily fixed by just planting the current device name along with the hostID.

    The reason that this isn’t done, however, is that it’d still be relying on a database entry, and there are cases where people deploy an image to a device that isn’t registered. What name do you use for that particular case?

227

Online

12.3k

Users

17.4k

Topics

155.8k

Posts