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

Using a KVM/Libvirt VM as Master Image- Odd pxe boot issues

Scheduled Pinned Locked Moved
FOG Problems
4
9
3.3k
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.
  • M
    mxc
    last edited by Mar 6, 2016, 9:56 AM

    Hi all,

    We have some VMS which we use to image for a bunch of machines in our training room. We updates those and refresh the master image on FOG from them. There are some differences in how the PXE boot works with the VMs compared to the physical machines:

    1. For an Ubuntu VM we have to intervene and press F8 to get pxe boot to happen. If not the pxe boot times out and the vms boots. On our physical machines doing nothing will cause the PXE environment to boot without issue.

    2. We have one Windows XP machine which is used for the trainers machines as there is one course which requires PDF slides that need one to authenticate to a secure server ever time they are displayed (I know its really stupid but its not up to us.) Unfortunately this features doesn’t work in the PDF viewers on Linux so we use the Windows XP vm to display the slides. This VM won’t boot to PXE no matter what. The PXE boot process starts but it always fails to find anything and ends up booting the VM.

    Any ideas why there are these different behavious? I should imagine that once the bios start booting PXE there shouldn’t be any difference in the process of locating the pxe image file, downloading it and booting to the fog menu as this all happens before the OS boots up?

    Thanks

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Mar 6, 2016, 8:02 AM Mar 6, 2016, 2:01 PM

      @mxc Is Wake-on-LAN used when those things happen? Weird question but I’ve seen machines that react differently (PXE vs. local disk) when started by WOL… I guess this is not the case for you but just asking to make sure.

      Are you absolutely sure the PXE times out on the ubuntu VMs? Can you take a screenshot/picture/video of the error you see when it times out?

      The best would be if you’d install wireshark on your VM server machine. Then capture the network packets going between the client and the FOG server. Wireshark display filter bootp || tftp and then save as a PCAP file. We can have a look and hopefully will find out what’s going on. I’ve looked at dozens of PCAP files over the years and I pretty much always found out what is causing the issue. If you server is a linux host you can use tcpdump -i <network-interface> -w file.pcap port 67 or port 68 or port 69 on the console.

      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

      M 1 Reply Last reply Mar 7, 2016, 6:31 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by george1421 Mar 6, 2016, 9:48 AM Mar 6, 2016, 3:47 PM

        Since I don’t know KVM you may need to explain with your issue #1, what function does F8 perform. When pxe times out what is the error code displayed? The error should be something like PXE-EXX. I can say for ESXi, setting to pxe boot happens every time without having to touch the keyboard.

        Along with what Sebastian said, some bios has the option to do different things when being woke up by WOL. On some bios you can configure it to PXE boot when it receives a WOL command but boot normally on a traditional power up/resume.

        For your second issue, is this on the same visualization infrastructure as issue #1. If you remove the OS from the equation are both VMs acting exactly the same? When you say they fail, what are they doing?

        While I don’t think this is a factor here yet (you are not booting yet), what version of FOG are you using. If you are using a newer version of FOG, look at the FOG management screen, there is a cloud in the upper part of the screen. What numbers do you see in that cloud?

        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!

        M 1 Reply Last reply Mar 7, 2016, 6:28 PM Reply Quote 0
        • M
          mxc @george1421
          last edited by Mar 7, 2016, 6:28 PM

          Hi @george1421

          The F12 is the option that SEABIOS uses to allow one to interrupt the boot process to choose which device to boot. It can be configured to boot straight into PXE mode if desired.

          I think I may have been mistaken on the need to push F8. The F8 settings come from my dnsmasq configuration file. I am not sure if its needed but it was added a year ago to get things working so its just been left there.

          So in short the Ubuntu PXE boot in the vm works fine.

          The windows vm is on the same infrastructure. It appears never to download anything from the tftp server. I will run a tcpdump on the tftp server tomorrow and see what gives.

          Thanks for the help.

          1 Reply Last reply Reply Quote 0
          • M
            mxc @Sebastian Roth
            last edited by Mar 7, 2016, 6:31 PM

            Hi @Sebastian-Roth,

            I think I was wrong in my understanding that the Ubuntu instance times out. I have been trying so many things while also doing a full days work I get a bit lost 🙂

            Will do the wireshark dump tomorrow.

            kind regards

            1 Reply Last reply Reply Quote 0
            • M
              mxc
              last edited by Mar 8, 2016, 11:54 AM

              I know this is going to sound weird but the Linux KVM image started failing to find the tftp server as well. Once I set up tcpdump to investigate on the fog server it all started working.

              I tried the same with the windows image and now its working too. Only straw I can cluck at here is latency of some kind in the vm network layer. Maybe by delaying the boot up it gave the dhcp server time to respond?

              Will see what I experience going forward and try and build up a conceptual model of what is going on so I can test and verify.

              W 1 Reply Last reply Mar 8, 2016, 6:15 PM Reply Quote 0
              • W
                Wayne Workman @mxc
                last edited by Mar 8, 2016, 6:15 PM

                @mxc It could be something as simple as an IP conflict or a bad patch cable. Check the simple things first.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 2
                • S
                  Sebastian Roth Moderator
                  last edited by Mar 11, 2016, 10:52 AM

                  @mxc Any news on this?? PCAP file?

                  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
                  • S
                    Sebastian Roth Moderator
                    last edited by Mar 22, 2016, 11:03 AM

                    @mxc bumping this…

                    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
                    • First post
                      Last post

                    162

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project