• 0 Votes
    6 Posts
    2k Views
    jeremy mcflightJ

    I have used this configuration and it works! Link from Wayne Workman! Kudos to you my brother! Thanks!

    Example 1

    Here’s a complete configuration example where TFTP and DNS is on the same Server. No router is defined in this configuration but can easily be added by changing X.X.X.X and un-commenting the line.

    option space PXE; option PXE.mtftp-ip code 1 = ip-address; option PXE.mtftp-cport code 2 = unsigned integer 16; option PXE.mtftp-sport code 3 = unsigned integer 16; option PXE.mtftp-tmout code 4 = unsigned integer 8; option PXE.mtftp-delay code 5 = unsigned integer 8; option arch code 93 = unsigned integer 16; # RFC4578 use-host-decl-names on; ddns-update-style interim; ignore client-updates; next-server 192.168.1.1; authoritative; subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.1.10 192.168.1.254; default-lease-time 21600; max-lease-time 43200; option domain-name-servers 192.168.1.1; #option routers x.x.x.x; class "UEFI-32-1" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006"; filename "i386-efi/ipxe.efi"; } class "UEFI-32-2" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002"; filename "i386-efi/ipxe.efi"; } class "UEFI-64-1" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007"; filename "ipxe.efi"; } class "UEFI-64-2" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00008"; filename "ipxe.efi"; } class "UEFI-64-3" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00009"; filename "ipxe.efi"; } class "Legacy" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000"; filename "undionly.kkpxe"; } }
  • default.ipxe timeout

    15
    0 Votes
    15 Posts
    10k Views
    S

    @mjcrane Great! Got it right this time 😄 You are welcome!

    Take a look at this script: http://sourceforge.net/p/freeghost/code/HEAD/tree/trunk/src/ipxe/src/ipxescript

    This is compiled into the iPXE binary Tom is building for all of you (the original undionly.kpxe you had in /tftpboot sitting). The last line is chainloading default.ipxe from the FOG server. In your case the variable ${next-server} is being set to your ISPs router IP. So I just compiled a new binary and exchanged the varibable with a “hardcoded” 192.168.0.111 - pretty ugly but still working…
    If you want to play with this without installing all the building tools you can go to https://rom-o-matic.eu/ (But be warned, getting all the settings right is kind of tricky!)
    Just give it a try. There is a lot you can learn about PXE booting by trying out these things.

    As I already said there might be a fix in the script that we could add which hopefully should work for others too. @Tom-Elliott What do you think? See in one of my earlier posts. Either that or we just overwrite next-server without checking it being set or not in case proxydhcp is set?!

    #!ipxe ... isset ${proxydhcp/next-server} && set next-server ${proxydhcp/next-server} ...
  • Have to rebuild FOGBOX, need advice.

    5
    0 Votes
    5 Posts
    2k Views
    Wayne WorkmanW

    @Tom-Elliott said:

    now there is a bug plaguing fog and I’m failing to fix it at every angle. Help, a little help here now?

    SVN revision 4168 is solid lol.

    However, the latest is fine in my environment with 500ish hosts using the legacy client. So I say solid because I feel like it’s pretty solid.

    Tom, I’m trying to boost your confidence man! 😉

  • Trying to upgrade from 1.2.0 to latest svn

    Solved
    10
  • Fog user rights

    10
    0 Votes
    10 Posts
    5k Views
    cmlC

    I created this script from various install files:

    https://github.com/AdmissionRegret/utils/blob/master/fog-resetpermissions.sh

    wget https://raw.githubusercontent.com/AdmissionRegret/utils/master/fog-resetpermissions.sh chmod +x fog-resetpermissions.sh
  • FOG 1.2 params: command not found

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    D

    Thanks guys!

    all ok now!

  • Backing up old data Failed! (trying SVN)

    Solved
    9
    0 Votes
    9 Posts
    4k Views
    drc0ncD

    @Uncle-Frank yup

  • DMA upload error

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    S

    Marking this solved. Feel free to ask again here if you still have issues.

  • Default ipxe & dnsmasq

    Solved
    11
    0 Votes
    11 Posts
    10k Views
    S

    @AeonLucid Awesome debugging information!!! Lots of thumbs up for you. I am a bit late now but I did see the post just now. Funny that but I had the exact same thing happening with my home router when trying to debug some other iPXE stuff at home. It seams like there are DSL routers out there which send ‘next-server’ in their DHCP OFFER/ACK without handing a filename to the client. I am not sure why they do (and I guess most don’t). So your client asks for PXE boot. Gets next-server from the router DHCP and your proxy. It seams to be fine in the first run where Intel PXE ROM boots up but as iPXE comes up it uses the next-server send by your router instead of the proxy one. Run wireshark on your FOG server and you should see it in the DHCP packets broadcasted by your router (original firmware).

    Instead of flashing the router you could have also build your own iPXE binary with a customized script - I talked to Tom and we might add that at some point anyway, now that we know more people see this.

    Let me know if you want to know more about custom iPXE…

  • Fog Client Installer issue 4378

    Solved
    7
    0 Votes
    7 Posts
    4k Views
    Wayne WorkmanW

    So, after uninstalling the Legacy Client, and not rebooting but just immediately re-trying the new client, it works, it installed without error.

  • Apache Error Log Question

    Solved
    6
    0 Votes
    6 Posts
    3k Views
  • Fog TFTP boot issue

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    B

    Thank you Uncle Frank that was the answer. instead of being /fog/ there was nothing there.

  • Could not start download: Operation not supported (http://ipxe.org/3c092003)

    Solved
    13
    0 Votes
    13 Posts
    11k Views
    G

    Solved.
    Reason: windows 2012 dhcp failover error. (Two dhcp server with load balancing. Synhronization was’nt perfect, fog settings exist just one of them.) Sorry my english.

  • Let's make scripts!

    32
    0 Votes
    32 Posts
    21k Views
    Wayne WorkmanW

    Bumping this, just so everyone now knows it’s a source forge project. 🙂

  • FOG variables available during postinstall script execution

    4
    0 Votes
    4 Posts
    1k Views
    Tom ElliottT

    @george1421 I send the host name with the load out labeled as hostname and the primary Mac of the host as mac.

  • NAS problem iomega NFS mount ?

    5
    0 Votes
    5 Posts
    2k Views
    Wayne WorkmanW

    All versions of fog currently put only one storage node’s config into /etc/exports, normally, this is just /images

    so the first thing is to check the exports file: /etc/exports. If an entry for your eternal drive isn’t there, just copy/paste the two existing lines and change the paths to point to the external drive.

    Note that inside the external drive’s “images” directory, you need a “dev” directory.

    /images/dev

    also, in both /images and in /images/dev, you need a hidden file, named .mntcheck

    you can create this file using the touch command, like this: touch .mntcheck

  • Attempting To Send Inventory - Invalid Host? SVN 4193

    Solved
    31
    0 Votes
    31 Posts
    18k Views
    Wayne WorkmanW

    For future readers, the select statement that @ch3i posted can be converted into a delete statement like so:

    DELETE hostName FROM hosts WHERE hostID NOT IN ( SELECT hmHostID FROM hostMAC );
  • Cant find Config.PHP

    4
    0 Votes
    4 Posts
    2k Views
    george1421G

    Ok that tells me you only have /Data exported from your FOG server, I understand why the client can’t connect to the /images folder.

    For full disclosure this is what I get when I run the following commands.

    showmount -e localhost

    Export list for localhost: /images/dev * /images *

    cat /etc/exports

    /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0) /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)

    I’m going to recommend that you add the above two lines to your /etc/exports file.

    Then run:

    exportfs -r

    Then run the showmount -e localhost command. This should then show you the exported /images directory.

  • I/O ERROR with Boot.php

    Solved
    11
    0 Votes
    11 Posts
    4k Views
    N

    yeah so i figured it out …
    had a problem with the way i registered the machine … thanks for the help.

  • FOG storage node and data replication

    37
    0 Votes
    37 Posts
    28k Views
    Wayne WorkmanW

    @george1421 said:

    I assume that the FOG Project has some kind of feature requests system to request this function.

    There is a feature request area in the forums.

122

Online

12.5k

Users

17.5k

Topics

156.2k

Posts