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

    Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    pxe proxydhcp issue proxydhcp virtual machine tftp
    3
    16
    3.1k
    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.
    • DarKFeeliND
      DarKFeeliN @george1421
      last edited by DarKFeeliN

      @george1421 said in Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP:

      1. If you create a VM (or have one) on this same vm host server does it pick up a dhcp address in the x.y.42.X range?

      It has a static IP in the x.y.42.X range, but yes, it could also be dynamically assigned by the DHCP for the x.y.42.X range.

      1. Do you have the fog server bridged to the business network (not natted)?

      It is bridged and has its own (public) address. I never had an issue with that on a bridged network, the webserver works flawlessly.

      1. Do you need to set the vm host server interface into promiscuous mode?

      I just checked: Yes, the main NIC goes into promiscuous mode according to /var/log/kern.log

      1. If you take a second computer as a witness computer with wireshark installed connected to the same network switch as the FOG server’s vm host do you see any dhcp traffic?

      As stated in my last response I sadly already did that and did not see a single package. I will also try a few different clients with different pxe-Versions but I think it might be safe to assume there is no broadcoasting allowed for those ports.

      Just to make extra sure I will test this exact VM in an isolated network with a switch I control and know how the firewall and routes are setup and see, if the tcpdump then contains packages on those ports. If this is the case I will get in touch with the networking team (IT here is hierarchical to some degree, the network infrastructure is not in our own hands) and ask if they can make an exception for the broadcoasts of those ports to the specific IP of my fogserver. But I really have to state my request very specific so I want to make sure I do not ask for anything I do not need or have an error on my side of the configuration first.

      Once we see dhcp traffic then we can focus on if dnsmasq is working like it should.

      As soon as this is the case (or I make a new discovery) I will get back to you! Thank you for all your answers so far, they really lead me in the right direction.

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @DarKFeeliN
        last edited by

        @DarKFeeliN said in Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP:

        It has a static IP in the x.y.42.X range, but yes, it could also be dynamically assigned by the DHCP for the x.y.42.X range.

        Can you confirm that another VM on this same vm host as the FOG server does receive a dhcp address?
        You could even just create a test vm that does a pxe boot i bios mode. that would tell us if it gets a dhcp address. Do this while running tcpdump on the FOG server. You “should” see the dhcp communication (hopefully).

        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!

        DarKFeeliND 1 Reply Last reply Reply Quote 0
        • DarKFeeliND
          DarKFeeliN @george1421
          last edited by

          @george1421 I just spun up a Windows VM and changed it to get its IP-Address from DHCP and it worked. I should add that the MAC-Address has to be whitelisted first, if it is supposed to get a DHCP-Address but every MAC-Address that is involved with the fogserver is already whitelisted.

          I will send the tcp-dump to you (you can see 5 Discover packets, a request-packet and a inform packet like you would expect).

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @DarKFeeliN
            last edited by

            @DarKFeeliN said in Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP:

            I should add that the MAC-Address has to be whitelisted first

            Are you running some kind of NAC/NAP in your environment? Or do you have a high security network (i.e. DoD)?

            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!

            DarKFeeliND 1 Reply Last reply Reply Quote 0
            • DarKFeeliND
              DarKFeeliN @george1421
              last edited by

              @george1421 said in Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP:

              Are you running some kind of NAC/NAP in your environment? Or do you have a high security network (i.e. DoD)?

              I would not call it a high security network as the network is partly public (university) but the whitelisting is in place so no student can just plug in their devices. There also is filtering to the outside and the inside of the network but this is clearly communicated and does not (or maybe I should say “should not”) interfere within the “local” network.

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @DarKFeeliN
                last edited by

                @DarKFeeliN Well I think attempting to capture the dhcp process from a witness computer (i.e. laptop plugged into same switch as your vm host server) will tell us where to look next. That witness computer running wireshark should pick up both sides of the conversation. Remember the complete dhcp process is Discover->Offer->Request->ACK and then some time later Inform. If we see the Discover through ACK then it was successful.

                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!

                DarKFeeliND 2 Replies Last reply Reply Quote 0
                • DarKFeeliND
                  DarKFeeliN @george1421
                  last edited by

                  @george1421 said in Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP:

                  @DarKFeeliN Well I think attempting to capture the dhcp process from a witness computer (i.e. laptop plugged into same switch as your vm host server) will tell us where to look next. That witness computer running wireshark should pick up both sides of the conversation. Remember the complete dhcp process is Discover->Offer->Request->ACK and then some time later Inform. If we see the Discover through ACK then it was successful.

                  I already did that twice but just to make sure I ran it again for over an hour to witness every packet I can get regarding port 67 or port 68 or port 69 or port 4011.

                  I have only been able to see DHCP-Requests from the client that was running wireshark and ACK packets from two other PCs (in reality there were way more since there are around 200 PCs receiving IP-Addresses including some I let receive an IP-Address over DHCP that were not picked up at all).

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth

                    @DarKFeeliN Do you set Wireshark to capture in promiscious mode?

                    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

                    DarKFeeliND 1 Reply Last reply Reply Quote 0
                    • DarKFeeliND
                      DarKFeeliN @Sebastian Roth
                      last edited by

                      @Sebastian-Roth said in Not able to PXE boot from FOGServer on Proxmox LXC with proxyDHCP:

                      @DarKFeeliN Do you set Wireshark to capture in promiscious mode?

                      I just double-checked and: Yes, I’m capturing in promiscous mode (as it is default in the Windows version).

                      1 Reply Last reply Reply Quote 0
                      • DarKFeeliND
                        DarKFeeliN @george1421
                        last edited by DarKFeeliN

                        @george1421
                        New revelations have been made. As I said I now replicated the whole setup on a local isolated network (with exception of the apparmor modifications, not necessary on a bare-metal installation).

                        I have my witness-computer connected to both networks with 2 seperate NICs. Only one is active at a time. In both setups I first started wireshark on the witness computer and booted a notebook into pxe.

                        • Main network: No packets or barely some DHCP-ACKs (that were not from the booting laptop).
                        • Isolated local network: Discover -> Offer -> Request -> ACK. Laptop got an IP from the router and loaded the appropriate bootrom from the fogserver and booted from it.

                        Conclusion: Since the witnessing of the DHCP-packets have nothing to do with fog itself it is safe to say that there is some sort of broadcoastfiltering of the DHCP-relevant ports. The (almost) exact same installation worked in an isolated network but not on the main network.

                        Thank you so much, I finally know the exact cause of the problem and am able to proceed. I now have to write up a request if the networking team would be so kind to allow the broadcoasting of those port-packets to a single static IP that I own (I really hope they’ll allow that. Now that I think of it this makes total sense. If people are able to plug in their own devices into the network that behave like a DHCP-Server and then handle the IPs before the main DHCP does you are in a golden MITM-position and can intercept with the network-packets to your desire). But as far as fog goes, this is nothing from its side.

                        So I think I can say this is solved for the cause of “troubleshooting”. Even if my journey is not exactly at its end yet. Thanks again!

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

                        164

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project