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

    [SOLVED] Using Preseed in PXE for autoinstallation HTTPS error

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    828
    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.
    • Jacques-OlivierJ
      Jacques-Olivier
      last edited by Jacques-Olivier

      Hi,

      We re trying to autoinstall Ubuntu 20.04 with FOG.

      Our iPXE parameters are :

      kernel tftp://${fog-ip}/os/ubuntu/20.04.01.LTS/linux
      initrd tftp://${fog-ip}/os/ubuntu/20.04.01.LTS/initrd.gz
      imgargs linux auto=true root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:/images/os/ubuntu/20.04.01.LTS/ locale=fr_FR.UTF-8 keyboard-configuration/layoutcode=fr debian-installer/allow_unauthenticated_ssl=true url=http://${fog-ip}/preseed/preseed.cfg splash ip=dhcp rw
      boot || goto MENU

      The system is booting, but when trying to get the preseed file in the debian-installer, we have an error about FOG CA-CERT as we have installed FOG with the HTTPS option.
      In the debian-installer i open a console and execute :
      wget http:(or https)//ip_of_my_FOG_server/preseed/preseed.cfg , i also have the error of certificate.

      If using :
      wget --no-check-certificate http:(or https)//ip_of_my_FOG_server/preseed/preseed.cfg
      It is downloading the file.

      I thought the option debian-installer/allow_unauthenticated_ssl=true in the imgargs options should correct this, but it is not.

      Any idea ?

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

        @Jacques-Olivier Just found this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913740

        It talks about an issue where it would not properly use the option debian-installer/allow_unauthenticated_ssl=true when the request is being redirected from HTTP to HTTPS.

        So try changing your iPXE parameters to “… debian-installer/allow_unauthenticated_ssl=true url=https://${fog-ip}/preseed/preseed.cfg splash ip=dhcp rw” and see if that works.

        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

        Jacques-OlivierJ 1 Reply Last reply Reply Quote 1
        • Jacques-OlivierJ
          Jacques-Olivier @Sebastian Roth
          last edited by

          @sebastian-roth Hey thanks a lot, it worked!

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

          276

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project