XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Windows VM (PostgreSQL) repeatedly freezes – domain goes to permanent -b----, QEMU receives SIGTERM, console/RDP die

    Scheduled Pinned Locked Moved Unsolved XCP-ng
    2 Posts 2 Posters 63 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      irtaza9
      last edited by

      One of my window based vm gets stuck like no rdp/console below are the logs

      Environment:

      Host: XCP-ng (mtxen8)
      Xen version: (please fill – run xl info | grep xen_version)
      VM UUID: c3880bcc-9d46-1de6-e031-306894311cd2
      Guest: Windows Server / Windows 10/11 (build 26100)
      XCP-ng Windows Guest Tools: 9.2.350.0
      Workload: PostgreSQL 18
      Device-model: qemu-upstream-compat
      

      Platform parameters (after fix):

      viridian=true
      viridian_time_ref_count=true
      viridian_reference_tsc=true
      viridian_stimer=true
      viridian_apic_assist=true
      viridian_crash_ctl=true
      device-model=qemu-upstream-compat
      

      Problem Description
      The Windows VM periodically becomes completely unresponsive (both RDP and Xen console).

      From the host the domain stays in permanent blocked state (-b----) and the QEMU device-model process disappears after receiving SIGTERM. The guest has to be force-destroyed and started again to recover.
      This has happened multiple times (at least 4–5 unexpected shutdowns in the last 10 days).

      Detailed Timeline of last occurrence (5 Oct 2026)

      Time (approx),Event
      3 Oct 07:25,Last clean PostgreSQL checkpoint
      Several hours later,Guest becomes unresponsive
      4 Oct 22:18:52,Windows Event 6008 – “previous system shutdown was unexpected”
      4 Oct 22:18:55,Host log: qemu-dm-352: terminating on signal 15 from pid 1526469
      After that,Domain remains registered but QEMU is gone → console + RDP dead
      5 Oct ~10:22,Forced xe vm-shutdown force=true + clean start
      After restart,"Everything works again (new domid, new QEMU process)"
      
      xl list 352
      # State: -b----   (permanently blocked)
      
      ps aux | grep qemu-dm | grep 352
      # → no process
      
      # daemon.log
      Oct  5 10:18:55 qemu-dm-352: terminating on signal 15 from pid 1526469
      
      poddingueP 1 Reply Last reply
      Reply Quote 0
      • poddingueP poddingue marked this topic as a question
      • poddingueP
        poddingue Vates 🪐 @irtaza9
        last edited by

        The docs have a section for this symptom, Windows Server 2025 hanging at 0% CPU: https://docs.xcp-ng.org/troubleshooting/windows-pv-tools#windows-server-2025-hangs-randomly-with-0-cpu .

        Besides the Viridian flags you've already set, it says to revert useplatformclock and useplatformtick with bcdedit if they were ever set in the guest.

        Your earlier thread showed a VM created from the "Other install media" template, so it's worth checking which template this one came from, since the Windows templates bring their own Viridian settings.
        I don't think the QEMU SIGTERM is the cause, though: when I force-shut down a VM on a lab host, qemu-dm logged that exact terminating on signal 15 line, sent by xenopsd-xc (ps -o comm -p 1526469 will tell you on yours), so yours most likely just matches your forced shutdown around 10:20 on 5 Oct.
        If it freezes again after that, the memory dump procedure further down the same page (https://docs.xcp-ng.org/troubleshooting/windows-pv-tools#how-to-gather-kernel-memory-dumps-for-in-depth-troubleshooting) is likely what people who know Windows guests better than me would want to see. 🤷

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post