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

    Any UEFI client with more than 2 network interfaces

    Scheduled Pinned Locked Moved
    Hardware Compatibility
    1.5.7 fog.deployimage uefi
    3
    3
    662
    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.
    • N
      novaholic
      last edited by novaholic

      Hello, I am seeing an interesting issue with hosts that have more than 2 network interfaces when attempting to deploy images. This is only happening with UEFI based machines. I am able to reproduce this on physical and virtual machines with 3 or more NICs attached. Reducing the NIC count to 2 eliminates this issue.

      I have edited the fog.deployimage menu item to include the users credentials. This works with BIOS machines and UEFI machines with less than 2 NICs. But in a UEFI machine with more than 2 NICs when I select ‘Deploy Image’ I am prompted for the FOG users credentials. After entering the credentials the ‘Client System Information’ item runs for some reason.

      I attempted to resolve this by adding the following to the fog.deployimage parameters:

      isset ${net3/mac} && param mac3 ${net3/mac} || goto bootme
      isset ${net4/mac} && param mac4 ${net4/mac} || goto bootme
      

      I verified that these settings were applied by checking this page:
      http://<fogIP>/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

      Now, when I PXE boot to FOG, select ‘Deploy Image’ from the menu, then select any image I am immediately returned to the FOG main menu.
      The same behavior is observed when selecting ‘Boot from Hard Disk’, the FOG menu is simply refreshed.

      I think I might need to edit another script somewhere to look for more than 2 NICs.
      My best guess is editing this function in functions.sh to include net3 and net4.

      configureDefaultiPXEfile() {
          [[ -z $webroot ]] && webroot='/'
      	echo -e "#!ipxe\ncpuid --ext 29 && set arch x86_64 || set arch \${buildarch}\nparams\nparam mac0 \${net0/mac}\nparam arch \${arch}\nparam platform \${platform}\nparam product \${product}\nparam manufacturer \${product}\nparam ipxever \${version}\nparam filename \${filename}\nparam sysuuid \${uuid}\nisset \${net1/mac} && param mac1 \${net1/mac} || goto bootme\nisset \${net2/mac} && param mac2 \${net2/mac} || goto bootme\n:bootme\nchain ${httpproto}://$ipaddress${webroot}service/ipxe/boot.php##params" > "$tftpdirdst/default.ipxe"
      }
      

      Has anyone run into this behavior before? Thanks

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

        @novaholic said in Any UEFI client with more than 2 network interfaces:

        But in a UEFI machine with more than 2 NICs when I select ‘Deploy Image’ I am prompted for the FOG users credentials. After entering the credentials the ‘Client System Information’ item runs for some reason.

        Sounds really strange. I was just going to try and replicate the issue but I couldn’t. Worked all fine. Then I read again and figured that I can’t replicate in my test setup because I use VirtualBox here and that is not able to PXE boot in UEFI mode unfortunately. Maybe others can look into this.

        Don’t think I have ever seen or heard about this kind of issue you describe 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

        1 Reply Last reply Reply Quote 0
        • H
          hsela @novaholic
          last edited by

          @novaholic Hi,
          I am facing with the same problem.
          Have you managed to fix it?

          Thanks

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

          224

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project