• could not mount images folder (/bin/fog.upload)

    2
    0 Votes
    2 Posts
    419 Views
    No one has replied
  • PXE Boot HP laptop with USB adapter

    8
    0 Votes
    8 Posts
    4k Views
    S

    @tvigneau I suppose you have Windows installed on that machine you see rEFInd - Initializing... after the PXE menu, right?

    If there is no task scheduled for a host the FOG iPXE menu will try to chainload the operating system from the local disk for you. Some hardware works just find while others just don’t play nicely at all. There are a few things you can try:

    Edit this host’s settings in the web UI and try all the different settings for Host EFI Exit Type like SANBOOT, GRUB, EXIT… (obviously REFIND_EFI is what you see right now, being the default on UEFI systems) Some people tried to get their machines to chainload by playing with the options in /var/www/html/fog/service/ipxe/refind.conf - find hints on what to look at in the forums: 1, 2 If that doesn’t help either you can try using a different version of rEFInd. We still have 0.11.4 in use but here you find newer (and older version): https://sourceforge.net/projects/refind/files/ - You want to download refind-bin-0.x.y.zip, extract that and copy the file refind/refind_x64.efi from the archive to your FOG server and drop in /var/www/html/fog/service/ipxe/ (rename the original file before).
  • RancherOS and Fog

    16
    0 Votes
    16 Posts
    2k Views
    george1421G

    @uberthoth Now in regards to your iPXE menu configuration. If you want to see the context of what your menu item will run in open a browser to this url, http://<fog_server_ip/fog/service/ipxe/boot.php?mac=00:00:00:00:00 This is the text that creates the iPXE menu. Specifically look at the top of the document and see how the FOG server’s IP address is assigned to which variables. HINT: You may want to move the rancher boot files out of fog file path into a different one like /os instead of /fog.

  • FOG Upgrade - DHCP Error

    9
    0 Votes
    9 Posts
    1k Views
    S

    @Chad Good to hear you are up and running again!

    I somehow good hooked up to believe you run a Debian server, just because I saw osname='Debian' in the settings file. But both Ubuntu and Debian have this. So don’t worry. The installer should upgrade to PHP 7.4 in your case just as well.

  • The list all hosts tab takes a long time

    14
    0 Votes
    14 Posts
    2k Views
    george1421G

    @nicolas-bricet said in The list all hosts tab takes a long time:

    OK what we are going to do is two step process. The first step is to change (remote) some default startup values that will cause a conflict between mariadb, innodb, and a legacy date format that FOG uses.

    The query you ran SELECT @@GLOBAL.sql_mode global, @@SESSION.sql_mode session; shows us the current global settings of

    +-----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------- ---+ | global | session | +-----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------- ---+ | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTI ON | +-----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------- ---+

    What we are going to do is remove these startup values

    ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,>> NO_ZERO_IN_DATE,NO_ZERO_DATE,<< ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

    That will allow the smooth transition between the ISAM data engine and the much faster innodb data engine. Understand this transition may not have a real impact on query times, but we need to rule out some of the deficiencies in the ISAM data engine. Future FOG databases will come native with the innodb format.

    OK back on track.
    We need to find the configuration file for the mariadb (or mysql) server. There is a configuration file in th e/etc directory. The location varies between distributions. I don’t have a current ubuntu server available to give you the exact location so we will need to search for it.

    Run this command as root or sudo grep -R -e 'sql-mode' /etc/* We will look for a file that has an existing sql-mode key. Normally this query should return no files with this in it, but we check just to make sure. If it finds one then skip over the next paragraph.

    We need to find the config file that contans the [mysqld stanza. So as root or an elevated sudo grep -R -e '\[mysqld\]' /etc/* We are looking for a file that has [mysqld] section. Your search might find two files the default is /etc/my.cnf there may be a file in /etc/my.cnf.d directory. If there is one on /etc/my.cnf.d directory edit that one. If none are found we will stop here because we will need to create a config file. Let me know if you hit this roadblock.

    Now that you have found the right config file lets edit it. Under the [mysqld] section insert or edit the line to look like this.

    [mysqld] sql-mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"

    Save and exit the editor.

    Now you need to stop and restart mysql

    Once that is done log back into the mysql client program as root and rerun that query to ensure NO_ZERO_IN_DATE,NO_ZERO_DATE have been removed from the startup settings.

    The final command will convert the hosts table from ISAM format to innodb format

    Key this into the mysql client

    use fog; ALTER TABLE hosts ENGINE=InnoDB;

    It should take a few seconds to run.

    Now run the query

    SELECT TABLE_NAME,ENGINE FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'fog' and ENGINE = 'MyISAM';

    You should see the hosts table in innodb format.

    Now run your hosts management query in the web ui. What are the results.

    While we are at it (after you do the above test) we probably should convert the rest of the tables in case there are any joins going on in the queries and also to have a consistent db format.

    Run this query (copy and paste will be your friend here. You can paste the query in all in one go.

    ALTER TABLE LDAPServers ENGINE=InnoDB; ALTER TABLE clientUpdates ENGINE=InnoDB; ALTER TABLE dirCleaner ENGINE=InnoDB; ALTER TABLE globalSettings ENGINE=InnoDB; ALTER TABLE greenFog ENGINE=InnoDB; ALTER TABLE groupMembers ENGINE=InnoDB; ALTER TABLE groups ENGINE=InnoDB; ALTER TABLE history ENGINE=InnoDB; ALTER TABLE hookEvents ENGINE=InnoDB; ALTER TABLE hostAutoLogOut ENGINE=InnoDB; ALTER TABLE hostMAC ENGINE=InnoDB; ALTER TABLE hostScreenSettings ENGINE=InnoDB; ALTER TABLE hosts ENGINE=InnoDB; ALTER TABLE imageGroupAssoc ENGINE=InnoDB; ALTER TABLE imagePartitionTypes ENGINE=InnoDB; ALTER TABLE imageTypes ENGINE=InnoDB; ALTER TABLE images ENGINE=InnoDB; ALTER TABLE imagingLog ENGINE=InnoDB; ALTER TABLE inventory ENGINE=InnoDB; ALTER TABLE ipxeTable ENGINE=InnoDB; ALTER TABLE keySequence ENGINE=InnoDB; ALTER TABLE location ENGINE=InnoDB; ALTER TABLE locationAssoc ENGINE=InnoDB; ALTER TABLE moduleStatusByHost ENGINE=InnoDB; ALTER TABLE modules ENGINE=InnoDB; ALTER TABLE multicastSessions ENGINE=InnoDB; ALTER TABLE multicastSessionsAssoc ENGINE=InnoDB; ALTER TABLE nfsFailures ENGINE=InnoDB; ALTER TABLE nfsGroupMembers ENGINE=InnoDB; ALTER TABLE nfsGroups ENGINE=InnoDB; ALTER TABLE notifyEvents ENGINE=InnoDB; ALTER TABLE os ENGINE=InnoDB; ALTER TABLE oui ENGINE=InnoDB; ALTER TABLE plugins ENGINE=InnoDB; ALTER TABLE powerManagement ENGINE=InnoDB; ALTER TABLE printerAssoc ENGINE=InnoDB; ALTER TABLE printers ENGINE=InnoDB; ALTER TABLE pxeMenu ENGINE=InnoDB; ALTER TABLE scheduledTasks ENGINE=InnoDB; ALTER TABLE schemaVersion ENGINE=InnoDB; ALTER TABLE snapinAssoc ENGINE=InnoDB; ALTER TABLE snapinGroupAssoc ENGINE=InnoDB; ALTER TABLE snapinJobs ENGINE=InnoDB; ALTER TABLE snapinTasks ENGINE=InnoDB; ALTER TABLE snapins ENGINE=InnoDB; ALTER TABLE supportedOS ENGINE=InnoDB; ALTER TABLE taskLog ENGINE=InnoDB; ALTER TABLE taskStates ENGINE=InnoDB; ALTER TABLE taskTypes ENGINE=InnoDB; ALTER TABLE tasks ENGINE=InnoDB; ALTER TABLE userCleanup ENGINE=InnoDB; ALTER TABLE userTracking ENGINE=InnoDB; ALTER TABLE users ENGINE=InnoDB; ALTER TABLE virus ENGINE=InnoDB; ALTER TABLE wolbroadcast ENGINE=InnoDB;

    Now run the query again to see if I missed any tables.

    SELECT TABLE_NAME,ENGINE FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'fog' and ENGINE = 'MyISAM';

    If I missed any tables just create your own ALTER TABLE commands

    OK so why INNODB format over ISAM. There are many reasons but the most impactful is that ISAM has table locking on an update where INNODB only locks the row on an update. So when there is an update query for ISAM only one writer is allowed at a time for the entire table even if the second writer and the first writer are updating different rows in the table. INNODB only locks the row that is going to be changed leaving other processes to be able to write to other rows and move on. This change is most impactful when you have many FOG Client computers hitting the server every 5 minutes. SO since you are doing a read query when access the hosts via the web ui, this change may not have an impact at all. BUT we need to rule out ISAM as the performance drag on your system.

  • No configuration methods succeeded

    6
    0 Votes
    6 Posts
    2k Views
    S

    @wbilel There is an interesting hint in the new topic @jtappen opened: https://forums.fogproject.org/post/141287

    I’m sure I’ve seen your original error message too about no configuration methods. I can’t remember if this was solved via BIOS update - or if it was more switch-port related.

  • Fog for Dev - Save each capture in its own folder automatically.

    6
    0 Votes
    6 Posts
    775 Views
    S

    @wayne-workman said in Fog for Dev - Save each capture in its own folder automatically.:

    Research about FOG’s post download scripts.

    Sorry but those are only run on deploy, not on capture.

  • 'Target partition size(11 MB) is smaller than source(11 MB)' Sudden Issue

    4
    0 Votes
    4 Posts
    638 Views
    S

    @gbarron said in 'Target partition size(11 MB) is smaller than source(11 MB)' Sudden Issue:

    Thanks for the quick response and I 100% understand if we have to wait for logs to continue troubleshooting.

    Yeah sorry, can’t help you much without the partition layout files mentioned. Meanwhile can you take a picture of the error on screen and post that here. Just for reference. Sometimes there is something hidden in the screen that might help as well.

    You are right, it’s kinda strange this has worked before and now you get this error. Unfortunately my crystal ball runs out of energy… 😉

    I’m hoping to get access soon but technically I’m a temp right now so not sure.

    FOG is a hands on tool. Without access to the server via SSH your hands are pretty much tied up.

  • 0 Votes
    3 Posts
    573 Views
    G

    Hi

    I’ve just tested this an it worked without issues - Thank you. I will try to post the contents of those files shortly. My question is, is this new init file good to be made the default somehow?

  • FOG Failed Partition Issue

    19
    0 Votes
    19 Posts
    5k Views
    george1421G

    @imagingmaster21 IMO you have multiple things wrong here, all of them giving you a different error.

    I would nuke the fogproject git repo directory and reclone it from github then rerun the fog installer.

    Beyond that you need to confirm the FOG server ip address has not changed since fog was installed. You can do this by viewing the hidden config file /opt/fog/.fogsettings if that file contains a different IP address than is currently set you need to fix that too.

    Once you have all of that fixed then you need to ensure you have the 5.6.18 FOS Linux kernel installed.

    If you still have issues, open a new thread for each issue so we can keep the problems isolated.

  • update kernel problem

    7
    0 Votes
    7 Posts
    1k Views
    W

    @Sebastian Roth , thank you problem solved using your commands 👏

  • MD5 After Image Capture

    12
    0 Votes
    12 Posts
    2k Views
    george1421G

    @cyannella Ok here is an updated init that calculates the MD5 sum of the captured image file. https://drive.google.com/file/d/13eknbYjZhpnsbfi7B_JpVY7KRe_n2xTw/view?usp=sharing

    Download that file as init_md5.xz and copy it to /var/www/html/fog/service/ipxe directory on the fog server. It has a unique name so it will not overwrite anything FOG.

    Now take ONE host where you can recapture an image. Go into the host definition and for the host init field enter init_md5.xz and then save the settings. Configure a capture task and then recapture your image. For every d1pX.img file there should be a d1pX.md5 file that contains the md5 hash of the file.

    Just a note, a 16GB partition took about 15 seconds to calculate the md5 hash.

    Lets see how this runs in your environment.

  • FOG Print - Spooler

    2
    0 Votes
    2 Posts
    341 Views
    S

    @cedre2 We didn’t mean to ignore you question. Though printers is not an easy topic. The fog-client was developed by someone not being in the team anymore and while I am trying to work on this as good as I can I don’t have the equipment to even test printer stuff.

    Looking through the code I can see that currently the fog-client would only restart the printer spooler if a new printer would be added. From other situations I know that Windows 10 can be a real pain with updating printer information and you need to restart the spooler more often than not. Though I don’t think it’s a good idea to just do a restart of the spooler every time the fog-client looks at the printers.

    Not really sure what to do about this.

  • Database unavailable

    4
    0 Votes
    4 Posts
    476 Views
    S

    @julianc said in Database unavailable:

    The master node storage is my synology nas: 192.168.190.250

    Did that setup work before? Or did you setup this just now?

    Did you follow the tutorial to the point? Enabled FTP as well? Do you see the folder mentioned in the error message on you NAS in the images share?

  • Can capture but can´t deploy

    3
    0 Votes
    3 Posts
    390 Views
    george1421G

    @adrian-a since you are using a qnap device you might consider converting it into a FOG Storage node. You will give up some flexability but in a way you will make the qnap device the storage location for FOG. Here is an overview. https://forums.fogproject.org/topic/10973/add-a-nas-qnap-ts-231-as-a-storage-node-fog-v1-4

    Just one limitation, if you use a qnap device as a storage node AND have all of your data on the qnap device, FOG will not replicate these image files to other storage nodes. Only a full FOG server can become a master node in the storage group.

  • Boot winpe StorageNode

    Solved
    6
    0 Votes
    6 Posts
    838 Views
    D

    @deblau73 Hello,
    It’s perfect with set tftp-path tftp://${storage-ip}

    Thanks

  • Can't deploy image

    4
    0 Votes
    4 Posts
    501 Views
    J

    I had to run chkdsk a couple of times, thx for the help!

  • ipxe booting "waiting for the link to come up"

    Solved
    23
    0 Votes
    23 Posts
    7k Views
    K

    @sebastian-roth Well, ive done it already!

    Thanks both of you for your help! I could never been able to figure it out without you! Thanks!

  • Error when i upload image

    Solved
    6
    0 Votes
    6 Posts
    831 Views
    P

    problem solved
    thank a lot 🙂

  • Image USB drive

    2
    0 Votes
    2 Posts
    394 Views
    george1421G

    @jgeear Is there a question here? I read this as you are stating facts.

    Linux will not see any hard drive behind the intel RAID adapter. You must change it to ahci mode. Since the hard drive is not found FOG see the usb drive as a valid drive and will image it no problem.

157

Online

12.4k

Users

17.4k

Topics

155.9k

Posts