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 

Thursday, November 12, 2026

Automating openSUSE Tumbleweed Bare-Metal Installs with Agama and Wayland TTY1 Auto-Login

 
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 are two practical, repeatable ways to bypass SDDM and launch KDE Plasma Wayland directly via TTY1: first by embedding a `chroot` post-install hook directly inside Agama's `profile.json` , and second via a standalone, idempotent post-reboot bash script executed over SSH .  

   Actually, it is always safe to allow agama reboot the target box. Then run bypass-sddm-wayland.sh via remote SSH connection in post installation phase (Method 2) 

This update of profile.json and script bypass-sddm-wayland.sh  are closely linked to the final part of the post  Agama Unattended installation openSUSE Tumbleweed via profile.json on remote host (bare metal ) at  Lxer.com

 ### Method 1: Embedding a Chroot Post-Install Hook in `profile.json` (*)
Add a `"scripts"` block to your exported `profile.json` (*):
* Disable `sddm.service` and set the default target to `multi-user.target`.
* Configure a systemd service override for `getty@tty1` to auto-login your target user (`id -nu 1000`).
* Update `~/.bash_profile` to automatically execute `/usr/bin/startplasma-wayland` when logging in on TTY1 (`XDG_VTNR` equals 1).

UPDATE as 11/13/26  Both versions of profile.json were successfully tested on bare metal.

Version 01

agama:~ # cat /tmp/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": "qwerty1010",
    "hashedPassword": false,
    "userName": "boris",
    "sshPublicKeys": []
  },
  "root": {
    "password": "qwerty1010",
    "hashedPassword": false,
    "sshPublicKeys": [
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINkww6OT9f4dghgBF1JVh3WluNNYpox+Hfv6dS6RCZTK name@example.com"
    ]
  },
  "scripts": {
    "post": [
      {
        "name": "setup-tty1-autologin-kde",
        "chroot": true,
        "content": "#!/usr/bin/bash\n\nsystemctl disable sddm.service --force\nsystemctl set-default multi-user.target\n\nmkdir -p /etc/systemd/system/getty@tty1.service.d\ncat << 'EOF' > /etc/systemd/system/getty@tty1.service.d/override.conf\n[Service]\nExecStart=\nExecStart=-/sbin/agetty --autologin boris --noclear %I $TERM\nEOF\n\nTARGET_HOME=\"/home/boris\"\nmkdir -p \"$TARGET_HOME\"\n\ncat << 'EOF' >> \"$TARGET_HOME/.bash_profile\"\nif [ -f ~/.bashrc ]; then\n    . ~/.bashrc\nfi\n\nif [ -z \"${DISPLAY}\" ] && [ \"${XDG_VTNR}\" -eq 1 ]; then\n    exec /usr/bin/startplasma-wayland\nfi\nEOF\n\nchown -R boris:users \"$TARGET_HOME\"\nchmod 644 \"$TARGET_HOME/.bash_profile\"\n"

      }
    ]
  }
}
agama:~ # mount /dev/sda3 /mnt
agama:~ # # Check the systemd override
agama:~ # cat /mnt/etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin boris --noclear %I $TERM

agama:~ #
agama:~ # # Check Boris's custom .bash_profile settings
agama:~ # cat /mnt/home/boris/.bash_profile
cat: /mnt/home/boris/.bash_profile: No such file or directory
agama:~ # vi loginSetup
agama:~ # chmod +x loginSetup
agama:~ # ./loginSetup
agama:~ # cat /mnt/home/boris/.bash_profile
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
    exec /usr/bin/startplasma-wayland
fi
agama:~ # systemctl reboot 

Version 2. Requires same hook as Version 1

{
  "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": "qwerty1010",
    "hashedPassword": false,
    "userName": "boris",
    "sshPublicKeys": []
  },
  "root": {
    "password": "qwerty1010",
    "hashedPassword": false,
    "sshPublicKeys": [
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINkww6OT9f4dghgBF1JVh3WluNNYpox+Hfv6dS6RCZTK name@example.com"
    ]
  },
  "post": [
      {
        "name": "setup-tty1-autologin-kde",
        "chroot": false,
        "content": "#!/usr/bin/bash\n\nTARGET_ROOT=\"/mnt\"\n\n# 1. Modify systemd targets using offline root flag\nsystemctl --root=\"$TARGET_ROOT\" disable sddm.service --force\nsystemctl --root=\"$TARGET_ROOT\" set-default multi-user.target\n\n# 2. Deploy Getty TTY1 Autologin Override configuration\nmkdir -p \"$TARGET_ROOT/etc/systemd/system/getty@tty1.service.d\"\ncat << 'EOF' > \"$TARGET_ROOT/etc/systemd/system/getty@tty1.service.d/override.conf\"\n[Service]\nExecStart=\nExecStart=-/sbin/agetty --autologin boris --noclear %I $TERM\nEOF\n\n# 3. Explicitly force creation of the user home directory path\nTARGET_HOME=\"$TARGET_ROOT/home/boris\"\nmkdir -p \"$TARGET_HOME\"\n\n# 4. Safely construct the .bash_profile inside the generated structure\ncat << 'EOF' > \"$TARGET_HOME/.bash_profile\"\nif [ -f ~/.bashrc ]; then\n    . ~/.bashrc\nfi\n\nif [ -z \"${DISPLAY}\" ] && [ \"${XDG_VTNR}\" -eq 1 ]; then\n    exec /usr/bin/startplasma-wayland\nfi\nEOF\n\n# 5. Enforce precise directory and file ownership for UID/GID 1000\nchown -R 1000:1000 \"$TARGET_HOME\"\nchmod 644 \"$TARGET_HOME/.bash_profile\"\n"

      }
    ]
  }
}

END UPDATE 

 
### Method 2: Standalone Post-Reboot Bash Script (`bypass-sddm-wayland.sh`) 

If using a standard `profile.json` without embedded hooks, execute the standalone script over SSH as `root` after rebooting (*) to apply the same `sddm` disablement, `getty@tty1` auto-login override, and `.bash_profile` Plasma Wayland startup sequence for the target user. 

#!/bin/bash
# 

#==========================================================
# openSUSE Tumbleweed Post-Install SDDM Bypass & Auto-Login to Plasma Wayland
# Purpose: Bypasses broken SDDM HDMI login prompts by enabling automatic TTY1
#          console login and launching KDE Plasma Wayland directly.
# Usage:   Run as root via SSH after first reboot:
#          sudo ./bypass-sddm-wayland.sh [username]
#=========================================================

set -euo pipefail

# 1. Verify root privileges
if [[ "${EUID}" -ne 0 ]]; then
    echo "ERROR: This script must be run as root." >&2
    exit 1
fi

# 2. Resolve target desktop user (defaults to passed argument or UID 1000)
TARGET_USER="${1:-$(id -nu 1000 2>/dev/null || true)}"

if [[ -z "${TARGET_USER}" ]] || ! id "${TARGET_USER}" &>/dev/null; then
    echo "ERROR: Valid non-root user not found. Pass username explicitly: $0 <username>" >&2
    exit 1
fi

USER_HOME=$(getent passwd "${TARGET_USER}" | cut -d: -f6)
USER_GROUP=$(id -gn "${TARGET_USER}")

echo "Configuring TTY1 autologin and Plasma Wayland startup for user: ${TARGET_USER}"

# 3. Disable SDDM display manager and switch default boot target to multi-user CLI
echo "Disabling SDDM and setting default target to multi-user.target..."
systemctl disable sddm.service --force
systemctl set-default multi-user.target

# 4. Configure systemd getty@tty1 drop-in override for automatic console login
echo "Creating systemd override for getty@tty1.service..."
OVERRIDE_DIR="/etc/systemd/system/getty@tty1.service.d"
mkdir -p "${OVERRIDE_DIR}"

cat << EOF > "${OVERRIDE_DIR}/override.conf"
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin ${TARGET_USER} --noclear %I \$TERM
EOF

# 5. Configure user's ~/.bash_profile to source ~/.bashrc and start Plasma Wayland on TTY1
echo " Updating ${USER_HOME}/.bash_profile..."
BASH_PROFILE="${USER_HOME}/.bash_profile"

# Create .bash_profile with standard .bashrc sourcing if it does not exist yet
if [[ ! -f "${BASH_PROFILE}" ]]; then
    cat << 'EOF' > "${BASH_PROFILE}"
# Source the user's primary bash configuration if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi
EOF
fi

# Append startplasma-wayland block only if not already present (idempotent)
if ! grep -q "startplasma-wayland" "${BASH_PROFILE}"; then
    cat << 'EOF' >> "${BASH_PROFILE}"

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

# 6. Restore proper file ownership and reload systemd daemon
echo "Setting permissions and reloading systemd..."
chown "${TARGET_USER}:${USER_GROUP}" "${BASH_PROFILE}"
systemctl daemon-reload

echo "========================================================="
echo "Done! Reboot the system ('systemctl reboot') to boot straight into Plasma."
echo "========================================================="











P.S. Standard unattended Tumbleweed deployment  via python Web server per my experience would work fine if remote Web source was setup under openSUSE Tumbleweed ( python v.3.13) and would fail if python Web Server was setup on F45 Server (python v3.15) 

REFERENCES
(*) Proposed by Google AI