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

Connecting FOG to Virtual Machine

Scheduled Pinned Locked Moved
General Problems
4
47
13.6k
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.
  • A
    agray
    last edited by agray Jun 6, 2019, 2:12 PM Jun 6, 2019, 3:39 PM

    I can’t seem to get my VM to communicate properly with my FOG server.
    I’m using Oracle VM Virtualbox 6.0.
    I have my VM successfully booting into iPXE but won’t get the options from the fog server.
    Any suggestions on how to fix this?
    1a414961-c582-48a3-86d9-d1dd6a9edaf3-image.png

    G 1 Reply Last reply Jun 6, 2019, 4:45 PM Reply Quote 0
    • G
      george1421 Moderator @agray
      last edited by Jun 6, 2019, 4:45 PM

      @agray For virtualbox did you connect the network adapter as bridged or NAT? Its strange that you are getting iPXE but iPXE can’t get the dhcp information.

      What device on your network is providing dhcp info?

      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
      • A
        agray
        last edited by Jun 6, 2019, 4:50 PM

        @george1421 said in Connecting FOG to Virtual Machine:

        the network adapter as bridged or NAT?

        Bridged

        @george1421 said in Connecting FOG to Virtual Machine:

        What device on your network is providing dhcp info?

        A router that is on a closed network. It is only connected to the Machine that is running fog and 3 outputs for machines i hook up to it, nothing else.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Jun 6, 2019, 4:54 PM

          @agray Please post a picture of the VM screen so we see to which state it actually boots.

          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

          A 1 Reply Last reply Jun 6, 2019, 5:11 PM Reply Quote 0
          • A
            agray @Sebastian Roth
            last edited by agray Jun 6, 2019, 11:16 AM Jun 6, 2019, 5:11 PM

            @Sebastian-Roth
            be3ad020-1439-4e1e-8d16-899e224d4fd4-image.png

            1 Reply Last reply Reply Quote 0
            • A
              agray
              last edited by Jun 6, 2019, 9:06 PM

              So i found the same issue here (https://forums.fogproject.org/topic/10160/virtualbox-pxe-boot-no-configuration-methods-succeeded).
              I don’t understand the solution 100%. If I set ipxe.pxe as the boot file, wouldn’t that be what fog captures instead of my windows VM?

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Jun 6, 2019, 9:28 PM

                @agray What is described in the link you posted is an issues that only occurs when you warm boot (reboot instead of shutdown and cold boot up) the VM. In this case if you don’t use ipxe.pxe as boot file (FOG uses undionly.kkpxe by default) then warm boot will result in “No configuration methods succeeded”. But if you shutdown and start up the VM it works perfectly fine.

                So I guess you have a different situation here. You say that a router is serving DHCP in your network. So you installed FOG without DHCP, right? Just want to make sure. I haven’t done this kind of setup in a while but I can imagine the DHCP broadcast packets not making it through to the VM…

                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

                A 1 Reply Last reply Jun 6, 2019, 9:41 PM Reply Quote 0
                • A
                  agray @Sebastian Roth
                  last edited by Jun 6, 2019, 9:41 PM

                  @Sebastian-Roth said in Connecting FOG to Virtual Machine:

                  only occurs when you warm boot

                  Oh I have a .bat file that makes my machine shutdown and i start it when i’m ready.

                  My FOG Network is set up like this:
                  5faf7e22-403c-4c7b-9767-1e8e75493676-image.png
                  Sorry, I don’t have a topology software installed right now, had to use a white board.

                  It’s odd, because the broadcast packets make it to the machine that is hosting the VM. Would i have to change the host PC to DHCP also for it to make it?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Jun 6, 2019, 9:55 PM

                    @agray Well, let’s try to rule out things. You seem to have Windows installed in the VM as your golden image already. If you boot that up, does it pick up the IP from your router’s DHCP server?

                    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

                    A 2 Replies Last reply Jun 6, 2019, 10:09 PM Reply Quote 0
                    • A
                      agray @Sebastian Roth
                      last edited by Jun 6, 2019, 10:09 PM

                      @Sebastian-Roth Yes, the VM is getting it’s own DHCP IP address that is coming from the proper router.

                      1 Reply Last reply Reply Quote 0
                      • A
                        agray @Sebastian Roth
                        last edited by Jun 6, 2019, 10:15 PM

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Jun 6, 2019, 10:24 PM

                          @agray Which IP do you get within the VM (Windows booted)?

                          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

                          A 1 Reply Last reply Jun 6, 2019, 10:30 PM Reply Quote 0
                          • A
                            agray @Sebastian Roth
                            last edited by Jun 6, 2019, 10:30 PM

                            @Sebastian-Roth 192.168.1.141

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Jun 6, 2019, 10:41 PM

                              @agray Maybe you have some Windows firewall security software running on the host machine?!

                              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

                              A 1 Reply Last reply Jun 6, 2019, 10:43 PM Reply Quote 0
                              • A
                                agray @Sebastian Roth
                                last edited by Jun 6, 2019, 10:43 PM

                                @Sebastian-Roth Firewall is completely off for Domain, Private, and Public and it doesn’t have an AV

                                1 Reply Last reply Reply Quote 0
                                • Q
                                  Quazz Moderator
                                  last edited by Jun 7, 2019, 7:41 AM

                                  Given that it connects to the DHCP server and gets an IP as we can see from the screenshot but fails after loading the IPXE file, I’d suggest serving a different IPXE boot file and see if that works.

                                  You’ll have to modify your router DHCP settings to serve a different file (eg ipxe.pxe instead of undionly.kpxe)

                                  A 2 Replies Last reply Jun 7, 2019, 12:53 PM Reply Quote 1
                                  • A
                                    agray @Quazz
                                    last edited by Jun 7, 2019, 12:53 PM

                                    @Quazz My router doesn’t have the option to change the file. Let me try booting into iPXE.pxe and i’ll update you.

                                    Q 1 Reply Last reply Jun 7, 2019, 12:55 PM Reply Quote 0
                                    • Q
                                      Quazz Moderator @agray
                                      last edited by Jun 7, 2019, 12:55 PM

                                      @agray Well, if I’m following this thread correctly, the IP of the DHCP server initially is the FOG server itself, not the router.

                                      If you can’t change IPXE options on the router and still want to use its DHCP server rather than FOG DHCP, then you have to set up proxyDHCP via dnsmasq on the FOG server (and disable the dhcp server on it)

                                      A 1 Reply Last reply Jun 7, 2019, 1:00 PM Reply Quote 0
                                      • A
                                        agray @Quazz
                                        last edited by Jun 7, 2019, 1:00 PM

                                        @Quazz It might be the FOG server serving IPs. I’ve never had an issue booting to PXE and FOG with a physical machine, only this VM.

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          agray @Quazz
                                          last edited by Jun 7, 2019, 1:10 PM

                                          @Quazz I booted to iPXE.pxe but i’m sure what i’m doing with this CL to boot to FOG. I’ve tried ‘autoboot’ but i got the output “Nothing to boot: No such file or directory”

                                          Q 1 Reply Last reply Jun 7, 2019, 1:14 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            16/47
                                            Last post

                                          197

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project