Skip to content

v0.5.5

Choose a tag to compare

@github-actions github-actions released this 21 May 04:15
· 512 commits to main since this release
964ea92

[0.5.5] - 2026-05-21

User-report follow-up release driven by @tolistim (#216) and @ismikes (#215). Fixes a setup-rerun lockout that desynced the host config from the Windows guest password, lands a host-adaptive Windows-on-KVM tuning profile so safe perf tweaks turn themselves on without user configuration, and ends the "tray stuck on starting forever" symptom that long-idle pods used to show.

Highlights

winpodx setup rerun is safe again, the dockur compose auto-tunes to the host, and idle pods no longer freeze the tray on starting (#215, #216).

  • winpodx setup rerun on an existing install preserves the working Windows credentials instead of silently overwriting cfg.rdp.password; the lockout that produced LOGON_FAILED_BAD_PASSWORD is gone. Reported by @tolistim (#216).
  • New cfg.pod.tuning_profile (default "auto"): winpodx probes the host once at compose time (invariant TSC, kernel ≥ 5.6 for io_uring, vm.nr_hugepages, idle CPU + RAM headroom) and turns on every safe Windows-on-KVM tweak the host can support. +invtsc lands in the x86_64 QEMU args on supported CPUs. winpodx info / winpodx setup print a new [Tuning] block so the auto-applied set is never hidden. Suggested by @ismikes (#215).
  • safe / off / manual escape hatches for the tuning profile; host-side prerequisites (hugepages, CPU pinning, VFIO) stay documented operator tasks rather than wired into winpodx automatically.
  • New PodState.UNRESPONSIVE plus auto-recovery flow: pod_status() now distinguishes a still-booting container (STARTING, container uptime under 600 s) from a long-running one whose Windows guest has gone unresponsive on the RDP port (UNRESPONSIVE, container uptime past 600 s). The tray observes the RUNNING → UNRESPONSIVE transition, fires a desktop notification, and spawns a background worker that cycles TermService in-guest via the agent transport. On recovery a "pod recovered" notification fires; on failure the user gets a "needs manual restart" notification pointing at winpodx pod restart. OEM install.bat also tightens every powercfg timeout to 0 and clears PlatformAoAcOverride so Modern Standby can't drop the NIC out from under a long-idle session in the first place.

Added

  • PodState.UNRESPONSIVE + auto-recovery flow. pod_status() resolves to the new UNRESPONSIVE value when the container has been running longer than 10 minutes but the RDP port isn't answering — historically misreported as STARTING forever. The tray driver caches the previous state and on a RUNNING → UNRESPONSIVE transition fires notify_pod_unresponsive + a background worker that calls try_recover_rdp (new core/pod/recovery.py). Recovery asks the agent to Restart-Service -Force TermService and re-probes the RDP port for 30 s; success fires notify_pod_recovered, failure fires notify_pod_needs_manual_restart with the failure mode (agent unreachable / rdp still down) so the user knows to run winpodx pod restart. Backend.uptime_secs() is the new ABC method; Podman + Docker implement it via inspect -f '{{.State.StartedAt}}'; libvirt + manual return None so they fall back to the legacy STARTING answer.

  • config/oem/install.bat disables every Windows idle timeout that can kill RDP. The Ultimate Performance plan alone wasn't enough — Modern Standby (S0 low-power idle) can still drop the virtio NIC and stall TermService. Sets standby / hibernate / monitor / disk timeouts to 0 on AC + DC, clears HKLM\SYSTEM\CurrentControlSet\Control\Power\PlatformAoAcOverride to force Desktop class power behaviour, and forces STANDBYIDLE 0 on the current scheme as a belt-and-braces guard. Eliminates the root cause behind the RUNNING → UNRESPONSIVE transition on idle pods.

  • Host suspend / resume no longer leaves the tray frozen on starting. Two-pronged: the guest gets a SYSTEM-level scheduled task that subscribes to Win32_PowerManagementEvent (config/oem/power-monitor.ps1) and restarts TermService 5 s after EventType 7 / 18 (resume from suspend / modern-standby), so the in-guest RDP listener is rebuilt before the next probe. The host tray subscribes to org.freedesktop.login1's PrepareForSleep(active=False) signal via QtDBus and refreshes pod state 5 s after the resume event, triggering the existing UNRESPONSIVE auto-recovery path immediately instead of waiting for the 30 s poll. Both halves degrade gracefully — D-Bus subscription is best-effort; the scheduled task is installed only on fresh OEM apply (existing pods pick it up via winpodx pod apply-fixes in a follow-up).

  • OEM install ends with a scheduled reboot so registry edits actually take effect. PlatformAoAcOverride = 0 (Modern Standby off) and several NIC binding tweaks land in HKLM but the running session keeps the old values until next boot. install.bat now writes a C:\winpodx\oem_reboot_pending.txt marker, registers a RunOnce key that deletes the marker on the second Windows boot, and issues shutdown /r /t 15 as its last action. winpodx pod wait-ready gains a [4/4] Waiting for OEM reboot pass... phase that polls the marker via the agent transport; an upgrade-path install without the marker short-circuits through a 30-second appear-grace window so the existing flow keeps working unchanged.

  • Tray UX overhaul: always-running tray, Dashboard shortcut, confirmed Quit. The tray is now auto-spawned from the GUI window and from every CLI subcommand that touches the pod (everything except setup / gui / tray), so a user who only ever runs winpodx app run still gets the UNRESPONSIVE auto-recovery driver. The tray icon now renders properly (bundled winpodx-icon.svg set before tray.show(); previously KDE Plasma / GNOME suppressed the indicator entirely because no icon was assigned). New "Open Dashboard" menu item at the top of the tray context menu spawns the main GUI window. Quit now confirms via a QMessageBox ("winpodx 를 완전히 종료할까요?") and on confirmation runs stop_pod + pkill -f 'winpodx gui' + app.quit so a stray click can't cycle the pod's ~30 s restart. tray.lock flock under $XDG_RUNTIME_DIR/winpodx/ prevents stacked instances when the user manually re-launches the tray.

  • ensure_ready two-stage RDP recovery on CLI launch. CLI launches (winpodx app run, GUI app clicks, etc.) now self-heal a stalled-RDP guest before spawning FreeRDP: stage 1 calls try_recover_rdp (agent-driven TermService cycle, ~5-30 s, keeps Windows uptime), stage 2 falls back to recover_rdp_if_needed (whole-container restart, ~30 s, resets Windows uptime). The old behaviour was to fail the launch with a connection-refused that the user had to debug; now the cheap path tries first, only escalates when the agent isn't reachable.

  • GUI Settings: "Launch winpodx tray at login" checkbox. New toggle in the Settings page writes / removes ~/.config/autostart/winpodx-tray.desktop via the XDG autostart spec — portable across KDE / GNOME / XFCE / Cinnamon without per-DE branching. File existence is the source of truth (no cfg.toml field, no daemon to manage), and the user can drop the .desktop by hand to opt out. X-GNOME-Autostart-enabled=true is included so GNOME's session manager honours it after DE-default resets. Toggle applies immediately — no Save Settings click needed.

  • uninstall.sh covers the new tray + autostart surfaces. Two new sections: (0a) pre-removal pkill -f against winpodx gui and winpodx tray plus 1-s grace, so the killed processes release their FDs into the install / runtime / config dirs we're about to rm -rf and stop firing auto-recovery notifications against a soon-to-be-gone container; (6b) always-remove ~/.config/autostart/winpodx-tray.desktop regardless of --purge because the .desktop is useless without the binary and leaving it triggers a winpodx: command not found at next login.

  • Host-adaptive Windows-on-KVM tuning profile (#215). cfg.pod.tuning_profile controls how aggressively winpodx tunes the dockur compose for the host. Default "auto" probes the host once at compose time (constant_tsc + nonstop_tsc, kernel ≥ 5.6 for io_uring, vm.nr_hugepages > 0, idle CPU + RAM headroom) and enables the matching subset of standard tweaks — currently +invtsc on x86_64 hosts that expose invariant TSC. Other profiles: "safe" (Tier-1 only — +invtsc + Windows platform_tick, no host-side prerequisites), "off" (dockur defaults only), "manual" (safe shape; future per-knob overrides). winpodx info and winpodx setup both print the detected capability + resolved profile so users can see exactly what was auto-applied. Suggested by @ismikes (#215); standard sysguides.com Windows-on-KVM tuning items that need host-side setup (hugepages, CPU pinning) are documented in docs/USAGE.md as user-host tasks rather than wired into winpodx automatically.

Fixed

  • winpodx setup rerun no longer locks out users by silently rewriting the Windows password (#216). Re-running setup on an existing install (e.g. to bump cores/RAM) used to reprompt for the Windows password and write whatever was entered into winpodx.toml. Because dockur honors USERNAME / PASSWORD env vars only on first boot, the host config silently desynced from the Windows guest account and the next RDP launch failed with LOGON_FAILED_BAD_PASSWORD. The interactive prompt now detects an existing config with a populated cfg.rdp.user + cfg.rdp.password, preserves them, and prints guidance to use winpodx rotate-password (which goes through the Windows-side password change mechanism). Non-interactive install.sh setup and fresh installs are unchanged. Reported by @tolistim on Linux Mint 22.3 / v0.5.4.

  • Docs: Fedora 42 / 43 / 44 install snippet uses dnf5 syntax (#228). Old sudo dnf config-manager --add-repo <URL> fails on Fedora 41+ because dnf5 changed the subcommand shape. Snippet now reads sudo dnf config-manager addrepo --from-repofile=<URL>; the dnf4 form is noted below for Fedora ≤40 (EOL). Updated in README.md / docs/README.ko.md / docs/INSTALL.md / docs/INSTALL.ko.md / packaging/obs/README.md. Reported by @payayas.

  • install.sh no longer falsely reports success when hardware virtualisation is off (#220). Reported by @pnogaret2019-code on Linux Mint LMDE 7. The install loop treated qemu-system-x86 already being present as "all dependencies installed successfully" while /dev/kvm stayed absent because the BIOS had VT-x disabled. install.sh now (a) emits a much more prominent pre-install warning that walks the user through the three real causes (BIOS, kernel module, kvm group) with diagnostic commands, and (b) re-verifies /dev/kvm after the install loop and aborts with live lscpu / lsmod / id output when it's still missing. README + Korean mirror gain a new "Minimum requirements" section with the same three-row check table, so users see the gating requirements before they ever copy-paste the curl-install line. Catches the largest single source of "install ran fine but Windows never boots" bug reports.

  • install.sh Ubuntu 24.04+ / Debian 13 picks the real qemu-system-* package instead of the now-virtual qemu-kvm (#200). Reported by @n-osennij on xubuntu 26.04 inside VirtualBox. apt errored with E: Package 'qemu-kvm' has no installation candidate because newer Ubuntu / Debian made qemu-kvm a virtual package whose providers are qemu-system-x86 (or qemu-system-x86-hwe). pkg_name() now uses the same apt-cache show probe pattern as the freerdp2 → freerdp3 selector from PR #198: probes qemu-system-x86 first (or qemu-system-arm on aarch64), falls back to qemu-system-x86-hwe, then qemu-kvm for older distros. The VirtualBox-side nested-virtualisation requirement is host-environment and outside winpodx's scope — covered by the new "Minimum requirements" README section.

  • dockur/windows image pin bumped to v5.15 (#223, #224). DOCKUR_IMAGE_PIN / DOCKUR_IMAGE_ARM_PIN + config/oem/VERSIONS.txt track the new digests (sha256:32abe0836aee... x86_64, sha256:5775bcfd335b... aarch64). Picks up upstream's accumulated fixes since v5.14 without changing the winpodx-side compose surface.

  • install.sh aborts cleanly on Ctrl+C instead of marching past Pod is starting, not running. Start the pod now and apply? [Y/n]. The old install loop used a single EXIT INT TERM trap that only cleaned up the install marker; SIGINT then fell through to the next step. Split into three traps (EXIT cleanup-only, INT cleanup + exit 130, TERM cleanup + exit 143) and wrapped the wait-ready | tee pipeline with set +e so PIPESTATUS[0] survives the || true rescue and the SIGINT-vs-real-failure branch can act on the real wait-ready rc.

  • winpodx setup --non-interactive flag for install.sh-driven migration. install.sh calls setup migration after the initial install; without --non-interactive the migration would block on the storage-path prompt and stall the curl-install. Setup gains the flag and treats every interactive prompt as "accept default" when set.

  • uninstall.sh tray no longer respawns mid-uninstall. Section 0a pkill'd the tray, then section 0b ran winpodx host-open stop-listener / unregister-guest to tear down reverse-open. cli/main.py auto-spawns the tray for every subcommand outside the {setup, gui, tray} skiplist, so host-open triggered a fresh tray spawn and section 0a's work was immediately undone. uninstall.sh now exports WINPODX_NO_TRAY_SPAWN=1; maybe_spawn_tray() short-circuits when set, so every winpodx CLI subprocess uninstall.sh runs inherits the env and skips the spawn.