Categories

  • 13k Topics
    115k Posts
    R

    Hi,

    I am using FOG working-1.6 branch. Even I did not modified anything installer/updater complains about “Detected a web certificate managed outside FOG” every time. Is this a problem? How can I fix it?

    Regards,

    Rahman

    root@xxxxxx:~# /root/fogproject/bin/updatefog.sh * FOG Update Git path: /root/fogproject Channel: beta (working-1.6) * Continue with this update? (Y/N) y * Fetching FOG (working-1.6)..................................OK * Checking out working-1.6....................................OK * Fast-forwarding to origin/working-1.6.......................OK Installing LSB_Release as needed * Attempting to get release information.......................Done ================================== === ==== ===== ==== === ========= == === == === === ======== ==== == ==== === === ======== ==== == ========= === ==== ==== == ========= === ======== ==== == === === === ======== ==== == ==== === === ========= == === == === === ========== ===== ==== ================================== ===== Free Opensource Ghost ====== ================================== ============ Credits ============= = https://fogproject.org/Credits = ================================== == Released under GPL Version 3 == ================================== Version: 1.6.0-beta.5650 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings Starting Debian based Installation ###################################################################### # FOG now has everything it needs for this setup, but please # # understand that this script will overwrite any setting you may # # have setup for services like DHCP, apache, pxe, tftp, and NFS. # ###################################################################### # It is not recommended that you install this on a production system # # as this script modifies many of your system settings. # ###################################################################### # This script should be run by the root user. # # It will prepend the running with sudo if root is not set # ###################################################################### # Please see our wiki for more information at: # ###################################################################### # https://wiki.fogproject.org/wiki/index.php # ###################################################################### * Here are the settings FOG will use: * Base Linux: Debian * Detected Linux Distribution: Debian GNU/Linux * Interface: ens18 * Server IP Address: 10.xxxxx * Server Subnet Mask: 255.255.255.0 * Hostname: xxxxxx * Installation Type: Normal Server * Internationalization: No * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. 10.xxxxx) * Option 067/filename is the bootfile, per client architecture: | BIOS / legacy undionly.kkpxe | 32-bit UEFI i386-efi/snponly.efi | 64-bit UEFI secureboot/snponly-shimx64.efi | ARM64 UEFI secureboot/arm64-efi/snponly-shimaa64.efi * The secureboot/ files are the signed chain. They boot the same | whether Secure Boot is enabled or not, so they are the right | answer for every 64-bit UEFI client, not just the ones enforcing | it. There is no signed 32-bit chain -- those clients must have | Secure Boot disabled to netboot at all. | See https://docs.fogproject.org/en/latest/secure-boot-netboot * Send OS Name, OS Version, and FOG Version: No * Web protocol: https * Netboot (PXE) protocol: http * Force HTTP->HTTPS redirect: No * Web certificate chains to a public root: No * Rebuild iPXE with your CA: No * Are you sure you wish to continue (Y/N) y * Installation Started * Testing internet connection.................................Done * Adjusting repository (can take a long time for cleanup).....OK * Preparing Package Manager...................................OK * Reading package state.......................................OK * Packages to be installed: apache2 attr bc build-essential cpp curl efitools g++ gawk gcc gcc-aarch64-linux-gnu genisoimage git gzip htmldoc isolinux jq lftp libapache2-mod-php libc6 libcurl4t64 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-json php-ldap php-mbstring php-mysql php-ssh2 sbsigntool sudo tar tftpd-hpa tftp-hpa unzip vsftpd wget zlib1g * Skipping package: apache2.................................(Already Installed) * Skipping package: attr....................................(Already Installed) * Skipping package: bc......................................(Already Installed) * Skipping package: build-essential.........................(Already Installed) * Skipping package: cpp.....................................(Already Installed) * Skipping package: curl....................................(Already Installed) * Skipping package: efitools................................(Already Installed) * Skipping package: g++.....................................(Already Installed) * Skipping package: gawk....................................(Already Installed) * Skipping package: gcc.....................................(Already Installed) * Skipping package: gcc-aarch64-linux-gnu...................(Already Installed) * Skipping package: genisoimage.............................(Already Installed) * Skipping package: git.....................................(Already Installed) * Skipping package: gzip....................................(Already Installed) * Skipping package: htmldoc.................................(Already Installed) * Skipping package: isolinux................................(Already Installed) * Skipping package: jq......................................(Already Installed) * Skipping package: lftp....................................(Already Installed) * Skipping package: libapache2-mod-php......................(Already Installed) * Skipping package: libc6...................................(Already Installed) * Skipping package: libcurl4t64.............................(Already Installed) * Skipping package: liblzma-dev.............................(Already Installed) * Skipping package: m4......................................(Already Installed) * Skipping package: mariadb-client..........................(Already Installed) * Skipping package: mariadb-server..........................(Already Installed) * Skipping package: net-tools...............................(Already Installed) * Skipping package: nfs-kernel-server.......................(Already Installed) * Skipping package: openssh-server..........................(Already Installed) * Skipping package: php.....................................(Already Installed) * Skipping package: php-bcmath..............................(Already Installed) * Skipping package: php-cli.................................(Already Installed) * Skipping package: php-curl................................(Already Installed) * Skipping package: php-fpm.................................(Already Installed) * Skipping package: php-gd..................................(Already Installed) * Skipping package: php-json................................(Already Installed) * Skipping package: php-ldap................................(Already Installed) * Skipping package: php-mbstring............................(Already Installed) * Skipping package: php-mysql...............................(Already Installed) * Skipping package: php-ssh2................................(Already Installed) * Skipping package: sbsigntool..............................(Already Installed) * Skipping package: sudo....................................(Already Installed) * Skipping package: tar.....................................(Already Installed) * Skipping package: tftpd-hpa...............................(Already Installed) * Skipping package: tftp-hpa................................(Already Installed) * Skipping package: unzip...................................(Already Installed) * Skipping package: vsftpd..................................(Already Installed) * Skipping package: wget....................................(Already Installed) * Skipping package: zlib1g..................................(Already Installed) * Updating packages as needed.................................OK * Installing package: php8.4-ssh2.............................OK * Confirming package installation * Checking package: apache2...................................OK * Checking package: attr......................................OK * Checking package: bc........................................OK * Checking package: build-essential...........................OK * Checking package: cpp.......................................OK * Checking package: curl......................................OK * Checking package: efitools..................................OK * Checking package: g++.......................................OK * Checking package: gawk......................................OK * Checking package: gcc.......................................OK * Checking package: gcc-aarch64-linux-gnu.....................OK * Checking package: genisoimage...............................OK * Checking package: git.......................................OK * Checking package: gzip......................................OK * Checking package: htmldoc...................................OK * Checking package: isolinux..................................OK * Checking package: jq........................................OK * Checking package: lftp......................................OK * Checking package: libapache2-mod-php........................OK * Checking package: libc6.....................................OK * Checking package: libcurl4t64...............................OK * Checking package: liblzma-dev...............................OK * Checking package: m4........................................OK * Checking package: mariadb-client............................OK * Checking package: mariadb-server............................OK * Checking package: net-tools.................................OK * Checking package: nfs-kernel-server.........................OK * Checking package: openssh-server............................OK * Checking package: php.......................................OK * Checking package: php-bcmath................................OK * Checking package: php-cli...................................OK * Checking package: php-curl..................................OK * Checking package: php-fpm...................................OK * Checking package: php-gd....................................OK * Checking package: php-json..................................OK * Checking package: php-ldap..................................OK * Checking package: php-mbstring..............................OK * Checking package: php-mysql.................................OK * Checking package: php8.4-ssh2...............................OK * Checking package: sbsigntool................................OK * Checking package: sudo......................................OK * Checking package: tar.......................................OK * Checking package: tftpd-hpa.................................OK * Checking package: tftp-hpa..................................OK * Checking package: unzip.....................................OK * Checking package: vsftpd....................................OK * Checking package: wget......................................OK * Checking package: zlib1g....................................OK * Configuring services * Setting up fogproject user..................................Skipped * Ensuring fogproject home directory..........................OK * Locking fogproject as a system account......................OK * Setting up fogproject password..............................OK * Stopping FOGMulticastManager.service Service................OK * Stopping FOGImageReplicator.service Service.................OK * Stopping FOGSnapinReplicator.service Service................OK * Stopping FOGScheduler.service Service.......................OK * Stopping FOGPingHosts.service Service.......................OK * Stopping FOGSnapinHash.service Service......................OK * Stopping FOGImageSize.service Service.......................OK * Stopping FOGFileDeleter.service Service.....................OK * Stopping FOGPluginRunner.service Service....................OK * Stopping FOGRetentionRunner.service Service.................OK * Stopping FOGAgentReleaseSync.service Service................OK * Setting up and starting MySQL...............................OK * Testing connection to database..............................OK * Setting up MySQL user and database..........................Skipped * Backing up user reports.....................................Done * Backing up customizations...................................OK * Downloading plugins (v1.6.27)...............................OK * Stopping web service........................................OK * Setting up Apache and PHP files.............................OK * Testing and removing symbolic links if found................OK * Backing up old data.........................................OK * Copying new files to web folder.............................OK * Dropping the stale class file lists.........................OK * Creating config file........................................OK * Creating paths file.........................................OK * Creating redirection index file.............................Skipped * Downloading kernel, init and fog-client binaries............Done * Copying binaries to destination paths.......................OK * Signing FOS kernels and Memtest86+ for Secure Boot..........Done * Installing Secure Boot signing helper.......................Done * Publishing Secure Boot enrollment kit.......................Done * Publishing Secure Boot variable updates.....................Done * Enabling apache2 and fpm services on boot...................OK * Detected a web certificate managed outside FOG: the vhost serves /etc/fog/pki/web/leaf/.webLeaf.pem, outside FOG's /opt/fog/snapins/ssl and PKI tree * FOG will keep managing this vhost, but will not re-issue or re-key that certificate. Undo by pointing /etc/fog/pki/web/leaf/.webLeaf.pem back inside /etc/fog/pki/web. * Publishing client communication certificate.................OK * Creating auth pub key and cert..............................OK * Resetting SSL Permissions...................................OK * Setting up Apache virtual host (normal).....................OK * Testing Apache configuration................................OK * Configuring PHP FPM.........................................Done * Starting and checking status of web services................OK * Changing permissions on apache log files....................OK * Setting up FOG Services.....................................OK * Creating FOG plugin runner log directory....................OK * Creating FOG retention runner log directory.................OK * Creating FOG agent release sync log directory...............OK * Creating FOS report log directory...........................OK * Creating FOG fault log directory............................OK * Setting FOG service master log ownership....................OK * Creating FOG cache directory................................OK * Creating FOG agent directory................................OK * Creating FOG agent versions directory.......................OK * Creating FOG session directory..............................OK * Creating FOG plugin directory...............................OK * Checking web server serves FOG..............................Done * Backing up database.........................................Done * The database schema is already at version 446 -- no migration to apply. Checking required rows. * Updating Database...........................................OK * Verifying database schema...................................Done * Update fogstorage database password.........................OK * Granting access to fogstorage database user.................Skipped * Setting up storage..........................................OK * Downloading iPXE Secure Boot binaries (v2.0.0-fog.9)........OK * Setting up and starting DHCP Server.........................Skipped * A sample Kea DHCP config for a dedicated/external DHCP server was | written to: /var/www/html/fog/kea-dhcp4.conf.fog-sample | Copy it to your DHCP server as /etc/kea/kea-dhcp4.conf and adjust the | subnet/pool/routers/domain-name-servers to match that network. | next-server is already set to this FOG server (10.xxxxx). * Downloading iPXE binaries (v2.0.0-fog.9)....................OK * Configuring default iPXE file...............................OK * Setting up and starting TFTP Server.........................OK * Restoring customizations....................................OK * Signing iPXE binaries for Secure Boot.......................Done (30) * Publishing local ESP boot archives..........................Done (3) * Setting up and starting VSFTP Server........................OK * Setting up FOG Snapins......................................OK * Restricting private key access..............................OK ################################################################### # The CA private key for this server is on this server, readable # # only by root: # # /etc/fog/pki/root/ca/.fogCA.key # # # # That protects it from a compromise of the web application, but # # not from a compromise of the machine. To move it to a vault: # # /opt/fog/bin/fog-offline-ca-key /mnt/vault # # # # Day to day nothing needs it. Restore it only to issue a new # # intermediate, or a certificate for a new storage node. # # # # The Secure Boot CA private key is also on this server, # # readable only by root: # # /etc/fog/pki/secureboot/ca/.fogSBCA.key # # # # Restore it to issue a new Secure Boot intermediate, or a # # new signing leaf. To move it to a vault: # # /opt/fog/bin/fog-offline-ca-key /mnt/vault --zone secureboot # ################################################################### * Installing node certificate signing helper..................Done * Installing the certificate management helper................Done * Trusting the FOG CA on this server..........................Done * Setting up UDPCast..........................................OK * Configuring UDPCast.........................................OK * Building UDPCast............................................OK * Installing UDPCast..........................................OK * Installing FOG System Scripts...............................OK * Configuring FOG System Services * Setting permissions on FOGMulticastManager.service script...OK * Enabling FOGMulticastManager.service Service................OK * Setting permissions on FOGImageReplicator.service script....OK * Enabling FOGImageReplicator.service Service.................OK * Setting permissions on FOGSnapinReplicator.service script...OK * Enabling FOGSnapinReplicator.service Service................OK * Setting permissions on FOGScheduler.service script..........OK * Enabling FOGScheduler.service Service.......................OK * Setting permissions on FOGPingHosts.service script..........OK * Enabling FOGPingHosts.service Service.......................OK * Setting permissions on FOGSnapinHash.service script.........OK * Enabling FOGSnapinHash.service Service......................OK * Setting permissions on FOGImageSize.service script..........OK * Enabling FOGImageSize.service Service.......................OK * Setting permissions on FOGFileDeleter.service script........OK * Enabling FOGFileDeleter.service Service.....................OK * Setting permissions on FOGPluginRunner.service script.......OK * Enabling FOGPluginRunner.service Service....................OK * Setting permissions on FOGRetentionRunner.service script....OK * Enabling FOGRetentionRunner.service Service.................OK * Setting permissions on FOGAgentReleaseSync.service script...OK * Enabling FOGAgentReleaseSync.service Service................OK * Starting FOGMulticastManager.service Service................OK * Starting FOGImageReplicator.service Service.................OK * Starting FOGSnapinReplicator.service Service................OK * Starting FOGScheduler.service Service.......................OK * Starting FOGPingHosts.service Service.......................OK * Starting FOGSnapinHash.service Service......................OK * Starting FOGImageSize.service Service.......................OK * Starting FOGFileDeleter.service Service.....................OK * Starting FOGPluginRunner.service Service....................OK * Starting FOGRetentionRunner.service Service.................OK * Starting FOGAgentReleaseSync.service Service................OK * Setting up NFS configuration file...........................OK * Setting up exports file.....................................OK * Setting up and starting RPCBind.............................OK * Setting up and starting NFS Server..........................OK * Linking FOG Service config /etc.............................OK * Recording FOG base path.....................................OK * Installing FOG utilities....................................OK * Ensuring node username and passwords match..................Done * Recording fog_git_path/update channel/extra server names....OK * Netboot (PXE) is using HTTP, not HTTPS. Your web UI and API are HTTPS; only iPXE's own fetches are not. iPXE validates TLS strictly and cannot be told to trust a private CA, so an HTTPS netboot against one simply fails. HTTP here is the same exposure a default install has always had, on a pre-boot network. * Secure Boot binaries ARE staged on this server, in every mode. That used to be skipped on any HTTPS install. To enroll a machine, boot it and choose 'Enroll Secure Boot Key' from the FOG menu. * To move netboot onto HTTPS, tell FOG which is true: --public-web-cert your certificate chains to a public root (needs an FQDN, not an IP) --rebuild-ipxe-with-my-ca rebuild iPXE with your CA embedded (slow, and its MOK must be enrolled before a client can netboot) Or force it outright with --netboot-proto https. * Setup complete You can now login to the FOG Management Portal using the information listed below. The login information is only if this is the first install. This can be done by opening a web browser and going to: https://xxxxx/fog/management https://xxxxx/fog/management Either works -- the certificate covers the address as well as the name, so neither is a name mismatch. The address needs no DNS; the name it is issued for is xxxxxxxxxx. Default User Information Username: xxxxxxx Password: xxxxxxxx * Update completed successfully. root@xxxxx:~#
  • Get the latest news on what's happening.
    206 Topics
    847 Posts
    Tom ElliottT

    The twenty-first release candidate for FOG 1.6.0 is available on the rc-1.6.0 branch. It reports version 1.6.0-RC-21.

    Test it on a lab or non-production server first. The upgrade from 1.5 to 1.6 is one-way: it changes the database schema, and there is no down-migration.

    Changed since RC-20

    These fixes prepare the update channels and the version number for the 1.6.0 release. They add no schema step and no UI change.

    The beta channel finds the current development line (#2014, #2015). --channel beta named working-1.6 directly. It now uses the newest working-* branch, the same way --channel rc finds the newest rc-* branch. When no beta line exists, updatefog.sh and the bootstrap installer say so and suggest --channel stable. Before, the checkout failed. The version number after 1.6.0 is correct (#2012, #2013). After the 1.6.0 tag, the patches line would report 1.6.N. The installer reads an X.Y.Z version as a FOS release tag, so it would ask for a kernel that does not exist. The patches line now reports 1.6.0.N. The required 1.5 upgrade check also runs on rc-1.6.0 (#2011). CI only.

    FOS (kernel and init), from the Latest FOS release

    An RC install or update downloads the Latest FOS release. Latest is still EXP_20261027-181357, unchanged since RC-18:

    Kernel 6.18.59, the current 6.18 LTS release. FOS verifies TLS, which is the client half of #1978. The Performance Test task. x64 and x86 boot an initramfs, not an ext2 initrd (FOGProject/fos#75). The file names stay init.xz and init_32.xz, and the boot menu does not change. /tmp is now a real RAM disk with a size limit: FOG_KERNEL_RAMDISK_SIZE sets the size, kept between 64 MB and half of the client’s memory. Warning: a customized init can no longer be loop-mounted. Add your files as an overlay cpio appended to init.xz instead: https://docs.fogproject.org/en/latest/kb/how-tos/customize-the-fos-init/ . A post-init script needs no rebuild at all: https://docs.fogproject.org/en/latest/kb/how-tos/post-init-scripts/ If a client fails to boot with this init, go to FOG Configuration > Initrd Update and install the init from EXP_20261027-155909, the last ext2 init. Then report it on FOGProject/fos#75.

    API documentation: https://docs.fogproject.org/en/latest/1.6/kb/integrations/api

    Before you upgrade

    Back up your database and /opt/fog/.fogsettings. Read the release notes: https://github.com/FOGProject/fogproject/blob/rc-1.6.0/docs/release/1.6.0-release-notes.md 1.6 removes Display Manager, Directory Cleaner, User Cleanup, Client Updater, Green FOG and the persistentgroups plugin. Their data is dropped. The site and accesscontrol plugins move into core. PHP 7.4 or later is required. Plugins built for 1.5 do not load.

    Install or update (as root)

    A 1.6 beta or RC server: run bin/updatefog.sh --channel rc from your FOG checkout. A 1.5 server installed from git: update to the current 1.5 stable, then run bin/updatefog.sh --channel rc from the checkout. A new server, or a 1.5 server installed from a tarball:
    curl -fsSL https://raw.githubusercontent.com/FOGProject/fogproject/working-1.6/bin/bootstrap.sh | bash -s -- --channel rc

    Report problems

    Open an issue at https://github.com/FOGProject/fogproject/issues. Include your FOG version, your OS, and the installer log from bin/error_logs/. Report a security problem through “Report a vulnerability” on the same repository, not in a public issue.

  • View tutorials or talk about FOG in general.
    2k Topics
    19k Posts
    Tom ElliottT

    @Dominique I can’t promise that, no.

    1.5.10 is the original release, and it is a long way behind now. It was built and tested against PHP 7.x. It may run fine on PHP 8, but I don’t know which PHP 8 version, if any, would be safe for it.

    What we do know works on PHP 8 is the current stable branch. Here is how the branches fit together:

    master is the official 1.5.10 release. We don’t work on it directly. dev-branch is where all the bug fixes and maintenance happen. stable gets everything from dev-branch rolled into it once a month.

    So stable is 1.5.10 plus a few years of fixes, PHP 8 support among them.

    If you want to move to PHP 8 before 1.6.0 comes out, I’d do it in this order:

    Snapshot the server first, so you can roll back. Update FOG to the stable branch and run the installer. Do this while you are still on PHP 7.2. Then move PHP to 8.2. On Red Hat 8 the installer will not do that for you; it installs whichever PHP module is enabled. Run dnf module reset php then dnf module enable php:8.2, then dnf distro-sync. Re-run the FOG installer, so it picks up the new PHP packages. Test the web console, a host registration, and a unicast and a multicast deploy before you call it done.

    Since this is production, your plan to wait for 1.6.0 and try the RC in a test environment first is a good one too.

  • Report bugs, request features, or get the latest progress.
    2k Topics
    21k Posts
    Tom ElliottT

    @sgennadi Thanks for this, and for the detail. You were right: the check matched no_root_squash anywhere in /etc/exports, not just on the /images/dev export.

    It is fixed now, much the way you proposed. The new nfsDevExportHasNoRootSquash() checks only the <share>/dev export. It ignores comments, other exports, and look-alike paths such as /images/dev2. Your ISO export with no_root_squash no longer triggers the warning.

    Issue: https://github.com/FOGProject/fogproject/issues/1988 1.6 (working-1.6): https://github.com/FOGProject/fogproject/pull/1989 (merged) 1.6 RC: https://github.com/FOGProject/fogproject/pull/1990 (merged) 1.5 dev-branch: https://github.com/FOGProject/fogproject/pull/1991 (merged)

    To get it now, pull dev-branch (1.5) or rc-1.6.0 (1.6) and re-run the installer. It reaches the 1.5 stable branch with the monthly roll-up on November 11th.

    The warning was only a message, so your exports were never changed. If /images/dev is already all_squash, you can ignore it until then.

47

Online

12.8k

Users

17.7k

Topics

157.3k

Posts