Bug 1654889 - [RFE] Support console VNC for mediated devices
Summary: [RFE] Support console VNC for mediated devices
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.4.0
: ---
Assignee: Tomasz Barański
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On: 1475770
Blocks: 1723580
TreeView+ depends on / blocked
 
Reported: 2018-11-29 23:19 UTC by Ryan Barry
Modified: 2020-08-04 13:16 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.3.3.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1723580 (view as bug list)
Environment:
Last Closed: 2020-08-04 13:16:18 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of qemu proccesses diff (the failed one is with cirrus) (433.08 KB, image/png)
2019-05-23 13:06 UTC, Nisim Simsolo
no flags Details
vdsm.log.xz (479.18 KB, application/x-xz)
2019-05-23 13:07 UTC, Nisim Simsolo
no flags Details
engine.log.xz (371.79 KB, application/x-xz)
2019-05-23 13:07 UTC, Nisim Simsolo
no flags Details
qemu process when VNC is working (4.05 KB, text/plain)
2019-05-23 13:09 UTC, Nisim Simsolo
no flags Details
qemu process when VNC failed to display VM (4.10 KB, text/plain)
2019-05-23 13:09 UTC, Nisim Simsolo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:16:43 UTC
oVirt gerrit 98553 0 'None' MERGED core: Add display="on" for mdevs, use nodisplay to override 2020-12-18 21:27:30 UTC
oVirt gerrit 98791 0 'None' MERGED core: Add display="on" for mdevs, use nodisplay to override 2020-12-18 21:27:30 UTC
oVirt gerrit 99811 0 'None' MERGED core: Set type=none for video element of mdevices 2020-12-18 21:27:30 UTC
oVirt gerrit 99962 0 'None' MERGED core: Set type=none for video element of mdevices 2020-12-18 21:27:30 UTC
oVirt gerrit 100525 0 'None' MERGED core: Video element is required in libvirt XML 2020-12-18 21:27:30 UTC

Description Ryan Barry 2018-11-29 23:19:00 UTC
Description of problem:
Platform supports direct VNC passthrough for vGPU -- see https://bugzilla.redhat.com/show_bug.cgi?id=1475770

In order to support this in RHV, a new display type must be added which users can configure after drivers are installed in the guest, which removes QXL and allows a direct mapping to the vGPU

qemu-cmdline argument should be enough.

Comment 4 RHV bug bot 2019-03-29 11:14:39 UTC
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 9 Nisim Simsolo 2019-05-23 13:03:24 UTC
Reassigned. 
- VNC is showing display only on the first run of the VM. after powering off and running the VM again, the VNC display freezes before the VM completely booted.
- Running diff of VM qemu process shows that when there is no VNC display, there is  cirrus-vga device that was added (please see diff.png file attached).
and also inside the VM there is Cirrus VGA controller:
00:05.0 VGA compatible controller [0300]: Cirrus Logic GD 5446 [1013:00b8]
	Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
	Kernel driver in use: cirrus
	Kernel modules: cirrus
- Possible workaround for this issue, it to edit VM -> Console and change video type from QXL to VGA or vice versa.

qemu proccess files for diff, vdsm.log and engine.log attached.

Comment 10 Nisim Simsolo 2019-05-23 13:06:57 UTC
Created attachment 1572507 [details]
screenshot of qemu proccesses diff  (the failed one is with cirrus)

Comment 11 Nisim Simsolo 2019-05-23 13:07:30 UTC
Created attachment 1572521 [details]
vdsm.log.xz

Comment 12 Nisim Simsolo 2019-05-23 13:07:49 UTC
Created attachment 1572522 [details]
engine.log.xz

Comment 13 Nisim Simsolo 2019-05-23 13:09:06 UTC
Created attachment 1572523 [details]
qemu process when VNC is working

Comment 14 Nisim Simsolo 2019-05-23 13:09:44 UTC
Created attachment 1572524 [details]
qemu process when VNC failed to display VM

Comment 15 Nisim Simsolo 2019-05-23 13:18:01 UTC
Another thing, when using virt-viewer or virt-manager the mouse cursor is invisible although mouse is present (windows are highlighted and mouse clicks are working).
using TigerVNC mouse cursor is visible.
Please see RHEL7 bug: https://bugzilla.redhat.com/show_bug.cgi?id=1620204

Comment 16 Tomasz Barański 2019-05-31 14:21:38 UTC
(In reply to Nisim Simsolo from comment #9)
> Reassigned. 
> - Running diff of VM qemu process shows that when there is no VNC display,
> there is  cirrus-vga device that was added (please see diff.png file
> attached).
> and also inside the VM there is Cirrus VGA controller:
> 00:05.0 VGA compatible controller [0300]: Cirrus Logic GD 5446 [1013:00b8]
> 	Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
> 	Kernel driver in use: cirrus
> 	Kernel modules: cirrus
> - Possible workaround for this issue, it to edit VM -> Console and change
> video type from QXL to VGA or vice versa.

Found the reason behind it. On the first run, the XML contains no <video> tag but contains <graphics> element for VNC. Libvirt's doc says, that:

    For backwards compatibility, if no video is set but there is a graphics in domain xml, then libvirt will add a default video according to the guest type.
    For a guest of type "kvm", the default video is: type with value "cirrus", vram with value "16384" and heads with value "1".

I can add a quick fix (detect that we have graphics but no video, then add <video> with type none if appropriate) if we're pressed for time, but I'd rather find the root cause (why there isn't a video element at all).

Comment 21 Nisim Simsolo 2019-07-22 11:02:50 UTC
Verified upstream: 
ovirt-engine-4.4.0-0.0.master.20190717001451.git71c46fc.el7
vdsm-4.40.0-472.git7714057.el7.x86_64
libvirt-4.5.0-10.el7_6.12.x86_64
2 X Nvidia Tesla M60 under the same host, drivers:  GRID 9.0 GA

Verification scenario:
Polarion test case added to external trackers.

Comment 23 Nisim Simsolo 2019-09-23 10:35:35 UTC
Verified:
ovirt-engine-4.4.0-0.0.master.20190910103859.git07162a4.el7
libvirt-daemon-4.5.0-23.el7_7.1.x86_64
vdsm-4.40.0-907.gitdb55522.el7.x86_64
qemu-kvm-ev-2.12.0-33.1.el7.x86_64
2 X Nvidia Tesla M60 under the same host, drivers:  GRID 9.1 GA

Verification scenario:
Polarion test case added to external trackers.

Comment 25 RHV bug bot 2019-12-13 13:14:34 UTC
WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 26 RHV bug bot 2019-12-20 17:44:24 UTC
WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 27 RHV bug bot 2020-01-08 14:46:53 UTC
WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 28 RHV bug bot 2020-01-08 15:15:33 UTC
WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 29 RHV bug bot 2020-01-24 19:48:39 UTC
WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 31 errata-xmlrpc 2020-08-04 13:16:18 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 (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), 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/RHSA-2020:3247


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