• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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
846
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.
  • J
    Jacques-Olivier
    last edited by Jacques-Olivier Dec 4, 2020, 4:55 AM Dec 4, 2020, 10:04 AM

    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 Dec 4, 2020, 10:28 AM

      @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

      J 1 Reply Last reply Dec 4, 2020, 10:54 AM Reply Quote 1
      • J
        Jacques-Olivier @Sebastian Roth
        last edited by Dec 4, 2020, 10:54 AM

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

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

        149

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project