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

    [HELP]Setup Virtualbox FOGServer controlled scenario[SOLVED]

    Scheduled Pinned Locked Moved
    General
    3
    18
    1.8k
    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.
    • I
      igorpa2
      last edited by igorpa2

      Hello, I’m doing the TCC from my college and I’m talking about implementing and using FOGServer as an image server. I already have it installed and working in my institution, but for the validation effect of my TCC, I need to do the tests in a controlled environment and not in the real environment (My advisor oriented me to this, if not, I would do in real xD) .
      The controlled environment that I thought of putting together for this and being able to work is as follows (all inside the VirtuaBox):

      • 1 VM installed with Ubuntu LTS 16.04 with FOGServer “working bench” in last version (1.5.4.8) with 2 network cards configured being adapter 1 configured as nat (it would be a WAN card from my server only for internet connection) and adapter 2 configured on a NAT Network called Fognetwork so that I have an “internal network” (it would be the second card from my server for my LAN network).
      • 3 VMs with an adapter only secured in this NAT Network Fognetwork to stay in the same “internal network” of my second FOGServer network card.

      The problem is that I do not know how to configure the PXE Boot to run my environment and validate the TCC. In the real environment, I have the undionly.kkpxe configured in my pfsense firewall and it works normal, however in this environment only with virtual machines in VB I do not know how to configure. Anyone more experienced and knowledgeable could help me?

      Thank you!

      Sincerely, Igor.

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

        @igorpa2 When installing FOG you are asked if the installer should handle DHCP setup for you. Saying yes here will install and configure a proper DHCP server for you. That will be just fine for your “controlled scenario setup”.

        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

        I 1 Reply Last reply Reply Quote 0
        • I
          igorpa2 @Sebastian Roth
          last edited by

          @Sebastian-Roth said in [HELP]Setup Virtualbox FOGServer controlled scenario:

          @igorpa2 When installing FOG you are asked if the installer should handle DHCP setup for you. Saying yes here will install and configure a proper DHCP server for you. That will be just fine for your “controlled scenario setup”.

          Sebastian, thank you very much. I was able to run the PXE boot with the virtual machines on a NAT Network(Fognetwork), you’re the guy! rsrsrs Now I will go to the validation part of my TCC(Completion of course work) graduation and I will do the cloning and restorations of my environment. Again, thank you very much!

          1 Reply Last reply Reply Quote 0
          • I
            igorpa2
            last edited by igorpa2

            Hello guys, now i have other problem, sometimes the PXE boot execute correctly, but many times lately i have message this error:

            0_1542583747788_a.PNG

            I don´t have changed no fog and nor virtualbox configuration, I just closed the screen on my notebook and opened it the other day and started not loading more. I´m just curiosly why this happened to me, but if i can´t resolve this, or i will reinstall all the environment or i will validate in the real scenario that i would not like to do this 😞

            Again, thanks so much.

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

              @igorpa2 what is device 10.0.0.1? I’m suspecting a router?

              If your fog server, dhcp server, and pxe booting client is on the same subnet follow these instructions to create a pcap file and post it here. We need a pcap of when you get the file not found message on the target computer. The pcap will capture what the client computer is being told to load.

              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!

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

                @igorpa2 Possibly the internal VirtualBox DHCP server playing up here?!

                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

                I 1 Reply Last reply Reply Quote 0
                • I
                  igorpa2 @Sebastian Roth
                  last edited by

                  @Sebastian-Roth said in [HELP]Setup Virtualbox FOGServer controlled scenario:

                  @igorpa2 Possibly the internal VirtualBox DHCP server playing up here?!

                  My FOG Network is configured like the image below:

                  0_1542640120781_aa.PNG

                  @george1421 said in [HELP]Setup Virtualbox FOGServer controlled scenario:

                  @igorpa2 what is device 10.0.0.1? I’m suspecting a router?

                  If your fog server, dhcp server, and pxe booting client is on the same subnet follow these instructions to create a pcap file and post it here. We need a pcap of when you get the file not found message on the target computer. The pcap will capture what the client computer is being told to load.

                  is the IP of my FOGServer which is also my DHCP server. How to capture packages of the virtual machine in this subnet ?

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

                    @igorpa2 Do you only plan on capturing and deploying on this isolated network 10.0.0.0/24. Because this appears to be a natt’d network interface you will not be able to image computers on your business network.

                    It looks like I forgot to include the link on how to create the pcap file using the fog server: https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue

                    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!

                    I 1 Reply Last reply Reply Quote 1
                    • I
                      igorpa2 @george1421
                      last edited by

                      @george1421 said in [HELP]Setup Virtualbox FOGServer controlled scenario:

                      @igorpa2 Do you only plan on capturing and deploying on this isolated network 10.0.0.0/24. Because this appears to be a natt’d network interface you will not be able to image computers on your business network.

                      It looks like I forgot to include the link on how to create the pcap file using the fog server: https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue

                      Actually in my real company I can make it work, however as I said at the beginning of the topic, I’m doing my college course completion work and I’m talking about FOGServer, my supervisor guided me to do the validation part of the I work in a controlled environment so as not to divulge and appear the data of the institution that I work for. The strange thing is that at first it worked everything right, the PXE boot, the registration of the machines in the FOG, but the other day when I opened the notebook to continue the work, simply stopped bootating through the network appearing this error there. The intention is not to use virtual machine not in real environment, I am using it for educational purposes only for validation of my work.
                      I’ll see your link and see what I get here, Thank you very much.

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

                        @igorpa2 OK if this is for your college course, then it is good it did not work/stopped working. I will tell you that you will learn more from your failures than success. Fixing this problem will give you a good experience with finding out why things don’t work.

                        When pxe booting fails, its best to use tcpdump/wireshark to find out what the pxe booting client is being told. Use the FOG server to capture the pxe booting process. Then you can review the pcap file with wireshark (I suggest that you install wireshark). Post the pcap here so I can look at it. I can guide you through understanding what you see in the pcap.

                        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!

                        I 1 Reply Last reply Reply Quote 0
                        • I
                          igorpa2 @george1421
                          last edited by igorpa2

                          @george1421 said in [HELP]Setup Virtualbox FOGServer controlled scenario:

                          @igorpa2 OK if this is for your college course, then it is good it did not work/stopped working. I will tell you that you will learn more from your failures than success. Fixing this problem will give you a good experience with finding out why things don’t work.

                          When pxe booting fails, its best to use tcpdump/wireshark to find out what the pxe booting client is being told. Use the FOG server to capture the pxe booting process. Then you can review the pcap file with wireshark (I suggest that you install wireshark). Post the pcap here so I can look at it. I can guide you through understanding what you see in the pcap.

                          0_1542643135010_output2.pcap

                          For some reason did not capture the packages, re-run the process until the windows boot of the virtual machine

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

                            @igorpa2 well something happened with that pcap file, its 0 bytes in size. Can you confirm and try to re-upload 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!

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              igorpa2 @george1421
                              last edited by igorpa2

                              @george1421 Reupoloaded with new process 😄

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

                                @igorpa2 ok now lets switch over to Forum chat, look at the chat bubble in the upper right.

                                Also load that pcap into wireshark so we can look at 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!

                                1 Reply Last reply Reply Quote 0
                                • I
                                  igorpa2
                                  last edited by

                                  I´m installing a new fresh VM for the FOG and when selecting what Network device to use, i have this error:

                                  0_1542731015439_bb.PNG

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

                                    @igorpa2 Is the IP address 10.0.0.1 already configured on that interface? It needs to be!!

                                    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

                                    I 1 Reply Last reply Reply Quote 0
                                    • I
                                      igorpa2 @Sebastian Roth
                                      last edited by

                                      @Sebastian-Roth said in [HELP]Setup Virtualbox FOGServer controlled scenario:

                                      @igorpa2 Is the IP address 10.0.0.1 already configured on that interface? It needs to be!!

                                      I’m sorry for the rookie error, I had not noticed that the interface was not configured properly, I’m so stuck with this project that I’m already beating the cranks. Now install without error.

                                      1 Reply Last reply Reply Quote 0
                                      • I
                                        igorpa2
                                        last edited by igorpa2

                                        Hello guys, just to give feedback to you, everything is working now, but only multicast is not working correctly. The multicast starts normally and deploys the image between the 3 VM´s, but the transmission rate got too low, worse than using unicast mode for the 3 VMs, I’m trying to find some solution on the internet now for my problem, it’s probably some configuration for the internal network in VirtualBox. Anyone have any ideia or know about this ?

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

                                        161

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project