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

    Virtualbox and TFTP

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    6
    5.9k
    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.
    • T
      Theo Hopman
      last edited by

      Hi all. I’m trying to build a FOG 1.1.2 test setup using Virtualbox. Unfortunately TFTP isn’t working right, which is perhaps symptomatic of deeper problems.

      Here’s my setup:
      Host: Win8.1 laptop; 192.168.56.1 on host-only network
      FOG VM: Ubuntu 14.04 LTS server, with DHCP server enabled
      eth0: NAT network with Virtualbox DHCP server disabled; static IP 10.0.2.2
      eth1: Host-only network with DHCP disabled; static IP 192.168.56.240
      Test VM: NAT network; PXE boot enabled; temporarily running Linux; DHCP-served address is 10.0.2.10

      I’m using the NAT network so the VMs can access the internet as well as each other; the Host-only network is so I can ssh to the FOG VM. (I know I’m supposed to be able to do port forwarding over the NAT network, but it too doesn’t work; perhaps this is related?)

      When I skip the PXE boot on the test VM, it correctly receives IP configuration from the FOG server. I can ping back and forth between the two VMs, although ping from the FOG VM to the Test VM has initial packet loss if it hasn’t been done in a while.

      The TFTP server is running on the FOG VM. I can successfully do tftp -v 10.0.2.2 -c get undionly.kpxe on the Test VM, but only after pinging the Test VM from the FOG server. Similarly I can ssh from the Test VM to the FOG VM only after pinging the Test VM.

      ssh from the host works perfectly. tftp from the host does not work, timing out.

      When try booting the Test VM using PXE, I get the error PXE-E32: TFTP open timeout.

      Any suggestions?

      TIA

      THeo

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        To work properly over tftp, You should really but the Network in bridged adaptor mode.

        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
        • T
          Theo Hopman
          last edited by

          [quote=“Tom Elliott, post: 31716, member: 7271”]To work properly over tftp, You should really but the Network in bridged adaptor mode.[/quote]

          I was hoping not to have to do that 😕 I’d like to tinker with the VM system at home and at work (hence installation on my laptop) and the differing IP address ranges will likely make this difficult. Not to mention at work I haven’t figured out how to get an IP address via DHCP over a bridged wireless card.

          Does PXE booting with NAT (Section 6.3.2 in the Virtualbox manual) work?

          THeo

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            I don’t think it does, not well at least.

            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
            • T
              Theo Hopman
              last edited by

              [quote=“Tom Elliott, post: 31716, member: 7271”]To work properly over tftp, You should really but the Network in bridged adaptor mode.[/quote]

              Well, it’s a brute-force approach, but I was able to get tftp booting to work without having to bridge. It turns out that it also works on a Virtualbox host-only network. I ended up putting the host, FOG VM and test VM on a host-only network with the FOG VM as the DHCP server. For internet connectivity I added a third VM running pfSense with one network interface on the host-only network and one bridged interface.

              THeo

              1 Reply Last reply Reply Quote 0
              • V
                VincentJ Moderator
                last edited by

                you could try having a pfsense VM do your routing.

                pfsense VM with 2 NICs, one NAT, one internal.
                other VMs have internal NICs, pfsense can handle your DHCP easily enough.

                I do this with bridged NIC instead of NAT… but might work.

                if your serious, drop the wireless and get Ethernet.

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

                208

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project