• Chainloading failed, hit 's'

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    S

    @dugi007 Did you get this solved? Do you still need further help on this?

  • Snapin creation (size of file)

    Solved
    5
    0 Votes
    5 Posts
    666 Views
    S

    @Foggy-0 Any news on this?

  • How to delete a MAC address from a Host

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    JJ FullmerJ

    @ajm2358 Is this a usb mac (or macs) that you use on devices that don’t have built-in lan?

    I have a powershell method for doing this via the api, but the full solution requires some infrastructure work to store the defined macs used for imaging somewhere you can get them. I embed them in an internal powershell module I use for provisioning. You may really just need one or 2 functions from this example and I also haven’t tested it working just copy paste. You would for sure need to install the module and connect to the api first. I took this from my module but I believe it should work once you have the module installed, imported, and connected.

    After a computer finishes imaging and provisioning, my last step is uses the powershell fogapi module (see the links in my signature for info on the module) to run

    $usbmacs = [pscustomobject]@{ mac = "00:00:00:00:00"; description = "mac description, I have these defined in a json, this is an inline example"; } $result = Remove-UsbMac -usbMacs.mac -hostname ($ENV:COMPUTERNAME);

    Then I make sure all the macs that are valid are present

    $physicalMacs = (get-netadapter | select-object -expand macaddress).replace("-",":") $fogHost = (Get-FogHost -hostName $ENV:COMPUTERNAME) $hostID = ($fogHost.id); $pendingFogmacs = Get-FogHostPendingMacs -hostID $hostID; $pendingFogmacs | ForEach-Object { $pendingMac = $_; if ($usbMacs.mac -notcontains $pendingMac.mac) { "Mac $pendingMac is pending and is not usbmac" | Out-Host; if ($physicalMacs -contains $pendingMac) { "Mac $($pendingMac.mac) is attached to this device, approving" | Out-Host; Approve-FogPendingMac -macObject $pendingMac; } else { if ($pendingMac.hostID -eq $hostID) { "Mac $($pendingMac.mac) is not attached to this device, removing it from Fog" | Out-Host Deny-FogPendingMac -macObject $pendingMac; } } } else { "Mac $($pendingMac.mac) is a usbmac, removing it from Fog" | Out-Host Deny-FogPendingMac -macObject $pendingMac; } } $fogMacs = Get-FogMacAddresses; $physicalMacs | ForEach-Object { $mac = $_; $fogMac = $fogmacs | Where-Object mac -eq $mac; if ($null -eq $fogMac) { if ($mac -notin $usbMacs.mac) { "$mac doesn't exist in fog, adding it for the host" | Out-Host; try { Add-FogHostMac -hostID $hostID -macAddress $_ -forceUpdate; } catch { Write-Warning "secondary mac address $($_) failed to add to host" } } else { "Usb mac $mac is attached, remove usb mac after provisioning!" | out-host; } } else { $otherHost = Get-FogHost -hostid $fogmac.hostId "Mac address $mac is already assigned to or pending for a different host, $($otherhost.name)" | out-host; } }

    Then I make sure I didn’t break the host on accident during that by unintentionally deleting all the macs

    try { $hostObj = (Get-FogHost -hostName $ENV:COMPUTERNAME) if (!$hostObj) { throw "host not found by name, trying by active mac instead" } } catch { $mac = get-activeMacAddress; $hostObj = Get-FogHost -macAddr $mac; } if ($hostObj.pending -ne '0') { Write-Verbose "The host is pending or not explicitly set to not pending in fog, adjust host to be approved be setting pending to '0'"; try { Reset-HostEncryption -fogHost $hostObj; $hostObj.pending = "0"; $jsonData = $hostObj | Select-Object id,pending | ConvertTo-Json; Update-FogObject -type object -coreObject host -IDofObject $hostObj.id -jsonData $jsonData; Restart-Service FOGService; } catch { Write-Verbose "There was an issue resetting host encryption or when running set-fogou -force. Host id is $($hostObj.id)" } }

    TL;DR

    Take a look at the Fog API Powershell Module especially the Remove-USBMac function and the Deny-FogPendingMac function. You can also use the above example for a more robust solution. The above solution also assumes its being run from the host in question, you can also manage any host remotely through the api.

  • access to Fog server system (not GUI)

    4
    0 Votes
    4 Posts
    636 Views
    S

    @hector-santiago Just be aware the FOG web UI default user is named fog and has nothing to do with the Linux service account fogproject. The later should not be messed with - therefore the message you see when you try to login to the server console using that account.

    By the way, which version of FOG do you use?

  • Host registration error.

    31
    0 Votes
    31 Posts
    9k Views
    T

    @george1421 Thanks for responding. I’ll go ahead and create a new thread. Thank you!

  • Install script fails during install on Ubuntu 22.04

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    S

    @dyacishyn Too bad. Hope you have a recent backup of the database and the images.

    Marking as solved as we know what was causing the described issue.

  • Image capture not loading on reboot

    Solved
    4
    0 Votes
    4 Posts
    723 Views
    G

    @Sebastian-Roth sorry i meant to click this one as the solution but now i cant figure out how to change it

  • PXE Boot help - Noob

    Unsolved
    5
    0 Votes
    5 Posts
    811 Views
    george1421G

    @TheBuff said in PXE Boot help - Noob:

    Might i also ask if their is currently any known solution to have fog work while secure boot is enabled?

    The only way is to create your own certificates, update the target computer’s supported certificates and then sign both ipxe.efi and bzImage with the certificates. So the short answer is yes there is a way. Is it more effort than its worth, that decision is up to you.

    I do have a tutorial on how to reconfigure your environment so you can secure boot using fog if you want to go in that direction. There are a number of steps but the difficulty level is not hard.

  • Trouble when i tryed to capture a image.

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    george1421G

    @LynnBerry On the first error.

    Either:

    let sysprep power off the computer when its done doing its thing. shutdown the computer with the command shutdown -s -t 0 disable fast boot

    This will solve the disk not being closed properly.

    In regards to the second error. On the fog server’s linux console key in sudo df -h and post the output here

  • Fog Server on a Container Station in Qnap

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    J

    @Hope1983

    22bc75f6-4c63-4066-91a4-ea303c76385b-image.png

    And for manual mount command used was :

    mount ip_of_the_qnap:/Directory_of_the_qnap /fog_directory/

    ex :

    mount 192.168.0.2:/Images /images2/

  • "could not complete tasking (/bin/fog.upload)"

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    D

    @george1421 It looks like it finally managed to update the database and proceed to the final moment of the capture. I did what you suggested and changed the FTP Path and I can’t believe it worked. bbe46e8b-69c1-47c8-8353-5d323f802234-image.png
    As you can see, my Image is there !
    eee79cf2-cf90-480b-91a2-bfb027cbb839-image.png

    Many Thanks for the help, I was this close of giving up for another solution, I was stuck for so long !

  • IPXE not loading

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    T

    @ikt_le Hi, not sure what system you are using for DHCP but if it is windows please have a look at the guide below
    https://wiki.fogproject.org/wiki/index.php/BIOS_and_UEFI_Co-Existence follow this, but please add the fog server IP to option 66. Also if you have subnets you need to complete this on each subnet scope on the dhcp server. Also if you have 2 DHCP servers you must do it on each one and on each subnet (unless is copies over properly between the servers, mine didn’t last time i set it up)

  • Fog hangs while trying to upload

    Solved
    27
    0 Votes
    27 Posts
    6k Views
    S

    @Scootframer Maybe the server’s disk is failing? Have you checked the disk’s SMART bearings yet?

  • Schedule cron-style not working

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    J

    @Sebastian-Roth Thanks a lot for helping me and good to know that it will work on the newest version of fog project

  • Persistent Groups Not Working - FOG 1.5.9.235

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    S

    @Sebastian-Roth said in Persistent Groups Not Working - FOG 1.5.9.235:

    Could you please do me a favor and update your Ubuntu 20.04.1 - FOG 1.5.9 - MySQL 10.3.34 setup to the latest dev-branch (which does not have the fix included yet)?

    Haha, that would not have triggered the issue because updating from 1.5.9 to dev-branch will not switch your DB table from MyISAM to InnoDB! Only new dev-branch installs are on InnoDB.

    I did some extensive testing and it’s definitely the table engine InnoDB causing the initially reported problem. So it’s definitely good we got that fixed and from my tests there does not seem to be an issue with the new code, even on MyISAM tables. So I think we are good to go with this.

  • Dual boot deployment error

    Unsolved
    1
    0 Votes
    1 Posts
    166 Views
    No one has replied
  • Unable to access FOG management web site

    Solved
    9
    0 Votes
    9 Posts
    933 Views
    D

    @Sebastian-Roth

    removing php-common partially fixed the issue i moved the installer to the /opt directory reran ./foginstall.sh and was able to access the site.

  • Booting Grub witch SPINWAI ERROR: AFECAL for cor 2 failurd

    Solved
    3
    0 Votes
    3 Posts
    428 Views
    R

    Hi Sebastian,

    thank you.

    You are right it might be a Mac-Problem. After resetting the Parameter RAM ist works like before.
    Many thanks
    Mathew

  • Getting a HTTP Error 500 when clicking Create Snapin

    Solved
    4
    0 Votes
    4 Posts
    237 Views
    S

    @phonebread Just pushed a fix to dev-branch. Please update.

  • Does FOG check free disk space before starting capture?

    Solved
    5
    0 Votes
    5 Posts
    774 Views
    S

    @abulhol said in Does FOG check free disk space before starting capture?:

    That’s nice - but as far as I understand, it still doesn’t protect against the new image needing 10GB, but there are only 9GB left.
    Right?

    Yes, right, it doesn’t protect from that. We discussed different “solutions” and thought we should better keep it simple. If you are keen you can still jump in and add a more thorough check - estimating how much size the new image will need. While it is possible to do it’s not that easy because images are being compressed and other variables can vary as well.

152

Online

12.3k

Users

17.4k

Topics

155.6k

Posts