Thanks for the quick followup. Here is the command line:
hank@JoesGarage:~$ sudo virsh domxml-to-native qemu-argv --domain Windows10
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
USER=root HOME=/var/lib/libvirt/qemu/domain--1-Windows10
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-Windows10/.local/share
XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-Windows10/.cache
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-Windows10/.config
/usr/bin/qemu-system-x86_64 -name guest=Windows10,debug-threads=on -S
-object
'{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-Windows10/master-key.aes"}'
-machine
pc-q35-8.1,usb=off,vmport=off,dump-guest-core=off,memory-backend=pc.ram,hpet=off,acpi=on
-accel kvm -cpu
host,migratable=on,hv-time=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff
-m size=33554432k -object
'{"qom-type":"memory-backend-memfd","id":"pc.ram","share":true,"x-use-canonical-path-for-ramblock-id":false,"size":34359738368}'
-overcommit mem-lock=off -smp 8,sockets=8,cores=1,threads=1 -uuid
79d92205-a803-4770-aed4-0032670768f3 -no-user-config -nodefaults
-chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain--1-Windows10/monitor.sock,server=on,wait=off
-mon chardev=charmonitor,id=monitor,mode=control -rtc
base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=delay
-no-shutdown -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1
-boot menu=off,strict=on -device
'{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}'
-device
'{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}'
-device
'{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}'
-device
'{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}'
-device
'{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}'
-device
'{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}'
-device
'{"driver":"pcie-root-port","port":22,"chassis":7,"id":"pci.7","bus":"pcie.0","addr":"0x2.0x6"}'
-device
'{"driver":"pcie-root-port","port":23,"chassis":8,"id":"pci.8","bus":"pcie.0","addr":"0x2.0x7"}'
-device
'{"driver":"pcie-root-port","port":24,"chassis":9,"id":"pci.9","bus":"pcie.0","multifunction":true,"addr":"0x3"}'
-device
'{"driver":"pcie-root-port","port":25,"chassis":10,"id":"pci.10","bus":"pcie.0","addr":"0x3.0x1"}'
-device
'{"driver":"pcie-root-port","port":26,"chassis":11,"id":"pci.11","bus":"pcie.0","addr":"0x3.0x2"}'
-device
'{"driver":"pcie-root-port","port":27,"chassis":12,"id":"pci.12","bus":"pcie.0","addr":"0x3.0x3"}'
-device
'{"driver":"pcie-root-port","port":28,"chassis":13,"id":"pci.13","bus":"pcie.0","addr":"0x3.0x4"}'
-device
'{"driver":"pcie-root-port","port":29,"chassis":14,"id":"pci.14","bus":"pcie.0","addr":"0x3.0x5"}'
-device
'{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pci.2","addr":"0x0"}'
-device
'{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.3","addr":"0x0"}'
-blockdev
'{"driver":"file","filename":"/var/lib/libvirt/images/win10.img","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}'
-blockdev
'{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2","file":"libvirt-1-storage"}'
-device
'{"driver":"ide-hd","bus":"ide.0","drive":"libvirt-1-format","id":"sata0-0-0","bootindex":1}'
-netdev '{"type":"tap","fd":"28","id":"hostnet0"}' -device
'{"driver":"e1000e","netdev":"hostnet0","id":"net0","mac":"52:54:00:25:a7:d0","bus":"pci.1","addr":"0x0"}'
-chardev pty,id=charserial0 -device
'{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}'
-chardev spicevmc,id=charchannel0,name=vdagent -device
'{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"}'
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}'
-audiodev '{"id":"audio1","driver":"spice"}' -spice
port=5901,addr=127.0.0.1,disable-ticketing=on,image-compression=off,seamless-migration=on
-device
'{"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pcie.0","addr":"0x1"}'
-device
'{"driver":"ich9-intel-hda","id":"sound0","bus":"pcie.0","addr":"0x1b"}'
-device
'{"driver":"hda-duplex","id":"sound0-codec0","bus":"sound0.0","cad":0,"audiodev":"audio1"}'
-global ICH9-LPC.noreboot=off -watchdog-action reset -chardev
spicevmc,id=charredir0,name=usbredir -device
'{"driver":"usb-redir","chardev":"charredir0","id":"redir0","bus":"usb.0","port":"2"}'
-chardev spicevmc,id=charredir1,name=usbredir -device
'{"driver":"usb-redir","chardev":"charredir1","id":"redir1","bus":"usb.0","port":"3"}'
-device
'{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.4","addr":"0x0"}'
-sandbox
on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny
-msg timestamp=on
The Windows version is WIndows 10 Pro, Version 22H2, build 19045.4894.
In the moments after Windows boots, it behaves normally: Clicking on
things opens apps, the web browser runs normally and loads external
sites. The time before the freeze seems to be random, from a few seconds
to a couple of minutes. I don't know how to check if it can respond to
network requests or pings after it freezes but am happy to check if you
give instructions.
I never really thought about logging of guest activity from the host of
VM, thanks for making it clear. Now that I have downgraded so that my
Windows VM runs, I can explore the Windows event log. Anything you
suggest I look for?
Thanks again,
Hank
On 10/6/24 11:00, Michael Tokarev wrote:
Control: tag -1 + moreinfo unreproducible
Control: severity -1 normal
06.10.2024 17:26, Hank Knox wrote:
Package: qemu-system
Version: 1:9.1.0+ds-8
Severity: important
X-Debbugs-Cc: hank.k...@gmail.com
Dear Maintainer,
I have been running a Windows 10 guest in QEMU/KVM without issues for
over 2
years. After a recent update of the qemu packages to the version just
before
the current one in sid, the Windows guest starts normally but freezes
completely just a few moments after logging in. The GUI becomes
unresponsive
and the only solution is to force the instance to quit.
I've been running several windows 10 and 11 guests for quite some
time, -- I
test new qemu releases using these guests too. No problems with 9.1.x
so far, -
or else I'd notice it long ago, obviously :) Nothing about this in
recent
upstream qemu issues either..
Due to this, lowering severity to normal.
For a start, please provide the qemu command line you use to launch
your VM.
Without this, it's impossible to say what's going on.
Also, please specify which version of windows do you run, - this might be
important, or might be not.
And, - try to find out what it is doing a few moments after logging in.
BTW, does it respond to network requests, to pings, or is it completely
frozen?
Somehow people often mention logs, or inability to find logs - I
wonder why
this happens. qemu emulates a CPU (actually whole system), it does not
understand what is running inside it, so can not produce any
meaningful logs.
It can produce disassembly of the code it is running though, - but there,
it usually isn't easy to understand what the guest OS is actually doing.
On the windows side, it does have some diagnostic tools, but if it just
freezes, there's not much we can do there either. So there's no logs.
Thanks,
/mjt
--
Hank Knox, FRSC
Schulich School of Music of
McGill University (retired)
Montreal, QC