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 1946938 - [RHEL-9] Disable SPICE options in libvirt
Summary: [RHEL-9] Disable SPICE options in libvirt
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-07 09:52 UTC by Uri Lublin
Modified: 2021-04-07 10:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-07 10:47:09 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Uri Lublin 2021-04-07 09:52:45 UTC
Description of problem:
SPICE has been deprecated in RHEL-8.3 and is to be removed from RHEL-9.

Please:
- Disable support for SPICE components (graphics, smart-card, USB, etc)
- Remove SPICE components from the default configuration (if one exists)

Comment 1 Uri Lublin 2021-04-07 09:55:13 UTC
I built (rhel-9.0 code on a Fedora 33) qemu-kvm without SPICE and without QXL,
and tested “virsh define f33.xml” (with SPICE or QXL) and it fails with errors.
"error: unsupported configuration: spice graphics are not supported with this QEMU"

So possibly it's enough to change the default configuration (if exists) such that it
does not fail for users.

$ rpm -q qemu-kvm libvirt-daemon libvirt-client
qemu-kvm-5.2.0-7.el9.0.1.uri3.x86_64
libvirt-daemon-6.6.0-5.fc33.x86_64
libvirt-client-6.6.0-5.fc33.x86_64

Comment 2 Peter Krempa 2021-04-07 10:37:08 UTC
Does your 'f33.xml' define use of spice explicitly?

According to the parser code the 'type' attribute to '<graphics' is mandatory, so you have to pick an explicit type, in such case the error message reported is correct since it's an explicit configuration and libvirt does not pick any default for you so there isn't anything to change.

Comment 3 Uri Lublin 2021-04-07 10:43:47 UTC
(In reply to Peter Krempa from comment #2)
> Does your 'f33.xml' define use of spice explicitly?

Yes

    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>

Comment 4 Peter Krempa 2021-04-07 10:47:09 UTC
We can't simply do something which the user didn't request in this case. As noted libvirt doesn't pick a default graphics type and forces the user to specify it. We can't do anything here.


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