RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1477191 - Win10 VM does not keep number of attached displays after reconnection/migration
Summary: Win10 VM does not keep number of attached displays after reconnection/migration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: spice-vdagent-win
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Default Assignee for SPICE Bugs
QA Contact: ybendito
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-01 12:42 UTC by Radek Duda
Modified: 2019-10-10 14:22 UTC (History)
13 users (show)

Fixed In Version: vdagent-win-4.3-1 mingw-spice-vdagent-0.9.0-5
Doc Type: If docs needed, set a value
Doc Text:
Windows 10 virtual machines did not report the correct number of connected displays following re-connection or migration. In this release, Windows 10 virtual machines correctly report the number of connected displays.
Clone Of:
Environment:
Last Closed: 2019-06-20 14:46:55 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdagent.log within reconnection (3.11 KB, text/plain)
2017-08-01 12:42 UTC, Radek Duda
no flags Details
--spice-debug -debug log after reconnection (86.43 KB, text/plain)
2017-08-01 12:46 UTC, Radek Duda
no flags Details
vdagent.exe (fix candidate) (226.42 KB, application/zip)
2019-03-11 13:20 UTC, ybendito
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:1555 0 None None None 2019-06-20 14:46:57 UTC

Description Radek Duda 2017-08-01 12:42:03 UTC
Created attachment 1307549 [details]
vdagent.log within reconnection

Description of problem:
After reconnection VM guest top up the number of attached displays to correlate number of qxl devices


Version-Release number of selected component (if applicable):
client: rhel7.4 tested:
virt-viewer-5.0-7.el7.x86_64
spice-gtk3-0.33-6.el7.x86_64
spice-protocol-0.12.12-2.el7.noarch
qemu-kvm-rhev-2.9.0-16.el7_4.3.x86_64

guest: Win10-64bit
spice-qxl-wddm-dod-0.18-1
vdagent-win-4.1-3


How reproducible:
always

Steps to Reproduce:
1.Setup Win10 VM with multiple qxl devices and launch it (not in fullscreen)
2. connect to it with remote-viewer
3. reduce number of attached displays (remote-viewer menu-> View-> Displays)
 * notice that number of attached displays is accordingly reduced within Win10 guest (in 'Advanced display settings' dialog box)
4. reconnect to VM with remote-viewer

Actual results:
Number of attached displays is topped up to the number of guest's qxl devices

Expected results:
Number of attached displays stays the same before and after reconnection.

Additional info:

Comment 1 Radek Duda 2017-08-01 12:42:58 UTC
VM qemu cmdline:
usr/libexec/qemu-kvm -name guest=win10,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-7-win10/master-key.aes -machine pc-i440fx-rhel7.4.0,accel=kvm,usb=off,dump-guest-core=off -cpu Broadwell,+rtm,+hle,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -m 4096 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 -uuid 4dc7c629-448c-4dff-8891-6c86d59f745f -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-7-win10/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x5.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x5 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x5.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x5.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/home/rduda/Virtualky/Windows-10-20170725.0-x86_64.qcow2,format=qcow2,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/home/rduda/Virtualky/RHEV-toolsSetup_4.1_5.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -netdev tap,fd=26,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:70:d0:32,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -spice port=5900,addr=::,disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -device qxl,id=video1,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x8 -device qxl,id=video2,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x9 -device qxl,id=video3,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0xa -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on

Comment 2 Radek Duda 2017-08-01 12:46:54 UTC
Created attachment 1307552 [details]
--spice-debug -debug log after reconnection

Comment 3 Radek Duda 2017-08-02 11:16:56 UTC
This applies not only for reconnection but also for migration (tested using using rhv 4.1.5-0.1.el7):
Right after Windows 10 VM is migrated, number of attached displays is increased to the number of qxl devices of the VM. So several remote-viewer windows suddenly pop up.

Comment 4 Yaniv Kaul 2017-12-03 16:06:12 UTC
I don't see this getting into 4.2.0 - please re-target.

Comment 5 Sandro Bonazzola 2019-01-28 09:41:31 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 7 Radek Duda 2019-02-13 13:28:28 UTC
Any progress there? I reproduced this using rhv4.3
and rhel8 client/win10 guest(vdagent-win-4.1-5) again

Comment 8 David Blechter 2019-02-18 15:46:18 UTC
not a blocker for 4.3.

Yuri, 
please, investigate and update.

thanks, dnb

Comment 11 ybendito 2019-03-11 13:20:39 UTC
Created attachment 1542892 [details]
vdagent.exe (fix candidate)

Comment 12 ybendito 2019-03-11 13:23:59 UTC
Please check whether attached executable (comment #11) solves the problem (x64):
from administrator command prompt:
sc stop vdservice 
sc qc vdservice -> to see the path of executables
copy attached vdagent.exe overriding existing
restart

Comment 13 Radek Duda 2019-03-11 14:25:12 UTC
It behaves all right with your new fix.
Reproduced with current vdagent. 
Installed yours with a fix.
I opened Win10 with 4 displays, closed one -> reconnected by remote-viewer -> only three displays were opened

Repeated several times with various number of opened VM displays.

Comment 14 Sandro Bonazzola 2019-03-12 12:54:19 UTC
4.3.1 has been released, please re-target this bug as soon as possible.

Comment 15 Sandro Bonazzola 2019-04-10 06:30:42 UTC
Is there an upstream release / downstream build including this fix?

Comment 16 Victor Toso 2019-04-10 07:50:14 UTC
Hi Sandro,

> Is there an upstream release / downstream build including this fix?

Upstream I'm sure there isn't but I'll be preparing the releases Today and do one Tomorrow, I'll include win32/vd-agent too.

Downstream, It doesn't seem like it too? Unless I'm looking in the wrong place.

Moving back to POST, when build is done, added to errata, the fixed in version must be added.

Cheers,

Comment 23 errata-xmlrpc 2019-06-20 14:46:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:1555


Note You need to log in before you can comment on or make changes to this bug.