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

Trouble with Windows 8.1 image using Host Reg Bypass

Scheduled Pinned Locked Moved Solved
FOG Problems
3
11
3.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.
  • W
    Wayne Workman
    last edited by Aug 4, 2015, 4:15 PM

    “host registration bypass” ? For what, to image without registering? You can do that with the Capone plugin. it’s available in 1.2.0.

    In FOG Trunk (see link below), the Capone plugin is made obsolete by the “quick image” feature. You may choose to “quick image” from the boot menu - if the host is registered or not - and then choose the image you want to use.

    https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk

    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
    • P
      Paul Freeman
      last edited by Aug 4, 2015, 4:19 PM

      Thank you for that. I will give this a try on my test setup and report back.

      1 Reply Last reply Reply Quote 0
      • P
        Paul Freeman
        last edited by Aug 5, 2015, 3:31 PM

        Well unfortunately when I loaded Trunk on my test setup it caused the fog DHCP server to stop functioning. I am going to start over on the test machine.

        W 1 Reply Last reply Aug 5, 2015, 4:29 PM Reply Quote 0
        • W
          Wayne Workman @Paul Freeman
          last edited by Wayne Workman Aug 5, 2015, 10:30 AM Aug 5, 2015, 4:29 PM

          @Paul-Freeman said:

          Well unfortunately when I loaded Trunk on my test setup it caused the fog DHCP server to stop functioning. I am going to start over on the test machine.

          Or you can ask for help?

          FOG Trunk will eventually be FOG 1.3.0 and you’ll either move to it when it’s released or be stuck on 1.2.0 forever or just use some other imaging solution - I’m indifferent with what you choose, but your decision to fleet away from trunk was quick and a snap decision - especially when there are people here that are willing to help.

          If FOG Trunk doesn’t work for you, the @Developers need to know what happened and why.

          When you run the trunk installer, run it like this:

          ./installfog.sh --help
          

          There are now arguments for the installer, you’ll also notice the DHCP arguments.

          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
          • P
            Paul Freeman
            last edited by Aug 5, 2015, 5:20 PM

            I am going to take the opportunity to setup the test server on a VM so I can make the rollback process easier. Once i get this setup I will try again and request help.

            My production setup does not utilize the FOG DHCP service and i unfortunately do not have the resources to emulate prod so there wont be an issue related to DHCP on my production machine.

            1 Reply Last reply Reply Quote 0
            • P
              Paul Freeman
              last edited by Aug 5, 2015, 6:51 PM

              Ok I now have my test setup on a Virtualbox host with all of the same settings I was using on the physical machine and this time the update to trunk has no problems at all. I am able to PXE boot using my test machine.

              It was not my intention to suggest that I will not be using Trunk or attempting to update to the latest and greatest. During this “test” I realized i could improve my methods a little. In the future I will be sure to report problems with my tests and try to work through them with the experts rather than just starting over off the bat.

              I am going to test the functionality of my original posted question and I will report back.

              1 Reply Last reply Reply Quote 2
              • P
                Paul Freeman
                last edited by Aug 5, 2015, 7:58 PM

                Looks like i spoke too soon. Immediately after installing trunk everything was working fine. I then shutdown the VM to create a snapshot and rebooted and now the DHCP service will not start (automatically or manually).

                This is what i get when trying to start the service.

                eud@FOGVM ~/Desktop $ sudo /etc/init.d/isc-dhcp-server start
                dhcpd self-test failed. 
                Please fix /etc/dhcp/dhcpd.conf.
                
                The error was: 
                Internet Systems Consortium DHCP Server 4.2.4
                
                Copyright 2004-2012 Internet Systems Consortium. 
                All rights reserved.
                 For info, please visit 
                
                https://www.isc.org/software/dhcp/
                
                /etc/dhcp/dhcpd.conf line 0: expecting a parameter or declaration
                # Code
                      ^
                /etc/dhcp/dhcpd.conf line 17: no option space named PXE.
                option PXE.mtftp-ip
                           ^
                /etc/dhcp/dhcpd.conf line 18: no option space named PXE.
                option PXE.mtftp-cport
                           ^
                /etc/dhcp/dhcpd.conf line 19: no option space named PXE.
                option PXE.mtftp-sport
                           ^
                /etc/dhcp/dhcpd.conf line 20: no option space named PXE.
                option PXE.mtftp-tmout
                           ^
                /etc/dhcp/dhcpd.conf line 21: no option space named PXE.
                option PXE.mtftp-delay
                           ^
                /etc/dhcp/dhcpd.conf line 40: semicolon expected.
                	max-lease-time
                         ^
                /etc/dhcp/dhcpd.conf line 40: expecting a parameter or declaration
                	max-lease-time 43200;
                                             ^
                Configuration file errors encountered -- exiting
                
                
                

                FOG 1.2.0 Base install dhcpd.conf before trunk update

                # DHCP Server Configuration file.
                # see /usr/share/doc/dhcp*/dhcpd.conf.sample
                # This file was created by FOG
                use-host-decl-names on;
                
                ddns-update-style interim;
                ignore client-updates;
                next-server 192.168.0.2;
                
                subnet 192.168.0.0 netmask 255.255.255.0 {
                        option subnet-mask              255.255.255.0;
                        range dynamic-bootp 192.168.0.10 192.168.0.254;
                        default-lease-time 21600;
                        max-lease-time 43200;
                #	option domain-name-servers      x.x.x.x;
                #	option routers      x.x.x.x;
                        filename "undionly.kpxe";
                
                }
                
                

                FOG 1.2.0 dhcpd.conf AFTER trunk update

                # DHCP Server Configuration file
                #see /usr/share/doc/dhcp*/dhcpd.conf.sample
                # This file was created by FOG
                #Definition of PXE-specific options
                # Code 1: Multicast IP Address of bootfile
                # Code 2: UDP Port that client should monitor for MTFTP Responses
                # Code 3: UDP Port that MTFTP servers are using to listen for MTFTP requests
                # Code 4: Number of seconds a client must listen for activity before trying
                #         to start a new MTFTP transfer
                # Code
                    5: Number of seconds a client must listen before trying to restart
                #         a MTFTP transfer
                
                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.0.2;
                
                # Specify subnet of ether device you do NOT want service. for systems with
                # two or more ethernet devices.
                # subnet 136.165.0.0 netmask 255.255.0.0 {}
                
                subnet 192.168.0.0 netmask 255.255.255.0 {
                	option subnet-mask 255.255.255.0;
                	range dynamic-bootp 192.168.0.10 192.168.0.254;
                	default-lease-time 21600
                	max-lease-time 43200;
                	#	option domain-name-servers      x.x.x.x;
                	#	option routers      x.x.x.x;
                	filename ;
                
                }
                
                
                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Aug 5, 2015, 8:07 PM

                  Can you try updating to latest and try re-running the installer?

                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • P
                    Paul Freeman
                    last edited by Aug 5, 2015, 9:29 PM

                    During installation I received the following error.

                     Press [Enter] key when database is updated/installed.
                    
                     * Setting up storage..........................................OK
                     * Setting up and starting DHCP Server.........................../lib/common/functions.sh: line 155: 2600:1010:b021:8a9f:e506:70ec:3154:c398: syntax error in expression (error token is ":1010:b021:8a9f:e506:70ec:3154:c398")
                     * Setting up and starting TFTP and PXE Servers................OK
                    

                    I then checked the status and sure enough DHCP had not started.

                    eud@FOGVM ~/fogtrunk/bin $ sudo service isc-dhcp-server status
                    isc-dhcp-server stop/waiting
                    eud@FOGVM ~/fogtrunk/bin $ sudo /etc/init.d/isc-dhcp-server start
                    dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
                    The error was: 
                    Internet Systems Consortium DHCP Server 4.2.4
                    Copyright 2004-2012 Internet Systems Consortium.
                    All rights reserved.
                    For info, please visit https://www.isc.org/software/dhcp/
                    /etc/dhcp/dhcpd.conf line 35: expecting numeric value.
                    subnet  netmask 
                             ^
                    Configuration file errors encountered -- exiting
                    eud@FOGVM ~/fogtrunk/bin $ 
                    
                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Aug 5, 2015, 10:20 PM

                      I’m going to claim this as solved.

                      Paul and I Teamviewered and I was able to find a couple bugs in the dhcp config creation.

                      It should now, properly, create the dhcpd.conf file

                      Part of the issue with the functions error was the interface fog was setup for was incorrect. It seems the OS decided to flop the nics arrangement. Other issues were the config was missing a semicolon, and the bootfilename argument wasn’t being populated. It is now created properly, stored in the fog settings, and can be set by an installer argument of either -b <filename> or --bootfile <filename>.

                      Hopefully this helps.

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      1 / 1
                      • First post
                        11/11
                        Last post

                      177

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project