Wednesday, December 2, 2026

Fedora 45 Server OverlayFS BTRFS/XFS setup

The flawless execution of Anaconda's storage upload and configuration phase for complex Btrfs/XFS layouts in the Fedora 45 Server release versus the buggy behavior in Beta versions stems primarily from a structural shift in how Anaconda queues and processes complex storage actions.
In the Final F45 Release: Blivet received critical stabilization patches to properly sync, lock, and isolate sequential tasks. The "uploading phase" now strictly ensures that block layer mappings (dm-thin, LUKS, and Btrfs top-level pools) are fully committed and recognized by the kernel before nested subvolumes or XFS formatting operations are fired. The execution phase in Beta versions frequently ran into early-boot hangs and formatting timeouts because Anaconda’s action loop didn’t sleep long enough to let udevd finalize the block symlinks for complex layouts. The final GA (General Availability) release integrated better polling loops, forcing the upload phase to dynamically pause until the environment's storage tables settled, resulting in a smooth write phase. 

 Final disk layout

  boris@fedora45Server:~$ hostnamectl
    Static hostname: fedora45Server
          Icon name: computer-desktop
            Chassis: desktop 🖥
  Chassis Asset Tag: To be filled by O.E.M.
         Machine ID: a7e6ea1c6fbe4e9b97eebc36abb5b731
            Boot ID: 3ee732d6e51e426ba8de040ab4282f81
   Operating System: Fedora Linux 45 (Server Edition)
        CPE OS Name: cpe:/o:fedoraproject:fedora:45
     OS Support End: Wed 2027-12-08
OS Support Remaining: 1y 5d                              
             Kernel: Linux 7.3.6-300.fc45.x86_64
       Architecture: x86-64
    Hardware Vendor: Micro-Star International Co., Ltd.
     Hardware Model: MS-7C37
   Hardware Version: 3.0
   Firmware Version: H.60
      Firmware Date: Wed 2019-11-06
       Firmware Age: 7y 3w 5d                           
 

boris@fedora45Server:~$ findmnt -t btrfs
TARGET        SOURCE                       FSTYPE OPTIONS
/             /dev/nvme0n1p4[/@]           btrfs  rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=285,subvol=/@
├─/home       /dev/nvme0n1p4[/@home-0]     btrfs  rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home-0
├─/.snapshots /dev/nvme0n1p4[/snapshots-0] btrfs  rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/snapshots-0
├─/var/cache  /dev/nvme0n1p4[/@cache-0]    btrfs  rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@cache-0
└─/var/log    /dev/nvme0n1p4[/@log-0]      btrfs  rw,relatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@log-0

 
boris@fedora45Server:~$ df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/nvme0n1p4 btrfs     200G  7.8G  192G   4% /
devtmpfs       devtmpfs  4.0M     0  4.0M   0% /dev
tmpfs          tmpfs      16G   92K   16G   1% /dev/shm
efivarfs       efivarfs  128K   27K   97K  22% /sys/firmware/efi/efivars
tmpfs          tmpfs     6.3G  2.1M  6.3G   1% /run
none           tmpfs     1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
none           tmpfs     1.0M     0  1.0M   0% /run/credentials/systemd-resolved.service
/dev/nvme0n1p4 btrfs     200G  7.8G  192G   4% /.snapshots
/dev/nvme0n1p4 btrfs     200G  7.8G  192G   4% /home
tmpfs          tmpfs      16G  8.0K   16G   1% /tmp
/dev/nvme0n1p4 btrfs     200G  7.8G  192G   4% /var/cache
/dev/nvme0n1p4 btrfs     200G  7.8G  192G   4% /var/log
/dev/nvme0n1p2 ext4      3.9G  475M  3.2G  13% /boot
/dev/nvme0n1p3 xfs       256G  5.0G  251G   2% /opt
/dev/nvme0n1p1 vfat      599M  8.0M  591M   2% /boot/efi
tmpfs          tmpfs     3.2G   96K  3.2G   1% /run/user/1000
tmpfs          tmpfs     3.2G   40K  3.2G   1% /run/user/0


boris@fedora45Server:~$ lsblk -f
NAME                                FSTYPE      FSVER    LABEL         UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sr0                                                                                                                           
zram0                               swap        1        zram0         2aeccc50-ff57-4e76-a766-b8ecfe99eb23                  [SWAP]
nvme0n1                                                                                                                       
├─nvme0n1p1                         vfat        FAT32                  9E90-A572                               590.9M     1% /boot/efi
├─nvme0n1p2                         ext4        1.0                    6d5d3508-d4a4-4fae-bf2e-9ffc4c98f5c4      3.2G    12% /boot
├─nvme0n1p3                         xfs                                ff2da0c2-b033-4be3-b0e1-31731b34affe    250.9G     2% /opt
└─nvme0n1p4                         btrfs                fedora_volume a36fa7c4-c350-4d6d-b943-3e52c969739b    191.9G     4% /var/log
                                                                                /var/cache
                                                                                 /home

                                                                                 /.snapshots
                                                                                  /

=========================

OverlayFS BTRFS/XFS setup

=========================

$ sudo dnf install btrfs-assistant snapper gawk inotify-tools libdnf5-plugin-actions git make -y
$ sudo dnf install python3-btrfsutil dracut-live -y 

========================
Trick Snapper Method
========================
$ sudo umount /.snapshots
$ sudo rmdir    /.snapshots
$ sudo snapper -c root create-config  /
$ sudo mount  /.snapshots

Create the missing directory: 

$ sudo mkdir -p /boot/grub
$ sudo dnf install grub2-tools 

# Fix binary compatibility wrapper
$ sudo ln -sf /usr/bin/grub2-script-check /usr/bin/grub-script-check
$ cd grub-btrfs
 
================
UNDER grub-config
================
$ nano config
GRUB_BTRFS_MKCONFIG="/usr/bin/grub2-mkconfig"
GRUB_BTRFS_GRUB_DIRNAME="/boot/grub2"
GRUB_BTRFS_SCRIPT_CHECK="grub2-script-check"
===========================================

# Compile package targets
$ sudo make install 
 
===============================
sudo nano /etc/default/grub-btrfs/config
===============================
GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS=
="'rd.live.overlay.overlayfs=1'" 
==============================
 Overlay Setup
==============================
$ echo 'add_dracutmodules+=" overlayfs "' | sudo tee /etc/dracut.conf.d/overlayfs.conf
$ sudo dracut -f --regenerate-all
$ sudo rm -f /boot/grub2/grub-btrfs.new /tmp/grub-btrfs.*
$ sudo /etc/grub.d/41_snapshots-btrfs
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
$ sudo systemctl daemon-reload
$ sudo systemctl enable --now grub-btrfsd
 
============================================
 Setup KDE Plasma 6.8.3 on top of Fedora 45 Server (*)

=========================================== 

sudo dnf install -y @kde-desktop-environment
echo "export KWIN_FORCE_SW_CURSOR=1" | sudo tee /etc/profile.d/kwin-software-cursor.sh
sudo chmod +x /etc/profile.d/kwin-software-cursor.sh
sudo dnf install -y dbus-daemon plasma-workspace-wayland
sudo systemctl stop kmscon
sudo systemctl disable kmscon
KWIN_FORCE_SW_CURSOR=1 dbus-run-session startplasma-wayland

GDM may be used to automate login and logout to KDE Plasma 6.8.3 running on top of Fedora 45 server 

Main instance recovery via Overlay instances available via Grub Sub-menu follows known guide lines 



REFERENCES

(*) Assisted by Google AI 

 P.S. Disaster recovery script via Overlay instance

#!/bin/bash
# -------------------------------------------------------------------------
# BTRFS-RECOVERY-WIZARD: Safe Interactive Rollback Tool with Dry-Run Mode
# -------------------------------------------------------------------------
set -euo pipefail

# Hardware & Layout Configurations
DEV="/dev/nvme1n1p4"
MNT_POINT="/mnt/btrfs-top"
DRY_RUN=true

# Formatting helpers
echo_blue()   { echo -e "\033[1;34m$1\033[0m"; }
echo_green()  { echo -e "\033[1;32m$1\033[0m"; }
echo_yellow() { echo -e "\033[1;33m$1\033[0m"; }
echo_red()    { echo -e "\033[1;31m$1\033[0m"; }

# 1. Enforcement Check
if [ "$EUID" -ne 0 ]; then
    echo_red "[-] Error: This recovery wizard must be run as root/sudo."
    exit 1
fi

echo_blue "=========================================================="
echo_blue "BTRFS LIVE OVERLAYFS SYSTEM RECOVERY WIZARD"      
echo_blue "=========================================================="

# 2. Mode Selection Menu
echo "Select Execution Mode:"
echo "1) Safe Dry-Run Mode (Preview changes without writing to disk)"
echo "2) Production Live Mode (Execute actual subvolume recovery)"
read -rp "Enter choice [1-2]: " MODE_CHOICE

if [ "$MODE_CHOICE" -eq 2 ]; then
    DRY_RUN=false
    echo_yellow "[!] WARNING: Production Live Mode selected! Changes will be written to disk."
else
    DRY_RUN=true
    echo_green "[*] Safe Dry-Run Mode activated. No disk changes will occur."
fi

# 3. Mount top-level tree to parse snapshots
echo_blue "\n[Step 1/5] Mounting Btrfs SubvolID=5 partition layout..."
if [ "$DRY_RUN" = true ]; then
    echo_green "[DRY-RUN] Command: mkdir -p $MNT_POINT"
    echo_green "[DRY-RUN] Command: mount -o subvolid=5 $DEV $MNT_POINT"
else
    mkdir -p "$MNT_POINT"
    if ! mountpoint -q "$MNT_POINT"; then
        mount -o subvolid=5 "$DEV" "$MNT_POINT"
    fi
fi

# 4. Interactive Snapshot Parsing
echo_blue "\n[Step 2/5] Available Snapper Timelines Target Pools:"
if [ "$DRY_RUN" = true ]; then
    echo_green "[DRY-RUN] Displaying current live snapshots list for preview:"
    # Temporarily mount read-only to show user choices during a dry-run
    TMP_MNT=$(mktemp -d)
    mount -o subvolid=5,ro "$DEV" "$TMP_MNT"
    btrfs subvolume list "$TMP_MNT" | grep "snapshots-0/" || true
    umount "$TMP_MNT" && rmdir "$TMP_MNT"
else
    btrfs subvolume list "$MNT_POINT" | grep "snapshots-0/" || true
fi

echo_yellow "\nEnter the target SNAPSHOT ID number you wish to restore as the new root (e.g., 12):"
read -rp "Recovery Target ID: " RECOVERY_ID

# Verify paths based on your Anaconda Blivet 'snapshots-0' layout format
SOURCE_SNAP="snapshots-0/${RECOVERY_ID}/snapshot"

# 5. Core Execution Stage (Simulated vs Real)
echo_blue "\n[Step 3/5] Evaluating Root Subvolume Reconfiguration Layer..."
if [ "$DRY_RUN" = true ]; then
    echo_green "[DRY-RUN] Target subvolume source: $MNT_POINT/$SOURCE_SNAP"
    echo_green "[DRY-RUN] Action: mv $MNT_POINT/@ $MNT_POINT/@_broken_$(date +%Y%m%d)"
    echo_green "[DRY-RUN] Action: btrfs subvolume snapshot $MNT_POINT/$SOURCE_SNAP $MNT_POINT/@"
else
    if [ ! -d "$MNT_POINT/$SOURCE_SNAP" ]; then
        echo_red "[-] Error: Snapshot directory '$MNT_POINT/$SOURCE_SNAP' does not exist."
        umount "$MNT_POINT" || true
        exit 1
    fi

    TIMESTAMP=$(date +%Y%m%d_%H%M%S)
    echo_yellow "[+] Moving active broken root subvolume '@' to '@_broken_${TIMESTAMP}'..."
    mv "$MNT_POINT/@" "$MNT_POINT/@_broken_${TIMESTAMP}"

    echo_yellow "[+] Generating clean clone from Snapshot ${RECOVERY_ID} directly into '@' slot..."
    btrfs subvolume snapshot "$MNT_POINT/$SOURCE_SNAP" "$MNT_POINT/@"
fi

# 6. Unmount Layer
echo_blue "\n[Step 4/5] Flushing transaction caches..."
if [ "$DRY_RUN" = true ]; then
    echo_green "[DRY-RUN] Command: umount $MNT_POINT"
else
    umount "$MNT_POINT"
    echo_green "[+] Raw partition structure successfully unmounted."
fi

# 7. Finalization Banner
echo_blue "\n[Step 5/5] Finalizing State Execution Matrix..."
if [ "$DRY_RUN" = true ]; then
    echo_green "=========================================================="
    echo_green "     DRY-RUN COMPLETE: No structural errors found in pipeline.   "
    echo_green "=========================================================="
else
    echo_green "=========================================================="
    echo_green "     RECOVERY COMPLETE: Snapshot ${RECOVERY_ID} is now promoted to root. "
    echo_green "     Please issue 'sudo reboot' to initialize clean system state. "
    echo_green "=========================================================="
fi 

Friday, November 20, 2026

Agama Unattended installation remote Tumbleweed KVM Guests via multi-threaded Agama-ProxyV2.service on top of Tumbleweed Server

Optimal Thread Performance via Tumbleweed's Upstream Kernel
When your Python-based web server spawns a native OS thread to handle each incoming GET ./profile.json request: * Efficient Futex & GIL Release: Tumbleweed delivers the latest vanilla Linux kernels.These upstream kernels feature highly optimized scheduler implementations and fast user-space locking. Because your threads are primarily handling I/O operations (fetching  
profile.json and sending it over network sockets),the Python Global  
Interpreter Lock (GIL) is immediately released during network waits. The latest kernel maximizes the scheduling efficiency of these  
released threads across your  raw CPU cores. * Direct Page Cache Access: On a bare-metal server, the first  
thread reading profile.json pulls it from disk.Linux immediately  
retains that file in the bare-metal page cache (RAM). Subsequent  
concurrent threads spawned by incoming requests serve the file  
directly out of host memory at native bus speeds. * Zero Dependency Overhead: Operating directly on your unique Tumbleweed instance allows the script (as agama-proxyV2)  
to run out-of-the-box using python's built-in http.server and  
socketserver modules. There is no need to compile complex  
wheels or maintain external framework packages. * Native Network Stack Performance: Serving profiles straight  
to physical Network Interface Cards (NICs) ensures that  
your multi-threaded server responds at maximum physical  
line rate. It avoids the latency overhead associated with virtual  
network bridges or packet replication typical inside guest OS  
environments.
==================================================
Multithreaded version of agama-proxyV2.py 
=========================================
# cat agama-proxyV2.py
import http.server
import socketserver
import json
import os

# Set the path to where your developers drop the profile.json file
PROFILE_DIR = "/home/boris/Downloads"
try:
    os.chdir(PROFILE_DIR)
except Exception as e:
    print(f"[Initialization Error] Could not change directory to {PROFILE_DIR}: {e}")

class Agama25Transformer(http.server.SimpleHTTPRequestHandler):

    def address_string(self):
        """Return the raw IP address directly, bypassing slow reverse DNS lookups."""
        return self.client_address[0]

    def do_GET(self):
        if self.path == "/profile.json":
            try:
                # Load the raw file exported by your developers or Web UI
                with open("profile.json", "r", encoding="utf-8") as f:
                    data = json.load(f)

                # Check if "user" key exists and matches the problematic array layout
                if "user" in data:
                    raw_user = data["user"]

                    if isinstance(raw_user, list) and len(raw_user) > 0:
                        print("[Proxy Engine] Found user array block. Flattening structure for Agama 25.0.0...")
                        data["user"] = raw_user[0]

                    elif isinstance(raw_user, dict) and "users" in raw_user:
                        print("[Proxy Engine] Found nested users dictionary block. Unwrapping entries...")
                        if isinstance(raw_user["users"], list) and len(raw_user["users"]) > 0:
                            data["user"] = raw_user["users"][0]

                # Stream the newly formatted JSON bytes natively
                response_bytes = json.dumps(data).encode("utf-8")

                self.send_response(200)
                self.send_header("Content-Type", "application/json; charset=utf-8")
                self.send_header("Content-Length", str(len(response_bytes)))
                self.end_headers()
                self.wfile.write(response_bytes)
                return
            except Exception as e:
                print(f"[Proxy Error] Intercept optimization failed: {e}")
                # Fallback gracefully instead of crashing the thread completely
                self.send_error(500, f"Internal Proxy Error: {e}")
                return

        super().do_GET()

# Enterprise Change: Use ThreadingTCPServer instead of a blocking TCPServer
class ThreadingHTTPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
    # Ensure threads are cleaned up immediately by the OS when they finish
    daemon_threads = True

if __name__ == "__main__":
    ThreadingHTTPServer.allow_reuse_address = True

    # Bind to port 8080. Each incoming Agama connection gets its own isolated thread.
    with ThreadingHTTPServer(("0.0.0.0", 8080), Agama25Transformer) as httpd:
        print("[Enterprise Engine] Agama 25 Concurrent Deployment Proxy active on port 8080...")
        try:
            httpd.serve_forever()
        except KeyboardInterrupt:
            print("\nShutting down server gracefully.")

===============================================

Creating service unit for agama-proxyV2.service on top Tumbleweed Server bare metal (*). Please, see multi-threaded version of  agama-proxyV2.service at the top UPDATE as of 11/21/26 here Agama Unattended installation openSUSE Tumbleweed hosts via multi-threaded agama-proxyV2.py on top of F45 Server

===============================================

[Unit]
Description=Agama 25 Multi-Threaded Deployment Proxy Daemon
After=network-online.target local-fs.target remote-fs.target
Wants=network-online.target

[Service]
Type=simple
User=boris
WorkingDirectory=/home/boris/Downloads
Environment=PYTHONUNBUFFERED=1

# Raise the start window to 2 minutes so the 90s safety sleep #never triggers a systemd timeout 

TimeoutStartSec=120s

# Bypasses the 90s sleep if you are just restarting the service manually
ExecStartPre=/bin/sh -c 'if [ "$(systemctl is-system-running)" = "initializing" ] || [ "$(systemctl is-system-running)" = "starting" ]; then sleep 90; fi'

# System python runtime
ExecStart=/usr/bin/python3 ./agama-proxyV2.py

Restart=on-failure
RestartSec=5s

# Force systemd to wipe out all threads and free up the socket descriptor instantly
KillMode=control-group
SendSIGKILL=yes

StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
 

==================================

Next step followed by system reboot

================================== 

sudo systemctl daemon-reload
sudo systemctl reset-failed agama-proxyV2.service
sudo systemctl enable --now agama-proxyV2.service
 

=========================================

Log into rebooted Tumbleweed instance on bare metal 

=========================================

Wait until you service  agama-proxyV2 would be activated

localhost:~ # sudo ss -tulpn | grep 8080
tcp   LISTEN 0      5                                 0.0.0.0:8080      0.0.0.0:*    users:(("python3",pid=3532,fd=3))

localhost:~ # ps -ef|grep 3532
boris       3532       1  0 15:34 ?        00:00:00 /usr/bin/python3 ./agama-proxyV2.py

Yours PID might be different from 3532


 

REFERENCES

(*) Assisted by Google AI. 

Thursday, November 19, 2026

Agama Unattended installation openSUSE Tumbleweed hosts via multi-threaded agama-proxyV2.py on top of F45 Server

UPDATE as of 11/21/26

================================================ 

Creating service unit for agama-proxyV2.service on top F45 Server

================================================  

[Unit]
Description=Agama 25 Multi-Threaded Deployment Proxy Daemon
After=network-online.target local-fs.target remote-fs.target
Wants=network-online.target

[Service]
Type=simple
User=boris
WorkingDirectory=/srv/agama
Environment=PYTHONUNBUFFERED=1

# Raise the start window to 2 minutes so the 90s safety sleep 

#never triggers a systemd timeout  

TimeoutStartSec=120s

# Bypasses the 90s sleep if you are just restarting the service manually
ExecStartPre=/bin/sh -c 'if [ "$(systemctl is-system-running)" = "initializing" ] || [ "$(systemctl is-system-running)" = "starting" ]; then sleep 90;  fi'

# System python runtime
ExecStart=/usr/bin/python3 /usr/local/bin/agama-proxyV2.py

Restart=on-failure
RestartSec=5s


# Force systemd to wipe out all threads and free up the socket descriptor instantly
KillMode=control-group
SendSIGKILL=yes

StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

===================================== 

Verification port and service status on F45 Sever

===================================== 

root@server45fedora:~# sudo ss -tulpn | grep 8080
tcp   LISTEN 0      4096                              0.0.0.0:8080      0.0.0.0:*    users:(("python3",pid=3709,fd=3))
root@server45fedora:~# ps -ef | grep agama-proxyV2.py |grep -v auto
boris       3709       1  0 16:50 ?        00:00:00 /usr/bin/python3 /usr/local/bin/agama-proxyV2.py


 END UPDATE
 

This particular setup may be tested on Tumbleweed KVM Guests running at remote KVM Hypervisor keeping to provide reliable results. This post is an immediate follow up for https://lxer.com/module/newswire/view/369293/index.html 

Daemon been built now provides

1. Multi-Threaded: Handles multiple simultaneous KVM guest requests without locking.
2. Decoupled: Running safely as a background daemon via nohup and disown.
3. Optimized: Running at full line rate without hidden network or DNS latency.
File profile.json was previously copied to folder /srv/agama  
 ======================================================
Multithreaded version of agama-proxyV2.py (*)
=========================================
# cat agama-proxyV2.py
import http.server
import socketserver
import json
import os

# Set the path to where your developers drop the profile.json file
PROFILE_DIR = "/srv/agama"
try:
    os.chdir(PROFILE_DIR)
except Exception as e:
    print(f"[Initialization Error] Could not change directory to {PROFILE_DIR}: {e}")

class Agama25Transformer(http.server.SimpleHTTPRequestHandler):

    def address_string(self):
        """Return the raw IP address directly, bypassing slow reverse DNS lookups."""
        return self.client_address[0]

    def do_GET(self):
        if self.path == "/profile.json":
            try:
                # Load the raw file exported by your developers or Web UI
                with open("profile.json", "r", encoding="utf-8") as f:
                    data = json.load(f)

                # Check if "user" key exists and matches the problematic array layout
                if "user" in data:
                    raw_user = data["user"]

                    if isinstance(raw_user, list) and len(raw_user) > 0:
                        print("[Proxy Engine] Found user array block. Flattening structure for Agama 25.0.0...")
                        data["user"] = raw_user[0]

                    elif isinstance(raw_user, dict) and "users" in raw_user:
                        print("[Proxy Engine] Found nested users dictionary block. Unwrapping entries...")
                        if isinstance(raw_user["users"], list) and len(raw_user["users"]) > 0:
                            data["user"] = raw_user["users"][0]

                # Stream the newly formatted JSON bytes natively
                response_bytes = json.dumps(data).encode("utf-8")

                self.send_response(200)
                self.send_header("Content-Type", "application/json; charset=utf-8")
                self.send_header("Content-Length", str(len(response_bytes)))
                self.end_headers()
                self.wfile.write(response_bytes)
                return
            except Exception as e:
                print(f"[Proxy Error] Intercept optimization failed: {e}")
                # Fallback gracefully instead of crashing the thread completely
                self.send_error(500, f"Internal Proxy Error: {e}")
                return

        super().do_GET()

# Enterprise Change: Use ThreadingTCPServer instead of a blocking TCPServer
class ThreadingHTTPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
    # Ensure threads are cleaned up immediately by the OS when they finish
    daemon_threads = True

if __name__ == "__main__":
    ThreadingHTTPServer.allow_reuse_address = True

    # Bind to port 8080. Each incoming Agama connection gets its own isolated thread.
    with ThreadingHTTPServer(("0.0.0.0", 8080), Agama25Transformer) as httpd:
        print("[Enterprise Engine] Agama 25 Concurrent Deployment Proxy active on port 8080...")
        try:
            httpd.serve_forever()
        except KeyboardInterrupt:
            print("\nShutting down server gracefully.")
===========================================
Start agama-proxyV2.py via nohup  && disown
============================================
boris@server45fedora:~/Downloads$ nohup /usr/bin/python3 /usr/local/bin/agama-proxyV2.py > 
~/Downloads/agama-proxy.log 2>&1 &
[1] 19197
boris@server45fedora:~/Downloads$ disown
boris@server45fedora:~/Downloads$ ps
    PID TTY          TIME CMD
   2826 pts/1    00:00:00 bash
  19197 pts/1    00:00:00 python3
  19210 pts/1    00:00:00 ps
boris@server45fedora:~/Downloads$ tail -f agama-proxy.log
nohup: ignoring input
192.168.0.33 - - [19/Nov/2026 12:14:33] "GET /profile.json HTTP/1.1" 200 -

 

 
 
 
 
 
 
 
 
 

REFERENCES
(*) Assisted by Google AI 

Tuesday, November 17, 2026

Agama Unattended installation openSUSE Tumbleweed hosts via remote Agama-Proxy.service on top of F45 Server (bare metal )

Why efforts of setting up Agama-Proxy.service on top of F45 Server (bare metal ) are worth full ?

• Decoupled Architecture: Using the Fedora web service to translate schema mutations on the fly prevents you from having to modify the core provisioning tools your developers use.
• Low Footprint: By using built-in standard modules (http.server, socketserver), it runs out of the box on Fedora 45's Python without downloading any external packages.
• Smart Interception: It cleanly passes all other GET requests to a standard file server while dynamically modifying only the targeted JSON route.

 1. Open port 8080 on F45 Server

# Allow port 8080 on the standard public zone
sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp

# Allow port 8080 on the virtual machine/libvirt zone
sudo firewall-cmd --permanent --zone=libvirt --add-port=8080/tcp

# Apply the changes immediately
sudo firewall-cmd --reload

This script is a minimalist interceptor proxy pattern tailored  for automated openSUSE Agama installer deployments. It cleanly resolves a classic infrastructure headache: a mismatch between what your developers generate and what the modern openSUSE installer (Agama 25) expects.

2. Create python scipt /usr/local/bin/agama-proxy.py (*)

sudo cat << 'EOF' > /usr/local/bin/agama-proxy.py
import http.server
import socketserver
import json
import os

# Set the path to where your developers drop the profile.json file
PROFILE_DIR = "/home/boris/Downloads"
os.chdir(PROFILE_DIR)

class Agama25Transformer(http.server.SimpleHTTPRequestHandler):
   def do_GET(self):
       if self.path == "/profile.json":
           try:
               with open("profile.json", "r", encoding="utf-8") as f:
                   data = json.load(f)
                
               if "user" in data:
                   raw_user = data["user"]
                    
                   if isinstance(raw_user, list) and len(raw_user) > 0:
                       print("[Proxy Engine] Found user array block. Flattening structure for Agama 25.0.0...")
                       data["user"] = raw_user[0]
                    
                   elif isinstance(raw_user, dict) and "users" in raw_user:
                       print("[Proxy Engine] Found nested users dictionary block. Unwrapping entries...")
                       if isinstance(raw_user["users"], list) and len(raw_user["users"]) > 0:
                           data["user"] = raw_user["users"][0]
                
               response_bytes = json.dumps(data).encode("utf-8")
                
               self.send_response(200)
               self.send_header("Content-Type", "application/json; charset=utf-8")
               self.send_header("Content-Length", str(len(response_bytes)))
               self.end_headers()
               self.wfile.write(response_bytes)
               return
           except Exception as e:
               print(f"[Proxy Error] Intercept optimization failed: {e}")
                
       super().do_GET()

socketserver.TCPServer.allow_reuse_address = True
with socketserver.TCPServer(("0.0.0.0", 8080), Agama25Transformer) as httpd:
   print("Agama 25.0.0 Automated Deployment Proxy streaming on port 8080...")
   httpd.serve_forever()
EOF


3. Create service agama-proxy.service (*)

sudo cat << 'EOF' > /etc/systemd/system/agama-proxy.service
[Unit]
Description=Agama 25.0.0 Automated Deployment Schema Proxy
After=network.target

[Service]
Type=simple
# Ensure Python runs unbuffered so logs appear instantly in journalctl
Environment=PYTHONUNBUFFERED=1 PYTHONUTF8=0
ExecStart=/usr/bin/python3 /usr/local/bin/agama-proxy.py
Restart=always
RestartSec=5
User=root


[Install]
WantedBy=multi-user.target
EOF


4. Enable and start  agama-proxy.service

# Reload configurations
sudo systemctl daemon-reload
# Enable to launch on boot
sudo systemctl enable agama-proxy.service
# Start the background proxy immediately
sudo systemctl start agama-proxy.service

=================================================

On remote openSUSE Tumbleweed host when loading from USB stick edit Grub menu adding to linux line . . . . .         inst.auto=http://F45-Server-IP:8080/profile.json  inst.auto_insecure=1

 =================================================   root@server45fedora:~#  systemctl status agama-proxy.service

● agama-proxy.service - Agama 25.0.0 Automated Deployment Schema Proxy
     Loaded: loaded (/etc/systemd/system/agama-proxy.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Tue 2026-11-17 13:22:16 UTC; 1min 44s ago
 Invocation: 19e6395027b34286846fd1a22190d80d
   Main PID: 1216 (python3)
      Tasks: 1 (limit: 38317)
     Memory: 9.4M (peak: 11.4M)
        CPU: 49ms
     CGroup: /system.slice/agama-proxy.service
             └─1216 /usr/bin/python3 /usr/local/bin/agama-proxy.py
 
Nov 17 13:22:16 server45fedora systemd[1]: Started agama-proxy.service - Agama 25.0.0 Automated Deployment Schem>
Nov 17 13:22:16 server45fedora python3[1216]: Agama 25.0.0 Automated Deployment Proxy streaming on port 8080...
 
root@server45fedora:~# sudo journalctl -u agama-proxy.service -f
 
Nov 17 13:22:16 server45fedora systemd[1]: Started agama-proxy.service - Agama 25.0.0 Automated Deployment Schema Proxy.
Nov 17 13:22:16 server45fedora python3[1216]: Agama 25.0.0 Automated Deployment Proxy streaming on port 8080...
Nov 17 13:29:22 server45fedora python3[1216]: [Proxy Engine] Found user array block. Flattening structure for Agama 25.0.0...
Nov 17 13:29:22 server45fedora python3[1216]: 192.168.0.47 - - [17/Nov/2026 13:29:22] "GET /profile.json HTTP/1.1" 200 -
 















REFERENCES

(*) Assisted by Google AI  


Saturday, November 14, 2026

Automating openSUSE Tumbleweed Bare-Metal Installs with Agama and Wayland TTY1 V.2

 When deploying openSUSE Tumbleweed on bare-metal hardware using the Agama installer, certain GPU and HDMI monitor combinations can stall at the SDDM login screen after the first reboot. Below is one practical method which brings you to text login with screen resolution 1920x1080 and automatically starts KDE Plasma 6.8.2 upon login into system.

Unattended Agama installation was done via profile.json shown below. There are, actually, two approaches to manage  Officially proposed way via remote Python Web Server either via "scp" pofile.json to Agama Live Instance on target host see  https://lxer.com/module/newswire/view/369048/index.html

 boris@localhost:~/Downloads> cat profile.json (*)
{
 "product": {
   "id": "Tumbleweed"
 },
 "software": {
   "patterns": {
     "add": [
       "kde",
       "selinux",
       "kvm_tools"
     ],
     "remove": [
       "office"
     ]
   }
 },
 "storage": {
   "boot": {
     "configure": true
   },
   "drives": [
     {
       "partitions": [
         {
           "filesystem": {
             "mountOptions": [],
             "path": "/boot/efi",
             "reuseIfPossible": false,
             "type": "vfat"
           },
           "id": "esp",
           "size": {
             "max": 1073741824,
             "min": 1073741824
           }
         },
         {
           "filesystem": {
             "mountOptions": [],
             "path": "/boot",
             "reuseIfPossible": false,
             "type": "ext4"
           },
           "size": {
             "max": 2684354560,
             "min": 2684354560
           }
         },
         {
           "filesystem": {
             "mountOptions": [],
             "path": "/",
             "reuseIfPossible": false,
             "type": {
               "btrfs": {
                 "snapshots": true
               }
             }
           },
           "size": {
             "max": 274877906944,
             "min": 274877906944
           }
         },
         {
           "filesystem": {
             "mountOptions": [],
             "path": "/opt",
             "reuseIfPossible": false,
             "type": "xfs"
           },
           "size": {
             "max": 274877906944,
             "min": 274877906944
           }
         },
         {
           "delete": true,
           "search": {
             "ifNotFound": "skip"
           }
         }
       ],
       "search": {
         "condition": {
           "name": "/dev/sda"
         },
         "ifNotFound": "error"
       }
     }
   ],
   "mdRaids": [],
   "volumeGroups": []
 },
 "user": {
   "fullName": "boris",
   "password": "***********",
   "hashedPassword": false,
   "userName": "boris",
   "sshPublicKeys": []
 },
 "root": {
   "password": "************",
   "hashedPassword": false,
   "sshPublicKeys": [
     "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO8Q7QV5JPnWRoIla0fPJ7doo8Cz/cIz9KRZuVBq1Pe0 name@example.com"
   ]
 },
 "scripts": {
   "post": [
     {
       "name": "secure-login-with-autostart",
       "chroot": false,
       "content": "#!/usr/bin/bash\n\nTARGET_ROOT=\"/mnt\"\n\n# 1. Force standard text m
ode\nsystemctl --root=\"$TARGET_ROOT\" disable sddm.service --force\nsystemctl --root=\"$
TARGET_ROOT\" set-default multi-user.target\n\n# 2. Append auto-launch to global bash pro
file (bypasses user home folders)\ncat << 'EOF' >> \"$TARGET_ROOT/etc/profile\"\n\n# Auto
matically launch KDE Plasma Wayland for ANY user logging in on TTY1\nif [ -z \"${DISPLAY}
\" ] && [ \"${XDG_VTNR}\" -eq 1 ]; then\n    exec /usr/bin/startplasma-wayland\nfi\nEOF\n
"
     }
   ]
 }
}

================== 

Verification "scripts"  

================== 

 boris@localhost:~/Downloads> jq -r '.scripts.post[0].content' profile.json


#!/usr/bin/bash

TARGET_ROOT="/mnt"

# 1. Force standard text mode
systemctl --root="$TARGET_ROOT" disable sddm.service --force
systemctl --root="$TARGET_ROOT" set-default multi-user.target

# 2. Append auto-launch to global bash profile (bypasses user home folders)
cat << 'EOF' >> "$TARGET_ROOT/etc/profile"

# Automatically launch KDE Plasma Wayland for ANY user logging in on TTY1
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
   exec /usr/bin/startplasma-wayland
fi
EOF

Feel  free to verify it on bare metal

By placing this block inside the global /etc/profile, we implemented an incredibly safe mechanism:
• If a person connects to the machine remotely via SSH, ${XDG_VTNR} will be empty or set to a pseudo-terminal identifier (like pts/0), so the script will skip launching Plasma.
• If a user logs into another virtual console (like pressing Ctrl+Alt+F2 to troubleshoot on TTY2), ${XDG_VTNR} will equal 2, so the script will skip launching Plasma.

Key Characteristics of "chroot": false

• File System Paths: Because it runs in the installer environment,
the newly installed system's root directory is not at /. Instead,
you must access the installed system via its mount point inside
the installer (typically under /mnt or a similar installer-defined mount path).
• Available Tooling: The script relies entirely on the binaries,
libraries, and utilities available on the Agama live installer media
rather than what was just installed on the target disk.
• Network & Environment: It operates with the network configuration and environment variables of the active installation session. 

It only fires when someone physically sits at the machine (or via an active console stream) and logs into the primary TTY1 interface. 



REFERENCES

(*) Assisted by Google AI