• How to: Make a simple snapin-Start to finish

    36
    1 Votes
    36 Posts
    63k Views
    B

    @Bigredcherokee

    Okay think I found my own fix.

    The package .exe file must contain an application manifest, i.e. an XML file with special instructions. All UAC compliant applications should have a requested execution level added to the application manifest. Requested execution levels allow the system to know the specific privileges required for a package.

    Sorry to bring up an old post.

  • FOG Debian and SVN

    2
    0 Votes
    2 Posts
    1k Views
    Wayne WorkmanW

    You should be able to install a clean copy of FOG Trunk straight away on Debian 8.1 without any sort of prior installation.

    The @Developers will need to answer your storage node question because I’m unsure.

  • [SCRIPT] FOG tools

    11
    3 Votes
    11 Posts
    6k Views
    Wayne WorkmanW

    Bumping this thread.

  • Would like to (co-)write/develop a "decent" tutorial.

    7
  • WiKi To-Do List

    1
    0 Votes
    1 Posts
    974 Views
    No one has replied
  • More compression testing!

    10
    3 Votes
    10 Posts
    7k Views
    JunkhackerJ

    @DevinR said:

    FOG server (1.2.0)

    I would love to see the addition of performance stats after an upgrade to trunk.
    (if deployment time is a big concern of yours, you’ll like what you find after the upgrade)

  • Mobile FOG Laptop

    3
    0 Votes
    3 Posts
    2k Views
    sudburrS

    In our environment, we have:

    centralized DHCP, DNS 80+ sites each site has its own subnet each subnet has a PXE setting for an IP reservation for one universal MAC address we have 17 desktop and 4 mobile FOG servers

    What I’ve built and will slowly deploy over what we currently have is:

    Windows Server 2012 R2 Update 1 or Windows 8.1 Update 1 running Hyper-V

    Hyper V machine consists of 2 (mobile systems) or 3 (desktop systems) virtual HDD (.vhdx)

    OS.vhdx (Debian8 + Fog), two storage nodes: images.vhdx (DefaultMember/images), the optional other.vhdx (other/images)

    A script is called as a job from rc.local to run at every powerup of the VM.

    This script contains a while/do/done to wait for an IP address. Why wait? If there was a power failure at a site, the server will be up long before the switches, and wouldn’t be able to reach our centralized DHCP. So it waits until …

    Once an IP is found, it changes the IP used in 3 MySQL entries, the storage nodes and two files (.fogsettings, default.ipxe); then restarts tftpd-hpa, mysql, fog and apache2 services to recognize the new IP address.

    Any one of these dynamic FOG servers can be powered up at any site and will work without intervention. Worst case, it needs to be rebooted once.

    To put the icing on the cake, I have another small script that can be run by the administrator that will change the hostname at all levels in one go if desired.

    Images are separated into mandatory Approved images (DefaultMember/images.vhdx) available for every site, and site-specific (other) images created centrally or by the site’s technician.

    When I bundle up a new wave of Approved Images, I can replace the entire images.vhdx, update the VM pointers without affecting the site-specific .VHDX, and we’re good.

    I can also centrally manage the host OS and Virtual Machines through Hyper-V Manager .

    … but that’s our environment. 😎

    The following meat and potatoes is all taken out of context (I do a lot more) but is in order from my FOG installation recipe.

    This Code Paste destroys/recreates the rc.local file (sudo su first of course)

    cp -f /etc/rc.local /etc/rc.local.old && echo '#!/bin/sh -e' > /etc/rc.local && echo '#' >> /etc/rc.local && echo '# rc.local' >> /etc/rc.local && echo '#' >> /etc/rc.local && echo '# This script is executed at the end of each multiuser runlevel.' >> /etc/rc.local && echo '# Make sure that the script will "exit 0" on success or any other' >> /etc/rc.local && echo '# value on error.' >> /etc/rc.local && echo '#' >> /etc/rc.local && echo '# In order to enable or disable this script just change the execution' >> /etc/rc.local && echo '# bits.' >> /etc/rc.local && echo '#' >> /etc/rc.local && echo '# By default this script does nothing.' >> /etc/rc.local && echo ' ' >> /etc/rc.local && echo 'make_fog_portable &' >> /etc/rc.local && echo ' ' >> /etc/rc.local && echo 'exit 0' >> /etc/rc.local && chmod 755 /etc/rc.local &&

    Create the make_fog_portable job script called by rc.local

    echo '#!/bin/bash' > /bin/make_fog_portable && echo '#' >> /bin/make_fog_portable && echo '# make_fog_portable &' >> /bin/make_fog_portable && echo '#' >> /bin/make_fog_portable && echo '# This script is expected to be run as a job from /etc/rc.local' >> /bin/make_fog_portable && echo '# It will wait until an IP address is found, then use that IP' >> /bin/make_fog_portable && echo '# address to configure the FOG Server for that site.' >> /bin/make_fog_portable && echo '#' >> /bin/make_fog_portable && echo ' ' >> /bin/make_fog_portable && echo 'exit 0' >> /bin/make_fog_portable && chmod 755 /bin/make_fog_portable && vim /bin/make_fog_portable

    Then you paste this in before exit 0:

    # Wait for an IP address IP=`ip addr list eth0 | grep "inet " |cut -d" " -f6|cut -d/ -f1` while [ -z $IP ] do echo "Waiting :30 for an IP Address" > /dev/kmsg sleep 30 IP=`ip addr list eth0 | grep "inet " |cut -d" " -f6|cut -d/ -f1` done # Make FOG Server Portable sleep 6 echo "Updating IP address for FOG_TFTP_HOST to be $IP [`date`]" > /dev/kmsg mysql --user=root -p<password> -e "UPDATE \`globalSettings\` SET \`settingValue\` = '$IP' WHERE \`settingKey\` ='FOG_TFTP_HOST';" fog echo "Updating IP address for FOG_WEB_HOST to be $IP [`date`]" > /dev/kmsg mysql --user=root -p<password> -e "UPDATE \`globalSettings\` SET \`settingValue\` = '$IP' WHERE \`settingKey\` ='FOG_WEB_HOST';" fog echo "Updating IP address for FOG_WOL_HOST to be $IP [`date`]" > /dev/kmsg mysql --user=root -p<password> -e "UPDATE \`globalSettings\` SET \`settingValue\` = '$IP' WHERE \`settingKey\` ='FOG_WOL_HOST';" fog echo "Updating IP address for Storage Node DefaultMember to be $IP [`date`]" > /dev/kmsg mysql --user=root -p<password> -e "UPDATE \`nfsGroupMembers\` SET \`ngmHostname\` = '$IP' WHERE \`ngmMemberName\` ='DefaultMember';" fog echo "Updating IP address for Storage Node other to be $IP [`date`]" > /dev/kmsg mysql --user=root -p<password> -e "UPDATE \`nfsGroupMembers\` SET \`ngmHostname\` = '$IP' WHERE \`ngmMemberName\` ='other';" fog echo "Updating IP address in file .fogsettings to be $IP [`date`]" > /dev/kmsg sed -i "s;ipaddress=\".*\";ipaddress=\"$IP\";" /opt/fog/.fogsettings echo "Updating IP address in file default.ipxe to be $IP [`date`]" > /dev/kmsg sed -i "s;http://\([^/]\+\)/;http://$IP/;" /tftpboot/default.ipxe sed -i "s;http:///;http://$IP/;" /tftpboot/default.ipxe # Restart Critical FOG Services echo "Restarting Critical FOG Services [`date`]" > /dev/kmsg systemctl restart tftp* mysql* FOG* apache* echo "Sleeping 30 seconds before releasing script [`date`]" > /dev/kmsg sleep 30 echo "releasing script [`date`]" > /dev/kmsg

    I also perform this on the OS:

    cd /var/www/fog/lib/fog && cp -f Config.class.php Config.class.php.old && sed -i "s;\".*\..*\..*\..*\";\$_SERVER['SERVER_ADDR'];" Config.class.php

    If it’s a Ubuntu system I would also do:

    echo manual >> tee /etc/init/mysql.override
  • FOG menu options once booted from network.

    5
    0 Votes
    5 Posts
    2k Views
    DragnousD

    @Scott-Rollins said:

    Just started with FOG and currently loving it but…

    Is there a way to edit the menu so that I can pick a image to load?

    I ask this because I have to image about 10 different dell optiplex models. Right now I have a “current” image i use for all new pcs that come in and need to get staged then installed, but we have a pile of older ones I wipe then image. The current ones get a quick reg, then reboot and gest imaged and i love that, but I was wondering if it was possible to boot to a menu where I could select the image from a list of available images. Right now i need to quick reg the old pc, then log into fog, find it in the host list, change its default image reboot old mahcine. I would love to do it all from the client itself.

    Thank you!

    Since you just started with FOG I understand the confusion…
    What you need to do is Perform full host registration and the 2nd input asks which image to specify and from there you can type “?” to see the list and their id numbers.

    than at the end will ask if you want to image the machine now just yep Y and when it reboots make sure to Network boot again and it will start the imaging.

    Another options is to use the groups.
    Do the same setup but when it ask for a group just type ? and find a group you have made and than continue. Once complete just select NO to image machine and once it has rebooted turn the machine off. now you can start a Multicast for that group and now when you network boot it will start the imaging…

  • Compression tests

    5
    1 Votes
    5 Posts
    4k Views
    D

    So I did my own testing and I don’t find there to be much difference for downloading, but compression level does seem to increase uploading time significantly. If interested, my post is titled more compression testing.

  • Setting up Fog 0.32, 1.01, or 1.2 on CentOS 6.4-6.6!

    4
    0 Votes
    4 Posts
    3k Views
    Wayne WorkmanW

    @sagar

    When the forums were updated, not all formatting carried over correctly.

    You can find good documentation in our WiKi on installing FOG.

    https://wiki.fogproject.org/wiki/index.php/FOGUserGuide#Installing_FOG

  • Troubleshoot NFS

    4
    0 Votes
    4 Posts
    1k Views
    Wayne WorkmanW

    Tom has pointed out that my Ubuntu stuff for RPC / portmap is very wrong/old…

    I am not a Ubuntu person. Whoever has editing permissions and knows Ubuntu, have at it.

  • FOG server: How to set the DHCP?

    4
  • Troubleshoot_FTP

    4
    0 Votes
    4 Posts
    2k Views
    Wayne WorkmanW

    I’ll do the same for the Troubleshoot TFTP article.

  • Simple Redirect to login screen.

    2
    0 Votes
    2 Posts
    1k Views
    sudburrS

    We use our own DNS to create:

    a uniquely named static Host (A) record for the Fog server’s IP address in the Forward Lookup Zone of the DNS

    … then add the following command during configuration of the server post-Fog install:

    if [ -f /var/www/html/index.html ]; then mv -u /var/www/html/index.html /var/www/html/index.html.old; fi

    From then on it’s just: xyzfog/

  • Standalone

    56
  • How to: Use FOG (1.1.2) with FreeNAS (Storage node - 9.1.1)

    6
    0 Votes
    6 Posts
    4k Views
    W

    Cleaned up [url]http://fogproject.org/wiki/index.php/Use_FOG_with_FreeNAS[/url] to keep with some formatting guideslines. Let me know if I messed anything up.

  • 0 Votes
    29 Posts
    15k Views
    M

    [quote=“Tom Elliott, post: 45876, member: 7271”]Can you try 3279?[/quote]
    I installed 3279 and at least the error didn’t reappeared. Can’t tell if it fixed it as I fixed it with enabling mcrypt odule as I wrote before…

  • Making FOG images from ghosted computers

    16
    0 Votes
    16 Posts
    6k Views
    Joseph HalesJ

    If your not running SVN running fixparts on the pc before uploading may fix your issue.

  • Build iPXE from source

    4
    0 Votes
    4 Posts
    7k Views
    S

    For Debian/Ubuntu:
    [CODE] sudo apt-get install binutils-dev[/CODE]

    [B]Would you please edit the post and remove the “on RH” in the code box… I am sure a lot of people don’t understand that this is not part of the command![/B]

  • Hyper-V (server 2012) configuration for FOG - Overview

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied

172

Online

12.3k

Users

17.4k

Topics

155.6k

Posts