• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

..and one FOG-VM to rule them all.

Scheduled Pinned Locked Moved
General
5
41
6.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    LOF @george1421
    last edited by Mar 13, 2018, 2:21 PM

    @george1421 Thanks George and thanks everyone else for your responses. This is great news and exactly what I need. I’ve only configured DCHP options 66/67 at one office but there are three others where I haven’t and a couple of them don’t use Windows server-based DHCP but rather DHCP on local firewalls. All offices do have VOIP phones but I don’t think there will be any risk because they all operate on separate VLANS configured for VOIP traffic. I’m at one of the other offices today and plan to install MakeFogMobile with dnsmasq and see if I can get it to work. Since dnsmasq is included in MakeFogMobile all I should need to do is run install.sh as root in a folder containing the install.sh and MainScript.sh scripts, correct? Can I run those scripts from any location or is there a specific location you would recommend? As I said previously, my VM is running the current (18.3 Sylvia - Cinnamon 64-bit) version of Linux Mint.

    G 1 Reply Last reply Mar 13, 2018, 3:06 PM Reply Quote 0
    • G
      george1421 Moderator @LOF
      last edited by Mar 13, 2018, 3:06 PM

      @lof For your dnsmasq configuration.

      1. Make sure that dnsmasq version 2.76 or newer is installed with dnsmasq -v command.
      2. Use the following config file for dnsmasq. Save it in /etc/dnsmasq.d and save it as ltsp.conf
      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      
      # The boot filename, Server name, Server Ip Address
      dhcp-boot=undionly.kpxe,,<fog_server_IP>
      
      # Disable re-use of the DHCP servername and filename fields as extra
      # option space. That's to avoid confusing some old or broken DHCP clients.
      dhcp-no-override
      
      # inspect the vendor class string and match the text to set the tag
      dhcp-vendorclass=BIOS,PXEClient:Arch:00000
      dhcp-vendorclass=UEFI32,PXEClient:Arch:00006
      dhcp-vendorclass=UEFI,PXEClient:Arch:00007
      dhcp-vendorclass=UEFI64,PXEClient:Arch:00009
      
      # Set the boot file name based on the matching tag from the vendor class (above)
      dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,,<fog_server_IP>
      dhcp-boot=net:UEFI,ipxe.efi,,<fog_server_IP>
      dhcp-boot=net:UEFI64,ipxe.efi,,<fog_server_IP>
      
      # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
      pxe-prompt="Booting FOG Client", 1
      
      # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
      # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
      # This option is first and will be the default if there is no input from the user.
      pxe-service=X86PC, "Boot to FOG", undionly.kpxe
      pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi
      pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi
      
      dhcp-range=<fog_server_ip>,proxy
      

      Make sure you change <fog_server_ip> to the current IP address of your FOG server. The make fog mobile script (only needs to be run once since it sets up a cron job) will modify this file when it runs. This dnsmasq configuration will give you dynamic boot file name based on the pxe booting client. (bios or uefi).

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      W L 2 Replies Last reply Mar 13, 2018, 3:10 PM Reply Quote 0
      • W
        Wayne Workman @george1421
        last edited by Mar 13, 2018, 3:10 PM

        @george1421 the scripts re-configure dnsmasq every time the IP of the box changes. See line 216 in the script.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 1
        • L
          LOF @george1421
          last edited by Mar 13, 2018, 3:22 PM

          @george1421 Thanks George/Wayne, so won’t the MakeFogMobile install.sh script install the current version of dnsmasq? Are you saying to run that script and then put the ltsp.conf with the content you listed into /etc/dnsmasq.d/ ? Will there already be a ltsp.conf file in there that I’ll need to overwrite? Just want to get all my ducks in a row before I try this.

          G 1 Reply Last reply Mar 13, 2018, 3:37 PM Reply Quote 0
          • G
            george1421 Moderator @LOF
            last edited by Mar 13, 2018, 3:37 PM

            @lof you need to install dnsmasq manually. Its not a direct function of fog.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            L 1 Reply Last reply Mar 13, 2018, 3:52 PM Reply Quote 0
            • L
              LOF @george1421
              last edited by Mar 13, 2018, 3:52 PM

              @george1421 Thanks George, so the mobile script doesn’t install dnsmasq as Tom said yesterday? Sorry, that’s where I got the idea that the dnsmasq install would already be covered during the MakeFogMobile install.

              G 1 Reply Last reply Mar 13, 2018, 4:06 PM Reply Quote 0
              • G
                george1421 Moderator @LOF
                last edited by Mar 13, 2018, 4:06 PM

                @lof Mmmmm. I’m pretty sure that dnsmasq is not added by the script, but the script will manage dnsmasq if its installed. Wayne wrote the script so he would know for sure. But, if it was me, I would just install dnsmasq and be done with it.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                L W 2 Replies Last reply Mar 13, 2018, 4:13 PM Reply Quote 0
                • L
                  LOF @george1421
                  last edited by Mar 13, 2018, 4:13 PM

                  @george1421 Oh ok, I’m looking at the tarballs now: www.thekelleys.org.uk/dnsmasq/ Look’s like dnsmasq-2.78.tar.gz is what I need. The software manager in Linux Mint has it listed but it’s only showing version 2.75 It says I already have the Dnsmasq-base (executable/docs) installed but its version 2.75 Do you think I should uninstall that?

                  G 1 Reply Last reply Mar 13, 2018, 4:26 PM Reply Quote 0
                  • G
                    george1421 Moderator @LOF
                    last edited by george1421 Mar 13, 2018, 10:33 AM Mar 13, 2018, 4:26 PM

                    @lof well you need the fixes in 2.76. I’m a bit surprised that mint is not current.

                    [edit] I just checked and ubuntu 16.04 is a bit behind. They only support 2.75 as you noted. Newer versions of ubuntu do support later releases of dnsmasq. I do have instructions on compiling your own copy. It should work with the tarball you found. I have not tested it with 2.78, but I guess try: https://forums.fogproject.org/topic/8725/compiling-dnsmasq-2-76-if-you-need-uefi-support

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    L 2 Replies Last reply Mar 13, 2018, 4:36 PM Reply Quote 0
                    • L
                      LOF @george1421
                      last edited by Mar 13, 2018, 4:36 PM

                      @george1421 When I created the initial VM a few weeks ago, I installed all available updates before installing FOG but haven’t installed any after. I remember a couple years back when I had FOG installed, I installed available updates for Mint and it broke my FOG install. Re-running the FOG install fixed the issue but I’ve been afraid of installing OS updates ever since.

                      1 Reply Last reply Reply Quote 0
                      • W
                        Wayne Workman @george1421
                        last edited by Wayne Workman Mar 13, 2018, 10:49 AM Mar 13, 2018, 4:49 PM

                        @george1421 said in ..and one FOG-VM to rule them all.:

                        I’m pretty sure that dnsmasq is not added by the script,

                        It does install the latest version of dnsmasq available from the OS’s package manager.

                        If 2.76 is required for UEFI, this can be manually installed before hand.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 1
                        • L
                          LOF @george1421
                          last edited by Mar 13, 2018, 4:55 PM

                          @george1421 Thanks George, so what if I don’t need UEFI support? I haven’t encountered a situation yet where I couldn’t do my deployments with UEFI disabled. I usually disable it, enable legacy, deploy the image and then turn UEFI back on. Would dnsmasq 2.75 suffice for that?

                          G 1 Reply Last reply Mar 13, 2018, 4:59 PM Reply Quote 0
                          • G
                            george1421 Moderator @LOF
                            last edited by george1421 Mar 13, 2018, 11:00 AM Mar 13, 2018, 4:59 PM

                            @lof yes, if no uefi then you don’t need 2.76 and also don’t use my configuration. You need the older 2.75 config and earlier. In your case you will need to create a link from undionly.kpxe to undionly.kpxe.0 and ipxe.efi to ipxe.efi.0 since the older releases always added .0 onto the end of what ever the configuration file calls for.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                            L 2 Replies Last reply Mar 13, 2018, 5:07 PM Reply Quote 0
                            • L
                              LOF @george1421
                              last edited by Mar 13, 2018, 5:07 PM

                              @george1421 Ok great, then in my case I just do the MakeFogMobile install, create those links and go with that. Thanks for all the help. I know others out there definitely want UEFI support, especially since it was announced that hardware vendors will eventually pull the plug on legacy. I’ll cross that bridge when it happens, hopefully by that time Linux Mint will include a more current version of dnsmasq

                              One last question, should I be concerned about installing OS updates after installing FOG? Do OS updates still break things like PHP? Does doing a re-install of FOG still address those issues? Ok that’s three questions, …sorry. 😉

                              1 Reply Last reply Reply Quote 0
                              • S
                                sudburr @Wayne Workman
                                last edited by sudburr Mar 13, 2018, 2:32 PM Mar 13, 2018, 8:31 PM

                                @wayne-workman In an enterprise environment with established DHCP and DNS one would quickly have their ass hauled onto the carpet if multiple roaming rogue DHCP and DNS servers were deployed using the combined solution offered for mobilizing FOG.

                                I think it would be better to also offer a FOG-centric version of the mobile FOG solution that doesn’t involve tacking on unnecessary and potentially career-damaging services.

                                I’m hoping the development of 2.0 hasn’t strayed from a long lost posit that promised to stay focused on FOG first. Compartmentalize solutions by addressing DNS and DHCP services as separate non-FOG accessories.

                                [ Standing in between extinction in the cold and explosive radiating growth ]

                                W 1 Reply Last reply Mar 13, 2018, 8:48 PM Reply Quote 0
                                • W
                                  Wayne Workman @sudburr
                                  last edited by Wayne Workman Mar 13, 2018, 7:18 PM Mar 13, 2018, 8:48 PM

                                  @sudburr said in ..and one FOG-VM to rule them all.:

                                  In an enterprise environment with established DHCP and DNS one would quickly have their ass hauled onto the carpet if multiple roaming rogue DHCP and DNS servers were deployed using the combined solution offered for mobilizing FOG.

                                  Understood. Good thing the project lists exactly what it does so that one’s ass can avoid being hauled to the carpet. Also, the community scripts is open for all to contribute. You can edit the existing code or create an entire copy and modify it.

                                  @sudburr said in ..and one FOG-VM to rule them all.:

                                  I think it would be better to also offer a FOG-centric version of the mobile FOG solution that doesn’t involve tacking on unnecessary and potentially career-damaging services.

                                  A good starting point for this would be the updateIP script:
                                  https://github.com/FOGProject/fog-community-scripts/tree/master/updateIP

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                  Daily Clean Installation Results:
                                  https://fogtesting.fogproject.us/
                                  FOG Reporting:
                                  https://fog-external-reporting-results.fogproject.us/

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    LOF
                                    last edited by Mar 13, 2018, 10:33 PM

                                    Thanks for all the help so far. I ran the mobile install as root and it finished. I also did some initial testing to ensure I could access the FOG console after changing my VM’s network settings to use DHCP. It worked fine and even worked when I switched from a bridged to a NAT connection in VMware Workstation. I didn’t have time to try PXE-booting a test machine yet but will do that next.

                                    Also, re: what @sudburr said, …I definitely see the concern and already took that into consideration before pushing ahead with this. In my particular situation it won’t be an issue since the locations I’ll be using this at don’t have any hardware set to PXE-boot other than VOIP phones and those operate on a separate VLAN. Also, I’ll be using my FOG VM very infrequently and it will only be in operation when I’m imaging new machines. Anyway, I think this is going to be the best/easiest way to go for me. 🙂

                                    1 Reply Last reply Reply Quote 2
                                    • L
                                      LOF @george1421
                                      last edited by Mar 14, 2018, 8:13 PM

                                      @george1421 Hi George, quick question for you… where are the undionly.kpxe and ipxe.efi files supposed to reside? I see two versions of undionly.kpxe in /Downloads/fog_1.4.4/packages/tftp and /Downloads/fog_1.4.4/packages/tftp/10secdelay ipxe.efi = /fog_1.4.4/packages/tftp /fog_1.4.4/packages/tftp/10secdelay /fog_1.4.4/packages/tftp/10secdelay/i386-efi /fog_1.4.4/packages/tftp/i386-7156-efi and /fog_1.4.4/packages/tftp/i386-efi

                                      Which location should I create the symlink from? i.e., symlink to undionly.kpxe.0 / ipxe.efi.0

                                      W G 2 Replies Last reply Mar 14, 2018, 8:18 PM Reply Quote 0
                                      • W
                                        Wayne Workman @LOF
                                        last edited by Mar 14, 2018, 8:18 PM

                                        @lof said in ..and one FOG-VM to rule them all.:

                                        where are the undionly.kpxe and ipxe.efi files supposed to reside

                                        After you install fog, they are located on the server in /tftpboot

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                        Daily Clean Installation Results:
                                        https://fogtesting.fogproject.us/
                                        FOG Reporting:
                                        https://fog-external-reporting-results.fogproject.us/

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          george1421 Moderator @LOF
                                          last edited by george1421 Mar 14, 2018, 2:23 PM Mar 14, 2018, 8:22 PM

                                          @lof Wayne is right, both are in /tftpboot. That is where you need to create the symbolic link between undionly.kpxe and undionly.0 (note the name change from before) as well as ipxe.efi and ipxe.0. Then in your config file for dnsmasq you only include the base names of undionly and ipxe not with the extension. Its a quirk with version 2.75 and older that you have to accept.

                                          Also note the i386 directory is for 32bit efi images. Those systems are not very common any more. Many of the early Apple systems were 32 bit only uefi requiring special boot kernels.

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                          L 1 Reply Last reply Mar 14, 2018, 9:38 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          2 / 3
                                          • First post
                                            21/41
                                            Last post

                                          197

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project