Bug 1633230 - While a virtual machine with enabled Spice GL is running, attempt to display it in the graphical console causes virt-manager to quit
Summary: While a virtual machine with enabled Spice GL is running, attempt to display ...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-26 13:13 UTC by ricky.tigg
Modified: 2019-06-15 00:33 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-15 00:33:53 UTC
Embargoed:


Attachments (Terms of Use)
virt-manage 1.5.1-1 – Spece GL (50.00 KB, application/x-tar)
2018-09-26 13:13 UTC, ricky.tigg
no flags Details

Description ricky.tigg 2018-09-26 13:13:17 UTC
Created attachment 1487227 [details]
virt-manage 1.5.1-1 – Spece GL

Description of problem: while a virtual machine is running. each attempt to display it in the graphical console causes virt-manager to quit.

Version-Release number of component: virt-manager.noarch 1.5.1-1.fc28

How reproducible: assumed your laptop has a dedicated graphic card.

Steps to Reproduce:
1. Execute following commands –mentioned in instruction at http://blog.wikichoon.com/2016/05/spice-openglvirgl-acceleration-on.html– (provided here with outputs):

$ virt-xml --connect qemu:///system fedora-28-P-NFS --confirm --edit --video clearxml=yes,model=virtio,accel3d=yes
--- Original XML
+++ Altered XML
@@ -109,8 +109,9 @@
       <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
     </sound>
     <video>
-      <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
-      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
+      <model type="virtio">
+        <acceleration accel3d="yes"/>
+      </model>
     </video>
     <hostdev mode="subsystem" type="usb" managed="yes">
       <source>

Define 'fedora-28-P-NFS' with the changed XML? (y/n): y
Domain 'fedora-28-P-NFS' defined successfully.

$ virt-xml --connect qemu:///system fedora-28-P-NFS --confirm --edit --graphics clearxml=yes,type=spice,gl=on,listen=none
--- Original XML
+++ Altered XML
@@ -100,10 +100,9 @@
     <input type="tablet" bus="usb">
       <address type="usb" bus="0" port="4"/>
     </input>
-    <graphics type="spice" autoport="yes" keymap="fi">
-      <listen type="address"/>
-      <image compression="off"/>
-      <gl enable="yes" rendernode="/dev/dri/by-path/pci-0000:01:00.0-render"/>
+    <graphics type="spice">
+      <gl enable="yes"/>
+      <listen type="none"/>
     </graphics>
     <sound model="ich6">
       <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>

Define 'fedora-28-P-NFS' with the changed XML? (y/n): y
Domain 'fedora-28-P-NFS' defined successfully.

2. Launch Virt-manager using the default option (libvirt URI: qemu:///system):
$ sudo virt-manager

3. Verify that respective hardware devices were created in virt-manager (see attachments).

4. While the graphical console view is selected, power on the virtual machine.

Actual results: At step 4. ABRT notifier reports 'virt-manager quit unexpectedly', 'The application encountered a problem and could not continue.'
https://retrace.fedoraproject.org/faf/reports/2320363/.

While virt-manager is relaunched, in Manager view, the virtual machine appears to be running. Each attempt to display the virtual machine in the graphical console causes virt-manager to quit.

Expected results: virtual machine to be displayed in the graphical console without need for launching virt-manager itself using Dedicated Graphic's card option.

Additional info: In step .2, instead of executing the command 'sudo virt-manager' executing a possible command –unknown of me– that would be equivalent to the context menu available in Gnome 3 'Launch using Dedicated Graphic's card' (see attachment)  or use the one in Gnome then. Doing so, virt-manager allows the virtual machine to be at last displayed in the graphical console.

In documentation Virtualization Deployment and Administration Guide (Last Updated: 2018-08-23) at https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/pdf/virtualization_deployment_and_administration_guide/Red_Hat_Enterprise_Linux-7-Virtualization_Deployment_and_Administration_Guide-en-US.pdf, 

In step .1, used commands are presently missing, as well as the one that would illustrate a launch using dedicated graphic's card option.

Comment 1 Cole Robinson 2019-06-15 00:33:53 UTC
I believe this was an issue with qemu+gl+seccomp sandboxing that was fixed in qemu. If you are still hitting this with latest distro packages, please reopen


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