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

FOG working with virtual interface

Scheduled Pinned Locked Moved
Linux Problems
3
15
1.2k
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.
  • O
    Oleg @Sebastian Roth
    last edited by Oleg May 18, 2020, 5:53 AM May 18, 2020, 11:39 AM

    @Sebastian-Roth

    TFTP HOST is set to 192.100.1.1.

    Tproblem:
    Booting and getting into the FOG menu is working everytime.
    In most cases after choosing fog registration, quick image or fog sysinfo, fog is running into the timeout mentioned before - but sometimes it works and the client is getting an ip address and doing the registration or fog is deploying the image. I would say, every 4th time it seems to work.

    I tried fog 1.5.8 and 1.5.9-RC1. Both versions have problems with providing DHCP addresses after the fog menu items.

    I thought maybe it has something to do with the kernel, so tried to change the used kernel and ran into the update problem with the kernel.

    G 1 Reply Last reply May 18, 2020, 12:11 PM Reply Quote 0
    • G
      george1421 Moderator @Oleg
      last edited by May 18, 2020, 12:11 PM

      @Oleg Do you have a cheap unmanaged network switch you can place between the target computer and the building switch. About 90% of the time where we see this condition is because your building switch is using spanning tree but not one of the fast spanning tree protocols like port-fast, RSTP, MSTP, fast-STP (or what ever your switch vendor calls it), and not the FOG server itself. A (dumb) unmanaged switch will typically mask the problem and as a test gives us an understanding of the problem.

      There is another way if you don’t have an unmanged switch to test, but just placing an unmanged switch between the target computer and the networks is the quickest test.

      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!

      O 1 Reply Last reply May 18, 2020, 6:29 PM Reply Quote 0
      • O
        Oleg @george1421
        last edited by May 18, 2020, 6:29 PM

        @george1421
        I tried to do a quick registration 10 times with my unmanaged tp-link switch and in 6 of 19 cases the client pc didn’t get an ip address and ran into the timeout.
        In that cases, where the client got an ip address, the client waited at least 15 seconds until it got the dhcp address from fog.

        G 1 Reply Last reply May 18, 2020, 7:01 PM Reply Quote 0
        • O
          Oleg
          last edited by Oleg May 18, 2020, 12:48 PM May 18, 2020, 6:44 PM

          @Sebastian-Roth
          i noticed, that the installation process (or ./installfog.sh) is generating a strange netmask in the dhcpd.conf, if a virtuel interface is configured:
          network settings of system:

          auto eth0
          iface eth0 inet static
          address 192.168.111.8
          netmask 255.255.255.0
          gateway 192.168.111.1
          
          dns-nameservers 192.168.111.1 192.168.100.100
          

          virtuel interface:

          auto eth0:0
          iface eth0:0 inet static
              address 192.100.1.1
              network 192.100.1.0
          

          generated DHCP settings:

          subnet 192.32.1.0 netmask 255.255.255.0{
              option subnet-mask 255.255.255.0;
              range dynamic-bootp 192.168.111.10 192.168.111.254;
              default-lease-time 21600;
              max-lease-time 43200;
              option routers 192.168.111.1;
              option domain-name-servers 192.168.111.1;
              next-server 192.168.111.8;
          

          if I disable the virtuel interface before running installfog.sh, everything is ok then.

          I manually change all network settings to the 192.100.1.x after the script is finished.

          1 Reply Last reply Reply Quote 0
          • G
            george1421 Moderator @Oleg
            last edited by May 18, 2020, 7:01 PM

            @Oleg said in FOG working with virtual interface:

            client waited at least 15 seconds until it got the dhcp address from fog

            See the issue is that if it IS spanning tree, standard spanning tree doesn’t start forwarding data until the 27 second timer counts down. So that means the switch will not forward data for 27 seconds. By then the FOS Linux engine has already given up. Typically once of those cheap unmanaged switches don’t support spanning tree so they keep the building switch port active as PXE hands off to IPXE and then iPXE hand off to FOS Linux.

            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!

            O 1 Reply Last reply May 18, 2020, 7:12 PM Reply Quote 0
            • O
              Oleg @george1421
              last edited by May 18, 2020, 7:12 PM

              @george1421
              I disabled the virtuel interface and changed all settings to the 192.168.111.8 ip address of the fog server.
              It seems to work a little better but still the clients are often running into timeouts after the fog menu.
              FOG and the client are both connected with the tp-link switch and nothing else

              1 Reply Last reply Reply Quote 0
              • O
                Oleg
                last edited by May 18, 2020, 7:15 PM

                @Sebastian-Roth
                any ideas regarding the issue with the kernel update?
                I disabled the virtual interface and run the 1.5.8 installer again and tried the kernel update - still get the error with ftp_rename() I mentioned in my first post.

                My system: ubuntu server 18.4.4

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by May 18, 2020, 9:04 PM

                  @Oleg For the kernel update issue you wanna go through this wiki article: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

                  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

                  O 1 Reply Last reply May 19, 2020, 11:00 AM Reply Quote 0
                  • O
                    Oleg @Sebastian Roth
                    last edited by May 19, 2020, 11:00 AM

                    @Sebastian-Roth
                    I went through the wiki article and everything seems to be fine.

                    I saw that fog is downloading the kernels twice if you do an update. First time if you expand the kernel you want to download and click on “download”. (Kernel will be downloaded as “bzImage”) The second time after you enter the kernel name and click on “install” - this time the kernel will be downloaded with the new name.

                    1 Reply Last reply Reply Quote 0
                    • O
                      Oleg
                      last edited by May 19, 2020, 11:57 AM

                      I don’t know if it has to do something with the timeout issue but in /etc/default/grub I added

                      GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
                      

                      because we want to use eth0 name instead of enp1s0.

                      I changed manually the kernels in /var/www/html/fog/service/ipxe/ to the 4.15.2 Kernel.

                      Now I get eth0 instead of enp1s0:

                      Starting syslogd: OK
                      Starting klogd: OK
                      Running sysctl: OK
                      Populating /dev using udev: done
                      Saving random seed: OK
                      Staring haveged: haveged: listening socket at 3
                      OK
                      Starting eth0 interface and waiting for the link to come u
                      

                      With the older kernel the issue with the timeout is gone.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by May 20, 2020, 6:41 AM

                        @Oleg said:

                        I don’t know if it has to do something with the timeout issue but in /etc/default/grub I added

                        We don’t use GRUB for PXE booting hosts usually! Seems like you have customized your setup a fair bit. I may ask you to tell us more about the customization to we are able to properly help you!

                        I changed manually the kernels in /var/www/html/fog/service/ipxe/ to the 4.15.2 Kernel.
                        With the older kernel the issue with the timeout is gone.

                        That’s interesting. So it seems like a Linux kernel network driver issue from what we know so far. Let’s start by trying to find out what driver is used. Please boot Windows on that machine, open device management and get us the device ID from there. Usually in the form 12c4:5f78.

                        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
                        • 1 / 1
                        1 / 1
                        • First post
                          14/15
                          Last post

                        152

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project